setup.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/usr/bin/python
  2. from os.path import isfile
  3. import codecs
  4. import os
  5. import re
  6. from setuptools import setup
  7. if isfile("MANIFEST"):
  8. os.unlink("MANIFEST")
  9. TOPDIR = os.path.dirname(__file__) or "."
  10. VERSION = re.search('__version__ = "([^"]+)"',
  11. codecs.open(TOPDIR + "/dateutil/__init__.py",
  12. encoding='utf-8').read()).group(1)
  13. setup(name="python-dateutil",
  14. version=VERSION,
  15. description="Extensions to the standard Python datetime module",
  16. author="Yaron de Leeuw",
  17. author_email="me@jarondl.net",
  18. url="https://dateutil.readthedocs.org",
  19. license="Simplified BSD",
  20. long_description="""
  21. The dateutil module provides powerful extensions to the
  22. datetime module available in the Python standard library.
  23. """,
  24. packages=["dateutil", "dateutil.zoneinfo"],
  25. package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
  26. zip_safe=True,
  27. requires=["six"],
  28. install_requires=["six >=1.5"], # XXX fix when packaging is sane again
  29. classifiers=[
  30. 'Development Status :: 5 - Production/Stable',
  31. 'Intended Audience :: Developers',
  32. 'License :: OSI Approved :: BSD License',
  33. 'Programming Language :: Python',
  34. 'Programming Language :: Python :: 2',
  35. 'Programming Language :: Python :: 2.6',
  36. 'Programming Language :: Python :: 2.7',
  37. 'Programming Language :: Python :: 3',
  38. 'Programming Language :: Python :: 3.2',
  39. 'Programming Language :: Python :: 3.3',
  40. 'Programming Language :: Python :: 3.4',
  41. 'Topic :: Software Development :: Libraries',
  42. ],
  43. test_suite="dateutil.test.test"
  44. )