setup.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -*- coding: utf-8 -*-
  2. import os
  3. import sys
  4. __DIR__ = os.path.abspath(os.path.dirname(__file__))
  5. import codecs
  6. from setuptools import setup
  7. from setuptools.command.test import test as TestCommand
  8. import demeter
  9. def read(filename):
  10. """Read and return `filename` in root dir of project and return string"""
  11. return codecs.open(os.path.join(__DIR__, filename), 'r').read()
  12. install_requires = read("requirements.txt").split()
  13. long_description = read('README.rst')
  14. setup(
  15. name="Demeter",
  16. version=demeter.__version__,
  17. url='https://github.com/shemic/demeter',
  18. license='MIT License',
  19. author='Rabin',
  20. author_email='2934170@qq.com',
  21. description=('A simple framework based on Tornado'),
  22. long_description=long_description,
  23. packages=['demeter'],
  24. install_requires = install_requires,
  25. #tests_require=['pytest'],
  26. #cmdclass = {'test': install},
  27. include_package_data=True,
  28. package_data = {},
  29. data_files=[
  30. # Populate this with any files config files etc.
  31. ],
  32. classifiers=[
  33. "Development Status :: 5 - Production/Stable",
  34. "Intended Audience :: Developers",
  35. "License :: OSI Approved :: MIT License",
  36. "Natural Language :: English",
  37. "Operating System :: OS Independent",
  38. "Programming Language :: Python :: 2",
  39. "Programming Language :: Python :: 3",
  40. "Topic :: Software Development :: Libraries :: Application Frameworks",
  41. ]
  42. )