-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
67 lines (57 loc) · 2.03 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
# -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
import versioneer
DISTNAME = "ldndctools"
LICENSE = "Apache"
AUTHOR = "Christian Werner"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/cwerner/ldndctools"
DESCRIPTION = "Preprocessing tools for LandscapeDNDC"
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
]
PYTHON_REQUIRES = ">=3.7"
here = path.abspath(path.dirname(__file__))
# 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
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
all_reqs = f.read().split("\n")
INSTALL_REQUIRES = [x.strip() for x in all_reqs if "git+" not in x]
dependency_links = [x.strip().replace("git+", "") for x in all_reqs if "git+" not in x]
setup(
name=DISTNAME,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license=LICENSE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
packages=find_packages(exclude=["docs", "tests"]),
install_requires=INSTALL_REQUIRES,
package_dir={"ldndctools": "ldndctools"},
package_data={"ldndctools": ["data/catalog.yml", "data/ldndctools.conf"]},
include_package_data=True,
entry_points={
"console_scripts": [
"dlsc=ldndctools.dlsc:main",
"cdgen=ldndctools.cdgen:main",
"nlcc_split4db=ldndctools.nlcc_split4db:main",
]
},
dependency_links=dependency_links,
)