setup.py 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from setuptools import setup
  4. import re
  5. import os
  6. import codecs
  7. # Borrowed from
  8. # https://github.com/jezdez/django_compressor/blob/develop/setup.py
  9. def read(*parts):
  10. return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()
  11. def find_version(*file_paths):
  12. version_file = read(*file_paths)
  13. version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
  14. version_file, re.M)
  15. if version_match:
  16. return version_match.group(1)
  17. raise RuntimeError("Unable to find version string.")
  18. setup(
  19. name='plum',
  20. version=find_version("plum", "__init__.py"),
  21. description='',
  22. url='https://github.com/orchardup/plum',
  23. author='Orchard Laboratories Ltd.',
  24. author_email='[email protected]',
  25. packages=['plum'],
  26. package_data={},
  27. include_package_data=True,
  28. install_requires=[],
  29. dependency_links=[],
  30. entry_points="""
  31. [console_scripts]
  32. plum=plum:main
  33. """,
  34. )