setup.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. 'alembic',
  48. 'amqp',
  49. 'anyjson',
  50. 'Babel',
  51. 'billiard',
  52. 'blinker',
  53. 'celery',
  54. 'click',
  55. 'cov-core',
  56. 'coverage',
  57. 'Flask',
  58. 'flask-allows',
  59. 'Flask-BabelPlus',
  60. 'Flask-Caching',
  61. 'Flask-DebugToolbar',
  62. 'Flask-Limiter',
  63. 'Flask-Login',
  64. 'Flask-Mail',
  65. 'Flask-Migrate',
  66. 'Flask-Plugins',
  67. 'Flask-Redis',
  68. 'Flask-Script',
  69. 'Flask-SQLAlchemy',
  70. 'Flask-Themes2',
  71. 'Flask-WhooshAlchemy',
  72. 'Flask-WTF',
  73. 'itsdangerous',
  74. 'Jinja2',
  75. 'kombu',
  76. 'limits',
  77. 'Mako',
  78. 'MarkupSafe',
  79. 'mistune',
  80. 'Pygments',
  81. 'python-editor',
  82. 'pytz',
  83. 'redis',
  84. 'requests',
  85. 'simplejson',
  86. 'six',
  87. 'speaklater',
  88. 'SQLAlchemy',
  89. 'SQLAlchemy-Utils',
  90. 'Unidecode',
  91. 'Werkzeug',
  92. 'Whoosh',
  93. 'WTForms'
  94. ],
  95. test_suite='tests',
  96. tests_require=[
  97. 'py',
  98. 'pytest',
  99. 'pytest-cov',
  100. 'pytest-random'
  101. ],
  102. classifiers=[
  103. 'Development Status :: 4 - Beta',
  104. 'Environment :: Web Environment',
  105. 'Intended Audience :: Developers, Users',
  106. 'License :: OSI Approved :: BSD License',
  107. 'Operating System :: OS Independent',
  108. 'Programming Language :: Python',
  109. 'Programming Language :: Python :: 3',
  110. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  111. 'Topic :: Software Development :: Libraries :: Python Modules'
  112. ],
  113. cmdclass={'test': PyTestCommand}
  114. )