setup.py 4.0 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>=1.4.2",
  27. "amqp>=2.6.0",
  28. "attrs>=19.3.0",
  29. "Babel>=2.8.0",
  30. "billiard>=3.6.3.0",
  31. "blinker>=1.4",
  32. "celery>=4.4.3",
  33. "certifi>=2020.4.5.1",
  34. "chardet>=3.0.4",
  35. "click>=7.1.2",
  36. "click-log>=0.3.2",
  37. "dnspython>=1.16.0",
  38. "email-validator>=1.1.1",
  39. "Flask>=1.1.2",
  40. "Flask-Alembic>=2.0.1",
  41. "flask-allows @ git+https://github.com/justanr/flask-allows.git@f/Cut-down-on-warnings#egg=flask-allows"
  42. "Flask-BabelPlus>=2.2.0",
  43. "Flask-Caching>=1.9.0",
  44. "Flask-DebugToolbar>=0.11.0",
  45. "flask-debugtoolbar-warnings>=0.1.0",
  46. "Flask-Limiter>=1.3.1",
  47. "Flask-Login>=0.5.0",
  48. "Flask-Mail>=0.9.1",
  49. "flask-redis>=0.4.0",
  50. "Flask-SQLAlchemy>=2.4.3",
  51. "Flask-Themes2>=0.1.5",
  52. "flask-whooshee>=0.7.0",
  53. "Flask-WTF>=0.14.3",
  54. "flaskbb-plugin-conversations>=1.0.7",
  55. "flaskbb-plugin-portal>=1.1.3",
  56. "idna>=2.9",
  57. "itsdangerous>=1.1.0",
  58. "Jinja2>=2.11.2",
  59. "kombu>=4.6.9",
  60. "limits>=1.5.1",
  61. "Mako>=1.1.3",
  62. "MarkupSafe>=1.1.1",
  63. "mistune>=0.8.4",
  64. "olefile>=0.46",
  65. "Pillow>=7.1.2",
  66. "pluggy>=0.13.1",
  67. "Pygments>=2.6.1",
  68. "python-dateutil>=2.8.1",
  69. "python-editor>=1.0.4",
  70. "pytz>=2020.1",
  71. "redis>=3.5.3",
  72. "requests>=2.23.0",
  73. "simplejson>=3.17.0",
  74. "six>=1.15.0",
  75. "speaklater>=1.3",
  76. "SQLAlchemy>=1.3.17",
  77. "SQLAlchemy-Utils>=0.36.6",
  78. "Unidecode>=1.1.1",
  79. "urllib3>=1.25.9",
  80. "vine>=1.3.0",
  81. "Werkzeug>=1.0.1",
  82. "Whoosh>=2.7.4",
  83. "WTForms>=2.3.1",
  84. ]
  85. extras_require = {"postgres": ["psycopg2-binary"]}
  86. tests_require = ["py", "pytest", "pytest-cov", "cov-core", "coverage"]
  87. setup(
  88. name="FlaskBB",
  89. version="2.0.2",
  90. url="https://flaskbb.org",
  91. project_urls={
  92. "Documentation": "https://flaskbb.readthedocs.io/en/latest/",
  93. "Code": "https://github.com/flaskbb/flaskbb",
  94. "Issue Tracker": "https://github.com/flaskbb/flaskbb",
  95. },
  96. license="BSD",
  97. author="Peter Justin",
  98. author_email="peter.justin@outlook.com",
  99. description="A classic Forum Software in Python using Flask.",
  100. long_description=long_description,
  101. long_description_content_type="text/markdown",
  102. packages=find_packages(),
  103. include_package_data=True,
  104. zip_safe=False,
  105. platforms="any",
  106. entry_points="""
  107. [console_scripts]
  108. flaskbb=flaskbb.cli:flaskbb
  109. """,
  110. python_requires=">=3.5",
  111. install_requires=install_requires,
  112. extras_require=extras_require,
  113. tests_require=tests_require,
  114. test_suite="tests",
  115. classifiers=[
  116. "Development Status :: 4 - Beta",
  117. "Environment :: Web Environment",
  118. "Intended Audience :: Developers",
  119. "Intended Audience :: End Users/Desktop",
  120. "License :: OSI Approved :: BSD License",
  121. "Operating System :: OS Independent",
  122. "Programming Language :: Python :: 3.5",
  123. "Programming Language :: Python :: 3.6",
  124. "Programming Language :: Python :: 3.7",
  125. "Programming Language :: Python :: 3.8",
  126. "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
  127. "Topic :: Software Development :: Libraries :: Python Modules",
  128. ],
  129. cmdclass={"test": PyTestCommand},
  130. )