-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
49 lines (44 loc) · 1.52 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
47
48
49
import sys
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as requirements_file:
lines = requirements_file.read().strip().split("\n")
requirements = []
arguments = []
develop_install = 'develop' in sys.argv
for line in lines:
if line[0] == '-':
# we have a flag to handle on the command line
arguments.extend(line.split(' '))
else:
# we have an actual package requirement
requirements.append(line)
if develop_install:
sys.argv.extend(arguments)
# for some reason, things are installed in reverse requirements.txt order
requirements.reverse()
authors = [
("Clinton Collins", "Clinton.Collins@gatesfoundation.org"),
("Zhaowei Du", "zhaowei.du@gatesfoundation.org"),
("Svetlana Titova", "Svetlana.Titova@gatesfoundation.org")
]
setup(
name='snt',
version='1.0.0',
author=", ".join([author[0] for author in authors]),
author_email=[author[1] for author in authors],
description="SNT scripts and supporting libraries",
install_requires=requirements,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/InstituteforDiseaseModeling/emodpy-snt",
packages=find_packages(),
include_package_data=True,
setup_requires=['wheel'],
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
]
)