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