setup.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.27',
  18. long_description=read('README.md'),
  19. long_description_content_type='text/markdown',
  20. packages=['magic'],
  21. package_data={
  22. 'magic': ['py.typed', '*.pyi', '**/*.pyi'],
  23. },
  24. keywords="mime magic file",
  25. license="MIT",
  26. python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
  27. classifiers=[
  28. 'Intended Audience :: Developers',
  29. 'License :: OSI Approved :: MIT License',
  30. 'Programming Language :: Python',
  31. 'Programming Language :: Python :: 2.7',
  32. 'Programming Language :: Python :: 3',
  33. 'Programming Language :: Python :: 3.5',
  34. 'Programming Language :: Python :: 3.6',
  35. 'Programming Language :: Python :: 3.7',
  36. 'Programming Language :: Python :: 3.8',
  37. 'Programming Language :: Python :: 3.9',
  38. 'Programming Language :: Python :: Implementation :: CPython',
  39. ],
  40. )