-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
68 lines (55 loc) · 1.98 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""Setup."""
# coding=utf-8
from io import open # compatible enconding parameter
from os import environ, path
from setuptools import find_packages, setup
__version__ = "0.6.0"
_description = (
"Automated calibration of the InVEST urban cooling model with"
" simulated annealing"
)
classifiers = [
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
here = path.abspath(path.dirname(__file__))
def read_reqs(reqs_filepath):
"""Read requirements from file."""
with open(reqs_filepath, encoding="utf-8") as f:
return f.read().split("\n")
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# get the dependencies and installs
install_reqs = read_reqs(path.join(here, "requirements.txt"))
dev_reqs = read_reqs(path.join(here, "requirements-dev.txt"))
docs_reqs = read_reqs(path.join(here, "docs", "requirements.txt"))
dependency_links = [
x.strip().replace("git+", "") for x in install_reqs if x.startswith("git+")
]
setup(
name="invest-ucm-calibration",
version=__version__,
description=_description,
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=classifiers,
url="https://github.com/martibosch/invest-ucm-calibration",
author="Martí Bosch",
author_email="marti.bosch@epfl.ch",
license="GPL-3.0",
packages=find_packages(exclude=["docs", "tests*"]),
include_package_data=True,
install_requires=install_reqs,
dependency_links=dependency_links,
entry_points={
"console_scripts": [
"invest-ucm-calibration=invest_ucm_calibration.cli.main:main",
],
},
extras_require={"dev": dev_reqs, "docs": docs_reqs},
)