Skip to content

Commit 1048fc0

Browse files
setup: DEPS_TEST update
pylint <3 doesn't work for python 3.11
1 parent b4eadee commit 1048fc0

File tree

1 file changed

+62
-70
lines changed

1 file changed

+62
-70
lines changed

setup.py

Lines changed: 62 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"""
33

44
from pathlib import Path
5-
from setuptools import setup, find_namespace_packages
5+
6+
from setuptools import find_namespace_packages, setup
67

78
here = Path(__file__).parent.absolute()
89

910
# 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:
1112
long_description = f.read()
1213

1314
# Requirements for documentation
@@ -24,93 +25,84 @@
2425
DEPS_TEST = [
2526
"ipython",
2627
"mccabe>=0.6",
27-
"pylint==2.7.1",
28+
"pylint>=3.0",
2829
"pytest",
2930
"pytest-cov",
3031
"pytest-subtests",
3132
]
3233

3334
# 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+
)
3742

3843
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",
4547
long_description=long_description,
4648
long_description_content_type="text/markdown",
47-
48-
url='https://github.com/CLIMADA-project/climada_python',
49-
50-
author='ETH',
51-
author_email='[email protected]',
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+
author_email="[email protected]",
52+
license="OSI Approved :: GNU Lesser General Public License v3 (GPLv3)",
5553
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",
6159
],
62-
63-
keywords='climate adaptation',
64-
60+
keywords="climate adaptation",
6561
python_requires=">=3.9,<3.12",
66-
6762
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",
10499
],
105-
106100
extras_require={
107101
"doc": DEPS_DOC,
108102
"test": DEPS_TEST,
109103
"dev": DEPS_DEV,
110104
},
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"],
115107
include_package_data=True,
116108
)

0 commit comments

Comments
 (0)