forked from docker/compose
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.1 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import re
import os
import codecs
# Borrowed from
# https://github.com/jezdez/django_compressor/blob/develop/setup.py
def read(*parts):
return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='plum',
version=find_version("plum", "__init__.py"),
description='',
url='https://github.com/orchardup.plum',
author='Orchard Laboratories Ltd.',
author_email='hello@orchardup.com',
packages=['plum'],
package_data={},
include_package_data=True,
install_requires=[
'docopt==0.6.1',
'docker-py==0.2.2',
'requests==2.0.1',
'texttable==0.8.1',
],
dependency_links=[],
entry_points="""
[console_scripts]
plum=plum:main
""",
)