forked from openshiftio/saasherder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (31 loc) · 952 Bytes
/
setup.py
File metadata and controls
39 lines (31 loc) · 952 Bytes
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
#!/usr/bin/python
import sys
import os
from setuptools import setup
NAME = 'saasherder'
def get_requirements():
with open('requirements.txt') as fd:
return fd.read().splitlines()
def get_version():
with open(os.path.join(NAME, 'version.py')) as f:
version = f.readline()
# dirty, remove trailing and leading chars
return version.split(' = ')[1].strip("'")
setup(
name=NAME,
version=get_version(),
packages=[NAME],
install_requires=get_requirements(),
author='Vaclav Pavlin',
author_email='vasek@redhat.com',
maintainer='Vaclav Pavlin',
maintainer_email='vasek@redhat.com',
description='OpenShift deployment version tracking tool',
url='https://github.com/openshiftio/saasherder',
license='BSD',
entry_points = {
'console_scripts': [
'saasherder = saasherder.cli:main',
],
},
)