setup.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. scripts=[
  33. 'misago/bin/misago-start.py',
  34. ],
  35. entry_points={'console_scripts': [
  36. 'misago-start = misago.core.setup:start_misago_project',
  37. ]},
  38. test_suite="runtests.runtests",
  39. classifiers=[
  40. 'Development Status :: 4 - Beta',
  41. 'Environment :: Web Environment',
  42. 'Framework :: Django',
  43. 'Intended Audience :: Developers',
  44. 'Intended Audience :: System Administrators',
  45. 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
  46. 'Operating System :: OS Independent',
  47. 'Programming Language :: Python',
  48. 'Programming Language :: Python :: 2.7',
  49. 'Programming Language :: Python :: 3.4',
  50. 'Programming Language :: Python :: 3.5',
  51. 'Programming Language :: Python :: 3.6',
  52. 'Topic :: Internet :: WWW/HTTP',
  53. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  54. "Topic :: Internet :: WWW/HTTP :: WSGI",
  55. "Topic :: Software Development :: Libraries :: Application Frameworks",
  56. "Topic :: Software Development :: Libraries :: Python Modules",
  57. ],
  58. )