setup.py 2.2 KB

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