Skip to content

Commit 13b2592

Browse files
committed
Move project metadata from setup.cfg to pyproject.toml
1 parent 684e136 commit 13b2592

File tree

2 files changed

+84
-44
lines changed

2 files changed

+84
-44
lines changed

pyproject.toml

+81
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,84 @@
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "bmi-tester"
7+
description = "Test Python BMI bindings"
8+
version = "0.5.6.dev0"
9+
authors = [
10+
{email = "[email protected]"},
11+
{name = "Eric Hutton"},
12+
]
13+
maintainers = [
14+
{email = "[email protected]"},
15+
{name = "Eric Hutton"},
16+
{email = "[email protected]"},
17+
{name = "Mark Piper"}
18+
]
19+
keywords = [
20+
"bmi",
21+
"csdms",
22+
"model",
23+
"python",
24+
]
25+
license = {file = "LICENSE"}
26+
classifiers = [
27+
"Development Status :: 4 - Beta",
28+
"Intended Audience :: Science/Research",
29+
"License :: OSI Approved :: MIT License",
30+
"Operating System :: OS Independent",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3",
35+
"Topic :: Scientific/Engineering :: Physics",
36+
]
37+
requires-python = ">=3.9"
38+
dependencies = [
39+
"click",
40+
"gimli.units",
41+
"model_metadata",
42+
"numpy",
43+
"pytest",
44+
"pytest-dependency",
45+
"standard_names",
46+
]
47+
dynamic = ["readme"]
48+
49+
[project.optional-dependencies]
50+
dev = [
51+
"black",
52+
"flake8",
53+
]
54+
testing = [
55+
"coveralls",
56+
"pytest>=3.6",
57+
"pytest-cov",
58+
]
59+
docs = [
60+
"sphinx>=1.5.1",
61+
]
62+
build = [
63+
"build",
64+
"twine",
65+
"zest.releaser"
66+
]
67+
68+
[project.urls]
69+
homepage = "https://csdms.colorado.edu"
70+
documentation = "https://csdms.colorado.edu"
71+
repository = "https://github.com/csdms/bmi-tester"
72+
changelog = "https://github.com/csdms/bmi-tester/blob/master/CHANGES.rst"
73+
74+
[project.scripts]
75+
bmi-test = "bmi_tester.bmipytest:main"
76+
77+
[project.entry-points."bmi.plugins"]
78+
bmi_test = "bmi_tester.bmipytest:configure_parser_test"
79+
80+
[tool.setuptools.dynamic]
81+
readme = {file = ["README.rst", "CREDITS.rst", "CHANGES.rst"], content-type = "text/x-rst"}
82+
583
[tool.pytest.ini_options]
684
minversion = "6.0.0rc1"
785
testpaths = ["tests"]
@@ -27,3 +105,6 @@ include_trailing_comma = true
27105
force_grid_wrap = 0
28106
combine_as_imports = true
29107
line_length = 88
108+
109+
[tool.zest-releaser]
110+
tag-format = "v{version}"

setup.cfg

+3-44
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,10 @@
1-
[metadata]
2-
name = bmi-tester
3-
version = 0.5.6.dev0
4-
description = Test Python BMI bindings
5-
keywords = bmi
6-
long_description = file: README.rst, CREDITS.rst, CHANGES.rst
7-
long_description_content_type = text/x-rst
8-
author = Eric Hutton
9-
author_email = [email protected]
10-
license = MIT
11-
license_files = LICENSE.rst
12-
classifiers =
13-
Development Status :: 4 - Beta
14-
Intended Audience :: Science/Research
15-
License :: OSI Approved :: MIT License
16-
Operating System :: OS Independent
17-
Programming Language :: Python :: 3
18-
Programming Language :: Python :: 3.6
19-
Programming Language :: Python :: 3.7
20-
Programming Language :: Python :: Implementation :: CPython
21-
Topic :: Scientific/Engineering :: Physics
22-
url = https://github.com/csdms/bmi-tester
23-
24-
[options]
25-
include_package_data = True
26-
packages = find:
27-
install_requires =
28-
click
29-
gimli.units
30-
model_metadata
31-
numpy
32-
pytest
33-
pytest-dependency
34-
standard_names
35-
36-
[options.entry_points]
37-
console_scripts =
38-
bmi-test = bmi_tester.bmipytest:main
39-
bmi.plugins =
40-
bmi_test = bmi_tester.bmipytest:configure_parser_test
41-
42-
[zest.releaser]
43-
tag-format = v{version}
44-
451
[flake8]
462
exclude = docs
473
ignore =
484
E203
495
E501
506
W503
517
max-line-length = 88
8+
9+
[coverage:run]
10+
relative_files = True

0 commit comments

Comments
 (0)