setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import setuptools
  4. import io
  5. import os
  6. def read(file_name):
  7. """Read a text file and return the content as a string."""
  8. with io.open(os.path.join(os.path.dirname(__file__), file_name),
  9. encoding='utf-8') as f:
  10. return f.read()
  11. setuptools.setup(
  12. name='python-magic',
  13. description='File type identification using libmagic',
  14. author='Adam Hupp',
  15. author_email='adam@hupp.org',
  16. url="http://github.com/ahupp/python-magic",
  17. version='0.4.20',
  18. long_description=read('README.md'),
  19. long_description_content_type='text/markdown',
  20. packages=['magic'],
  21. keywords="mime magic file",
  22. license="MIT",
  23. python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
  24. classifiers=[
  25. 'Intended Audience :: Developers',
  26. 'License :: OSI Approved :: MIT License',
  27. 'Programming Language :: Python',
  28. 'Programming Language :: Python :: 2.7',
  29. 'Programming Language :: Python :: 3',
  30. 'Programming Language :: Python :: 3.5',
  31. 'Programming Language :: Python :: 3.6',
  32. 'Programming Language :: Python :: 3.7',
  33. 'Programming Language :: Python :: 3.8',
  34. 'Programming Language :: Python :: 3.9',
  35. 'Programming Language :: Python :: Implementation :: CPython',
  36. ],
  37. )