Skip to content

Commit 47bcfbb

Browse files
use pyproject.toml instead of setup.py for project definition
1 parent c500fd8 commit 47bcfbb

File tree

2 files changed

+101
-109
lines changed

2 files changed

+101
-109
lines changed

pyproject.toml

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,103 @@
11
[build-system]
2-
requires = ["setuptools >= 64"]
2+
requires = ["setuptools>=61", "setuptools_scm"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "climada"
7+
version = "6.0.2-dev"
8+
description = "CLIMADA in Python"
9+
readme = "README.md"
10+
requires-python = ">=3.10,<3.13"
11+
license = { text = "GNU Lesser General Public License v3 (GPLv3)" }
12+
authors = [
13+
{ name = "ETH", email = "[email protected]" }
14+
]
15+
keywords = ["climate", "adaptation"]
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Programming Language :: Python :: 3",
19+
"Topic :: Scientific/Engineering :: Atmospheric Science",
20+
"Topic :: Scientific/Engineering :: GIS",
21+
"Topic :: Scientific/Engineering :: Mathematics"
22+
]
23+
dependencies = [
24+
"bayesian-optimization<2.0",
25+
"bottleneck",
26+
"cartopy",
27+
"cfgrib",
28+
"contextily",
29+
"dask",
30+
"deprecation",
31+
"geopandas",
32+
"h5py",
33+
"haversine",
34+
"matplotlib",
35+
"netcdf4",
36+
"numba",
37+
"openpyxl",
38+
"overpy",
39+
"pandas",
40+
"pathos",
41+
"peewee",
42+
"pillow",
43+
"pint",
44+
"pycountry",
45+
"pyproj",
46+
"rasterio",
47+
"salib",
48+
"scikit-learn",
49+
"seaborn",
50+
"statsmodels",
51+
"sparse",
52+
"tables",
53+
"tabulate",
54+
"tqdm",
55+
"xarray",
56+
"xlrd",
57+
"xlsxwriter"
58+
]
59+
60+
[project.optional-dependencies]
61+
doc = [
62+
"ipython",
63+
"myst-nb",
64+
"readthedocs-sphinx-ext>=2.2",
65+
"sphinx",
66+
"sphinx-book-theme",
67+
"sphinx-markdown-tables",
68+
"sphinx-design",
69+
"sphinx-mdinclude"
70+
]
71+
test = [
72+
"ipython",
73+
"mccabe>=0.6",
74+
"pylint>=3.0",
75+
"pytest",
76+
"pytest-cov",
77+
"pytest-subtests"
78+
]
79+
dev = [
80+
"ipython",
81+
"myst-nb",
82+
"readthedocs-sphinx-ext>=2.2",
83+
"sphinx",
84+
"sphinx-book-theme",
85+
"sphinx-markdown-tables",
86+
"sphinx-design",
87+
"sphinx-mdinclude",
88+
"mccabe>=0.6",
89+
"pylint>=3.0",
90+
"pytest",
91+
"pytest-cov",
92+
"pytest-subtests",
93+
"pre-commit"
94+
]
95+
96+
[project.urls]
97+
Homepage = "https://github.com/CLIMADA-project/climada_python"
98+
99+
[tool.setuptools]
100+
include-package-data = true
101+
102+
[tool.setuptools.packages.find]
103+
include = ["climada*"]

setup.py

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)