-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (36 loc) · 1.15 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
#!/usr/bin/env python
"""Setup to pip package."""
from setuptools import setup, find_packages
import json
import os
thelibFolder = os.path.dirname(os.path.realpath(__file__))
requirementPath = thelibFolder + "/requirements.txt"
install_requires = []
if os.path.isfile(requirementPath):
with open(requirementPath) as f:
install_requires = f.read().splitlines()
install_requires = list(filter(lambda x: x[:2] != "--", install_requires))
reference = None
try:
reference = os.environ["DEST_REFERENCE"]
except Exception:
pass
with open("automation/version.json") as json_file:
data = json.load(json_file)
version = data["version"]
name = data["name"]
setup(
name=name,
version=version,
description="GSP on extension algebras over the real numbers",
author="Guilherme Boaviagem",
author_email="guilherme.boaviagem@gmail.com",
install_requires=install_requires,
packages=find_packages(exclude=("tests",)),
package_data={"gspx": [
"resources/county_data_description.json",
"resources/county_data.gz",
"resources/county_latlong.gz",
"resources/uk_weather_at_20Apr202213pm.gz"
]},
)