forked from elixir-no-nels/ehos-python
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
46 lines (35 loc) · 1.11 KB
/
setup.py
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
from setuptools import setup
import json
import glob
def readme():
with open('README.rst') as f:
return f.read()
def get_version():
with open('version.json') as json_file:
data = json.load(json_file)
if 'dev' in data:
return "{}.{}.{}-dev{}".format( data['major'], data['minor'], data['patch'], data['dev'])
return "{}.{}.{}".format( data['major'], data['minor'], data['patch'])
def get_requirements():
file_handle = open('requirements.txt', 'r')
data = file_handle.read()
file_handle.close()
return data.split("\n")
def scripts(directory='bin/*') -> []:
print(glob.glob( directory ))
return list(glob.glob( directory ))
setup(name='ecc',
version= get_version(),
description='Elastic Compute Cluster',
url='https://github.com/usegalaxy-no/ecc/',
author='Kim Brugger',
author_email='[email protected]',
license='MIT',
packages=['ecc'],
classifiers=[
'License :: MIT License',
'Programming Language :: Python :: +3.6'
],
install_requires=[ get_requirements() ],
scripts=scripts(),
)