Skip to content

Commit f7df092

Browse files
authored
move the project metadata to pyproject.toml (#201)
* update the minimum version of `setuptools` and `setuptools_scm` * port the project metadata from `setup.cfg` to `pyproject.toml` * delete the old `setup.cfg` and `setup.py` * use string instead of toml booleans
1 parent e23fb4a commit f7df092

File tree

3 files changed

+39
-34
lines changed

3 files changed

+39
-34
lines changed

pyproject.toml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
1+
[project]
2+
name = "pint-xarray"
3+
authors = [
4+
{name = "Tom Nicholas", email = "tomnicholas1@googlemail.com"}
5+
]
6+
description = "Physical units interface to xarray using Pint"
7+
license = {text = "Apache-2"}
8+
readme = "README.md"
9+
classifiers = [
10+
"Development Status :: 3 - Alpha",
11+
"Environment :: Console",
12+
"Intended Audience :: Science/Research",
13+
"License :: OSI Approved :: Apache Software License",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Topic :: Scientific/Engineering",
20+
]
21+
requires-python = ">=3.8"
22+
dependencies = [
23+
"numpy >= 1.17",
24+
"xarray >= 0.16.1",
25+
"pint >= 0.16",
26+
]
27+
dynamic = ["version"]
28+
29+
[project.urls]
30+
Home = "https://github.com/xarray-contrib/pint-xarray"
31+
Documentation = "https://pint-xarray.readthedocs.io/en/stable"
32+
33+
[tool.setuptools.packages.find]
34+
include = [
35+
"pint_xarray",
36+
"pint_xarray.tests",
37+
]
38+
139
[build-system]
2-
requires = ["setuptools >= 42", "wheel", "setuptools_scm[toml] >= 3.4"]
40+
requires = ["setuptools >= 64", "setuptools_scm >= 7.0"]
341
build-backend = "setuptools.build_meta"
442

543
[tool.setuptools_scm]

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)