-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
46 lines (39 loc) · 1.42 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
import os
from setuptools import setup
from setuptools import find_packages
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt") as f:
requirements = f.read().splitlines()
access_templates = [
os.path.join("cbm3data", "access_templates", "*.mdb"),
os.path.join("cbm3data", "access_templates", "*.accdb"),
]
results_queries = [os.path.join("cbm3data", "results_queries", "*.sql")]
results_col_mapping_csv = [os.path.join("cbm3data", "*.csv")]
console_scripts = [
"cbm3_simulate = cbm3_python.scripts.simulate:main",
"cbm3_sit_import = cbm3_python.scripts.sit_import:main",
]
setup(
name="cbm3_python",
version="1.2.5",
description="Scripts to automate tasks with CBM-CFS3",
keywords=["cbm-cfs3"],
url="http://github.com/cat-cfs/cbm3_python/",
long_description=long_description,
long_description_content_type="text/markdown",
author="Carbon Accounting Team - Canadian Forest Service",
maintainer="Scott Morken",
maintainer_email="[email protected]",
license="MPL-2.0",
packages=find_packages(exclude=["test*"]),
package_data={
"cbm3_python": access_templates
+ results_queries
+ results_col_mapping_csv
},
entry_points={"console_scripts": console_scripts},
install_requires=requirements,
)