setup.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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-Allows',
  50. 'Flask-BabelPlus',
  51. 'Flask-Cache',
  52. 'Flask-DebugToolbar',
  53. 'Flask-Limiter',
  54. 'Flask-Login',
  55. 'Flask-Mail',
  56. 'Flask-Migrate',
  57. 'Flask-Plugins',
  58. 'Flask-Redis',
  59. 'Flask-SQLAlchemy',
  60. 'Flask-Script',
  61. 'Flask-Themes2',
  62. 'Flask-WTF',
  63. 'Flask-WhooshAlchemy',
  64. 'Flask-BabelEx',
  65. 'Jinja2',
  66. 'Mako',
  67. 'MarkupSafe',
  68. 'Pygments',
  69. 'SQLAlchemy',
  70. 'Unidecode',
  71. 'WTForms',
  72. 'Werkzeug',
  73. 'Whoosh',
  74. 'alembic',
  75. 'blinker',
  76. 'cov-core',
  77. 'coverage',
  78. 'itsdangerous',
  79. 'mistune',
  80. 'pytz',
  81. 'redis',
  82. 'requests',
  83. 'simplejson',
  84. 'speaklater',
  85. 'sqlalchemy-utils'
  86. ],
  87. test_suite='tests',
  88. tests_require=[
  89. 'py',
  90. 'pytest',
  91. 'pytest-cov',
  92. 'pytest-random'
  93. ],
  94. dependency_links=[
  95. 'https://github.com/jshipley/Flask-WhooshAlchemy/archive/master.zip#egg=Flask-WhooshAlchemy',
  96. ],
  97. classifiers=[
  98. 'Development Status :: 4 - Beta',
  99. 'Environment :: Web Environment',
  100. 'Intended Audience :: Developers, Users',
  101. 'License :: OSI Approved :: BSD License',
  102. 'Operating System :: OS Independent',
  103. 'Programming Language :: Python',
  104. 'Programming Language :: Python :: 3',
  105. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  106. 'Topic :: Software Development :: Libraries :: Python Modules'
  107. ],
  108. cmdclass={'test': PyTestCommand}
  109. )