setup.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #-*- coding: utf-8 -*-
  2. import os
  3. from setuptools import setup, find_packages
  4. from misago import __version__ as version
  5. SETUP_DIR = os.path.dirname(__file__)
  6. with open(os.path.join(SETUP_DIR, 'README.rst'), 'rb') as f:
  7. README = f.read().decode('utf-8')
  8. with open(os.path.join(SETUP_DIR, 'requirements.txt'), "r") as f:
  9. REQUIREMENTS = f.read()
  10. EXCLUDE_FROM_PACKAGES = [
  11. 'misago.project_template',
  12. 'misago.bin'
  13. ]
  14. # allow setup.py to be run from any path
  15. os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
  16. setup(
  17. name='Misago',
  18. version=version,
  19. license='GPLv2',
  20. description=(
  21. "Misago is modern, fully featured forum application written in "
  22. "Python and ES6, powered by Django and React.js. It works out of "
  23. "the box and plays nicely with other projects like Django-CMS."
  24. ),
  25. long_description=README,
  26. url='http://www.misago-project.org/',
  27. author=u'Rafał Pitoń',
  28. author_email='kontakt@rpiton.com',
  29. install_requires=REQUIREMENTS,
  30. packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
  31. include_package_data=True,
  32. test_suite="runtests.runtests",
  33. classifiers=[
  34. 'Development Status :: 4 - Beta',
  35. 'Environment :: Web Environment',
  36. 'Framework :: Django',
  37. 'Intended Audience :: Developers',
  38. 'Intended Audience :: System Administrators',
  39. 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
  40. 'Operating System :: OS Independent',
  41. 'Programming Language :: Python',
  42. 'Programming Language :: Python :: 3.6',
  43. 'Topic :: Internet :: WWW/HTTP',
  44. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  45. "Topic :: Internet :: WWW/HTTP :: WSGI",
  46. "Topic :: Software Development :: Libraries :: Application Frameworks",
  47. "Topic :: Software Development :: Libraries :: Python Modules",
  48. ],
  49. )