forked from IMMM-SFA/cerf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (54 loc) · 1.75 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
import re
from setuptools import setup, find_packages
def readme():
"""Return the contents of the project README file."""
with open('README.md') as f:
return f.read()
def get_requirements():
"""Return a list of package requirements from the requirements.txt file."""
with open('requirements.txt') as f:
return f.read().split()
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", open('cerf/__init__.py').read(), re.M).group(1)
setup(
name='cerf',
version=version,
packages=find_packages(),
url='https://github.com/IMMM-SFA/cerf',
download_url=f'https://github.com/IMMM-SFA/cerf/archive/refs/tags/v{version}.tar.gz',
license='BSD2-Simplified',
author='Chris R. Vernon; Nino Zuljevic',
author_email='[email protected]',
description='An open-source geospatial Python package for assessing and analyzing future electricity technology capacity expansion feasibility',
long_description=readme(),
long_description_content_type="text/markdown",
python_requires='>=3.7.*, <4',
include_package_data=True,
install_requires=[
'numpy~=1.19.4',
'pandas~=1.1.4',
'rasterio~=1.2.3',
'xarray~=0.16.1',
'PyYAML~=5.4.1',
'requests~=2.25.1',
'joblib~=1.0.1',
'matplotlib~=3.3.3',
'seaborn~=0.11.1',
'whitebox~=1.5.1',
'fiona~=1.8.19',
'pyproj~=3.0.1',
'rtree~=0.9.7',
'shapely~=1.7.1',
'geopandas~=0.9.0'
],
extras_require={
'dev': [
'build~=0.5.1',
'nbsphinx~=0.8.6',
'setuptools~=57.0.0',
'sphinx~=4.0.2',
'sphinx-panels~=0.6.0',
'sphinx-rtd-theme~=0.5.2',
'twine~=3.4.1'
]
}
)