setup.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. class install(object):
  13. def run(self):
  14. print 22
  15. install_requires = read("requirements.txt").split()
  16. long_description = read('README.rst')
  17. setup(
  18. name="Demeter",
  19. version=demeter.__version__,
  20. url='https://github.com/shemic/demeter',
  21. license='MIT License',
  22. author='Rabin',
  23. author_email='2934170@qq.com',
  24. description=('A simple framework based on Tornado'),
  25. long_description=long_description,
  26. packages=['demeter'],
  27. install_requires = install_requires,
  28. #tests_require=['pytest'],
  29. cmdclass = {'test': install},
  30. include_package_data=True,
  31. package_data = {},
  32. data_files=[
  33. # Populate this with any files config files etc.
  34. ],
  35. classifiers=[
  36. "Development Status :: 5 - Production/Stable",
  37. "Intended Audience :: Developers",
  38. "License :: OSI Approved :: MIT License",
  39. "Natural Language :: English",
  40. "Operating System :: OS Independent",
  41. "Programming Language :: Python :: 2",
  42. "Programming Language :: Python :: 3",
  43. "Topic :: Software Development :: Libraries :: Application Frameworks",
  44. ]
  45. )