setup.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. """
  2. FlaskBB
  3. =======
  4. FlaskBB is a forum software written in Python using the microframework Flask.
  5. And Easy to Setup
  6. -----------------
  7. .. code:: bash
  8. $ python manage.py createall
  9. $ python manage.py runserver
  10. * Running on http://localhost:8080/
  11. Resources
  12. ---------
  13. * `website <http://flaskbb.org>`_
  14. * `source <https://github.com/sh4nks/flaskbb>`_
  15. * `issues <https://github.com/sh4nks/flaskbb/issues>`_
  16. """
  17. from setuptools import setup
  18. from setuptools.command.test import test as TestCommand
  19. import sys
  20. class PyTestCommand(TestCommand):
  21. user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')]
  22. def initialize_options(self):
  23. TestCommand.initialize_options(self)
  24. self.pytest_args = []
  25. def finalize_options(self):
  26. TestCommand.finalize_options(self)
  27. self.test_args = []
  28. self.test_suite = True
  29. def run_tests(self):
  30. import pytest
  31. errno = pytest.main(self.pytest_args)
  32. sys.exit(errno)
  33. setup(
  34. name='FlaskBB',
  35. version='1.0.dev0',
  36. url='http://github.com/sh4nks/flaskbb/',
  37. license='BSD',
  38. author='sh4nks',
  39. author_email='sh4nks7@gmail.com',
  40. description='A forum software written with flask',
  41. long_description=__doc__,
  42. packages=['flaskbb'],
  43. include_package_data=True,
  44. zip_safe=False,
  45. platforms='any',
  46. install_requires=[
  47. 'Babel',
  48. 'Flask',
  49. 'Flask-Cache',
  50. 'Flask-DebugToolbar',
  51. 'Flask-Login',
  52. 'Flask-Mail',
  53. 'Flask-Migrate',
  54. 'Flask-Plugins',
  55. 'Flask-Redis',
  56. 'Flask-SQLAlchemy',
  57. 'Flask-Script',
  58. 'Flask-Themes2',
  59. 'Flask-WTF',
  60. 'Flask-WhooshAlchemy',
  61. 'Flask-BabelEx',
  62. 'Jinja2',
  63. 'Mako',
  64. 'MarkupSafe',
  65. 'Pygments',
  66. 'SQLAlchemy',
  67. 'Unidecode',
  68. 'WTForms',
  69. 'Werkzeug',
  70. 'Whoosh',
  71. 'alembic',
  72. 'blinker',
  73. 'cov-core',
  74. 'coverage',
  75. 'itsdangerous',
  76. 'mistune',
  77. 'pytz',
  78. 'redis',
  79. 'requests',
  80. 'simplejson',
  81. 'speaklater',
  82. 'sqlalchemy-utils'
  83. ],
  84. test_suite='tests',
  85. tests_require=[
  86. 'py',
  87. 'pytest',
  88. 'pytest-cov',
  89. 'pytest-random'
  90. ],
  91. dependency_links=[
  92. 'https://github.com/jshipley/Flask-WhooshAlchemy/archive/master.zip#egg=Flask-WhooshAlchemy',
  93. 'https://github.com/sh4nks/flask-babelex/tarball/master#egg=Flask-BabelEx'
  94. ],
  95. classifiers=[
  96. 'Development Status :: 4 - Beta',
  97. 'Environment :: Web Environment',
  98. 'Intended Audience :: Developers, Users',
  99. 'License :: OSI Approved :: BSD License',
  100. 'Operating System :: OS Independent',
  101. 'Programming Language :: Python',
  102. 'Programming Language :: Python :: 3',
  103. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  104. 'Topic :: Software Development :: Libraries :: Python Modules'
  105. ],
  106. cmdclass={'test': PyTestCommand}
  107. )