setup.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import sys
  5. from setuptools import find_packages, setup
  6. from setuptools.command.test import test as TestCommand
  7. class PyTestCommand(TestCommand):
  8. user_options = [("pytest-args=", "a", "Arguments to pass to py.test")]
  9. def initialize_options(self):
  10. TestCommand.initialize_options(self)
  11. self.pytest_args = []
  12. def finalize_options(self):
  13. TestCommand.finalize_options(self)
  14. self.test_args = []
  15. self.test_suite = True
  16. def run_tests(self):
  17. import pytest # noqa
  18. errno = pytest.main(self.pytest_args)
  19. sys.exit(errno)
  20. def read(*parts):
  21. here = os.path.abspath(os.path.dirname(__file__))
  22. with open(os.path.join(here, *parts), "r") as fp:
  23. return fp.read()
  24. long_description = read("README.md")
  25. install_requires = [
  26. "alembic>=0.9.9",
  27. "amqp>=2.3.2",
  28. "attrs>=18.1.0",
  29. "Babel>=2.6.0",
  30. "billiard>=3.5.0.3",
  31. "blinker>=1.4",
  32. "celery>=4.2.0",
  33. "certifi>=2018.4.16",
  34. "chardet>=3.0.4",
  35. "click>=6.7",
  36. "click-log>=0.3.2",
  37. "enum34>=1.1.6",
  38. "Flask>=1.0.2",
  39. "Flask-Alembic>=2.0.1",
  40. "flask-allows>=0.6.0",
  41. "Flask-BabelPlus>=2.1.1",
  42. "Flask-Caching>=1.4.0",
  43. "Flask-DebugToolbar>=0.10.1",
  44. "flask-debugtoolbar-warnings>=0.1.0",
  45. "Flask-Limiter>=1.0.1",
  46. "Flask-Login>=0.4.1",
  47. "Flask-Mail>=0.9.1",
  48. "Flask-Redis>=0.3.0",
  49. "Flask-SQLAlchemy>=2.3.2",
  50. "Flask-Themes2>=0.1.4",
  51. "flask-whooshee>=0.6.0",
  52. "Flask-WTF>=0.14.2",
  53. "flaskbb-plugin-conversations>=1.0.3",
  54. "flaskbb-plugin-portal>=1.1.1",
  55. "idna>=2.7",
  56. "itsdangerous>=0.24",
  57. "Jinja2>=2.10",
  58. "kombu>=4.2.1",
  59. "limits>=1.3",
  60. "Mako>=1.0.7",
  61. "MarkupSafe>=1.0",
  62. "mistune>=0.8.3",
  63. "olefile>=0.45.1",
  64. "Pillow>=5.1.0",
  65. "pluggy>=0.6.0",
  66. "Pygments>=2.2.0",
  67. "python-dateutil>=2.7.3",
  68. "python-editor>=1.0.3",
  69. "pytz>=2018.4",
  70. "redis>=2.10.6",
  71. "requests>=2.19.1",
  72. "simplejson>=3.15.0",
  73. "six>=1.11.0",
  74. "speaklater>=1.3",
  75. "SQLAlchemy>=1.2.8",
  76. "SQLAlchemy-Utils>=0.33.3",
  77. "Unidecode>=1.0.22",
  78. "urllib3>=1.23",
  79. "vine>=1.1.4",
  80. "Werkzeug>=0.14.1",
  81. "Whoosh>=2.7.4",
  82. "WTForms>=2.2.1",
  83. ]
  84. extras_require = {"postgres": ["psycopg2-binary"]}
  85. tests_require = ["py", "pytest", "pytest-cov", "cov-core", "coverage"]
  86. setup(
  87. name="FlaskBB",
  88. version="2.0.2",
  89. url="https://flaskbb.org",
  90. project_urls={
  91. "Documentation": "https://flaskbb.readthedocs.io/en/latest/",
  92. "Code": "https://github.com/flaskbb/flaskbb",
  93. "Issue Tracker": "https://github.com/flaskbb/flaskbb",
  94. },
  95. license="BSD",
  96. author="Peter Justin",
  97. author_email="peter.justin@outlook.com",
  98. description="A classic Forum Software in Python using Flask.",
  99. long_description=long_description,
  100. long_description_content_type="text/markdown",
  101. packages=find_packages(),
  102. include_package_data=True,
  103. zip_safe=False,
  104. platforms="any",
  105. entry_points="""
  106. [console_scripts]
  107. flaskbb=flaskbb.cli:flaskbb
  108. """,
  109. python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
  110. install_requires=install_requires,
  111. extras_require=extras_require,
  112. tests_require=tests_require,
  113. test_suite="tests",
  114. classifiers=[
  115. "Development Status :: 4 - Beta",
  116. "Environment :: Web Environment",
  117. "Intended Audience :: Developers",
  118. "Intended Audience :: End Users/Desktop",
  119. "License :: OSI Approved :: BSD License",
  120. "Operating System :: OS Independent",
  121. "Programming Language :: Python :: 2.7",
  122. "Programming Language :: Python :: 3.4",
  123. "Programming Language :: Python :: 3.5",
  124. "Programming Language :: Python :: 3.6",
  125. "Programming Language :: Python :: 3.7",
  126. "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
  127. "Topic :: Software Development :: Libraries :: Python Modules",
  128. ],
  129. cmdclass={"test": PyTestCommand},
  130. )