-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (43 loc) · 1.5 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import setuptools
import xml.etree.ElementTree as ETree
with open("README.md") as readme_file:
readme = readme_file.read()
version = "0.0.1"
tree = ETree.parse(r'pom.xml')
root = tree.getroot()
for child in root:
if "version" in child.tag:
version = child.text
requirements = []
with open('requirements.txt') as f:
requirements = [l for l in f.read().splitlines()
if not l.startswith("git")]
setuptools.setup(
name="mobi-synpop",
version=version,
long_description=readme,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
# https://setuptools.readthedocs.io/en/latest/setuptools.html
dependency_links=[
# workaround: we cannot extract the --index-url entries from requirements.txt since
# - pip does not work with the library name (tf-object-detection) at the end of the URL
# - setup.py (which uses easy_install) needs the library name (tf-object-detection) at the end of the URL
],
include_package_data=False,
package_data={'': ['../report/*', '../report/marginal_fitting/*', 'config/*', 'shp/*']},
zip_safe=False,
entry_points={
'console_scripts': [
'synpop=synpop.pipeline:synpop' # entry point for CLI interface
],
},
extras_require={'full': requirements},
classifiers=(
"Programming Language :: Python :: 3.7",
"Operating System :: Windows",
)
)