setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #-*- coding: utf-8 -*-
  2. import os
  3. from setuptools import setup, find_packages
  4. from misago import __version__ as version
  5. README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
  6. requirements_path = os.path.join(os.path.dirname(__file__),
  7. 'misago/project_template/requirements.txt')
  8. with open(requirements_path, "r") as f:
  9. REQUIREMENTS = [x.strip() for x in f.readlines()]
  10. REQUIREMENTS = REQUIREMENTS[1:]
  11. # allow setup.py to be run from any path
  12. os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
  13. EXCLUDE_FROM_PACKAGES = ['misago.project_template',
  14. 'misago.bin']
  15. setup(
  16. name='Misago',
  17. version=version,
  18. license='GNU General Public License v2 (GPLv2)',
  19. description='Misago is complete, featured and modern forum solution.',
  20. long_description=README,
  21. url='http://www.misago-project.org/',
  22. author=u'Rafał Pitoń',
  23. author_email='kontakt@rpiton.com',
  24. install_requires=REQUIREMENTS,
  25. packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
  26. include_package_data=True,
  27. scripts=[
  28. 'misago/bin/misago-start.py',
  29. 'misago/bin/misago-admin.py',
  30. ],
  31. entry_points={'console_scripts': [
  32. 'misago-start = misago.core.setup:start_misago_project',
  33. ]},
  34. test_suite="runtests.runtests",
  35. classifiers=[
  36. 'Development Status :: 2 - Pre-Alpha',
  37. 'Environment :: Web Environment',
  38. 'Framework :: Django',
  39. 'Intended Audience :: Developers',
  40. 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
  41. 'Operating System :: OS Independent',
  42. 'Programming Language :: Python',
  43. 'Programming Language :: Python :: 2.7',
  44. 'Topic :: Internet :: WWW/HTTP',
  45. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  46. "Topic :: Internet :: WWW/HTTP :: WSGI",
  47. "Topic :: Software Development :: Libraries :: Application Frameworks",
  48. "Topic :: Software Development :: Libraries :: Python Modules",
  49. ],
  50. )