|
1 | | -"""A setuptools based setup module. |
2 | | -""" |
3 | | - |
4 | | -from pathlib import Path |
5 | | - |
6 | | -from setuptools import find_namespace_packages, setup |
7 | | - |
8 | | -here = Path(__file__).parent.absolute() |
9 | | - |
10 | | -# Get the long description from the README file |
11 | | -with open(here.joinpath("README.md"), encoding="utf-8") as f: |
12 | | - long_description = f.read() |
13 | | - |
14 | | -# Requirements for documentation |
15 | | -DEPS_DOC = [ |
16 | | - "ipython", |
17 | | - "myst-nb", |
18 | | - "readthedocs-sphinx-ext>=2.2", |
19 | | - "sphinx", |
20 | | - "sphinx-book-theme", |
21 | | - "sphinx-markdown-tables", |
22 | | - "sphinx-mdinclude", |
23 | | -] |
24 | | - |
25 | | -# Requirements for testing |
26 | | -DEPS_TEST = [ |
27 | | - "ipython", |
28 | | - "mccabe>=0.6", |
29 | | - "pylint>=3.0", |
30 | | - "pytest", |
31 | | - "pytest-cov", |
32 | | - "pytest-subtests", |
33 | | -] |
34 | | - |
35 | | -# Requirements for development |
36 | | -DEPS_DEV = ( |
37 | | - DEPS_DOC |
38 | | - + DEPS_TEST |
39 | | - + [ |
40 | | - "pre-commit", |
41 | | - ] |
42 | | -) |
43 | | - |
44 | | -setup( |
45 | | - name="climada", |
46 | | - version="6.0.1-dev", |
47 | | - description="CLIMADA in Python", |
48 | | - long_description=long_description, |
49 | | - long_description_content_type="text/markdown", |
50 | | - url="https://github.com/CLIMADA-project/climada_python", |
51 | | - author="ETH", |
52 | | - |
53 | | - license="OSI Approved :: GNU Lesser General Public License v3 (GPLv3)", |
54 | | - classifiers=[ |
55 | | - "Development Status :: 4 - Beta", |
56 | | - "Programming Language :: Python :: 3", |
57 | | - "Topic :: Scientific/Engineering :: Atmospheric Science", |
58 | | - "Topic :: Scientific/Engineering :: GIS", |
59 | | - "Topic :: Scientific/Engineering :: Mathematics", |
60 | | - ], |
61 | | - keywords="climate adaptation", |
62 | | - python_requires=">=3.10,<3.12", |
63 | | - install_requires=[ |
64 | | - "bayesian-optimization<2.0", |
65 | | - "bottleneck", |
66 | | - "cartopy", |
67 | | - "cfgrib", |
68 | | - "contextily", |
69 | | - "dask", |
70 | | - "deprecation", |
71 | | - "geopandas", |
72 | | - "h5py", |
73 | | - "haversine", |
74 | | - "matplotlib", |
75 | | - "netcdf4", |
76 | | - "numba", |
77 | | - "openpyxl", |
78 | | - "overpy", |
79 | | - "pandas", |
80 | | - "pandas-datareader", |
81 | | - "pathos", |
82 | | - "peewee", |
83 | | - "pillow", |
84 | | - "pint", |
85 | | - "pycountry", |
86 | | - "pyproj", |
87 | | - "rasterio", |
88 | | - "salib", |
89 | | - "scikit-learn", |
90 | | - "seaborn", |
91 | | - "statsmodels", |
92 | | - "sparse", |
93 | | - "tables", |
94 | | - "tabulate", |
95 | | - "tqdm", |
96 | | - "xarray", |
97 | | - "xlrd", |
98 | | - "xlsxwriter", |
99 | | - ], |
100 | | - extras_require={ |
101 | | - "doc": DEPS_DOC, |
102 | | - "test": DEPS_TEST, |
103 | | - "dev": DEPS_DEV, |
104 | | - }, |
105 | | - packages=find_namespace_packages(include=["climada*"]), |
106 | | - setup_requires=["setuptools_scm"], |
107 | | - include_package_data=True, |
108 | | -) |
| 1 | +"""A setuptools based setup module. |
| 2 | +""" |
| 3 | + |
| 4 | +from pathlib import Path |
| 5 | + |
| 6 | +from setuptools import find_namespace_packages, setup |
| 7 | + |
| 8 | +here = Path(__file__).parent.absolute() |
| 9 | + |
| 10 | +# Get the long description from the README file |
| 11 | +with open(here.joinpath("README.md"), encoding="utf-8") as f: |
| 12 | + long_description = f.read() |
| 13 | + |
| 14 | +# Requirements for documentation |
| 15 | +DEPS_DOC = [ |
| 16 | + "ipython", |
| 17 | + "myst-nb", |
| 18 | + "readthedocs-sphinx-ext>=2.2", |
| 19 | + "sphinx", |
| 20 | + "sphinx-book-theme", |
| 21 | + "sphinx-markdown-tables", |
| 22 | + "sphinx-mdinclude", |
| 23 | +] |
| 24 | + |
| 25 | +# Requirements for testing |
| 26 | +DEPS_TEST = [ |
| 27 | + "ipython", |
| 28 | + "mccabe>=0.6", |
| 29 | + "pylint>=3.0", |
| 30 | + "pytest", |
| 31 | + "pytest-cov", |
| 32 | + "pytest-subtests", |
| 33 | +] |
| 34 | + |
| 35 | +# Requirements for development |
| 36 | +DEPS_DEV = ( |
| 37 | + DEPS_DOC |
| 38 | + + DEPS_TEST |
| 39 | + + [ |
| 40 | + "pre-commit", |
| 41 | + ] |
| 42 | +) |
| 43 | + |
| 44 | +setup( |
| 45 | + name="climada", |
| 46 | + version="6.0.2-dev", |
| 47 | + description="CLIMADA in Python", |
| 48 | + long_description=long_description, |
| 49 | + long_description_content_type="text/markdown", |
| 50 | + url="https://github.com/CLIMADA-project/climada_python", |
| 51 | + author="ETH", |
| 52 | + |
| 53 | + license="OSI Approved :: GNU Lesser General Public License v3 (GPLv3)", |
| 54 | + classifiers=[ |
| 55 | + "Development Status :: 4 - Beta", |
| 56 | + "Programming Language :: Python :: 3", |
| 57 | + "Topic :: Scientific/Engineering :: Atmospheric Science", |
| 58 | + "Topic :: Scientific/Engineering :: GIS", |
| 59 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 60 | + ], |
| 61 | + keywords="climate adaptation", |
| 62 | + python_requires=">=3.10,<3.12", |
| 63 | + install_requires=[ |
| 64 | + "bayesian-optimization<2.0", |
| 65 | + "bottleneck", |
| 66 | + "cartopy", |
| 67 | + "cfgrib", |
| 68 | + "contextily", |
| 69 | + "dask", |
| 70 | + "deprecation", |
| 71 | + "geopandas", |
| 72 | + "h5py", |
| 73 | + "haversine", |
| 74 | + "matplotlib", |
| 75 | + "netcdf4", |
| 76 | + "numba", |
| 77 | + "openpyxl", |
| 78 | + "overpy", |
| 79 | + "pandas", |
| 80 | + "pandas-datareader", |
| 81 | + "pathos", |
| 82 | + "peewee", |
| 83 | + "pillow", |
| 84 | + "pint", |
| 85 | + "pycountry", |
| 86 | + "pyproj", |
| 87 | + "rasterio", |
| 88 | + "salib", |
| 89 | + "scikit-learn", |
| 90 | + "seaborn", |
| 91 | + "statsmodels", |
| 92 | + "sparse", |
| 93 | + "tables", |
| 94 | + "tabulate", |
| 95 | + "tqdm", |
| 96 | + "xarray", |
| 97 | + "xlrd", |
| 98 | + "xlsxwriter", |
| 99 | + ], |
| 100 | + extras_require={ |
| 101 | + "doc": DEPS_DOC, |
| 102 | + "test": DEPS_TEST, |
| 103 | + "dev": DEPS_DEV, |
| 104 | + }, |
| 105 | + packages=find_namespace_packages(include=["climada*"]), |
| 106 | + setup_requires=["setuptools_scm"], |
| 107 | + include_package_data=True, |
| 108 | +) |
0 commit comments