setup.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. 'docopt==0.6.1',
  30. 'docker-py==0.2.2',
  31. 'requests==2.0.1',
  32. 'texttable==0.8.1',
  33. ],
  34. dependency_links=[],
  35. entry_points="""
  36. [console_scripts]
  37. plum=plum:main
  38. """,
  39. )