Skip to content

Commit bb7d992

Browse files
committed
clean up pyproject.toml
1 parent 040d072 commit bb7d992

1 file changed

Lines changed: 74 additions & 55 deletions

File tree

pyproject.toml

Lines changed: 74 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
4-
51
[project]
6-
name = "bmi-heat"
2+
name = "bmi_heat"
3+
requires-python = ">=3.10"
74
description = "BMI Python example"
5+
keywords = [
6+
"bmi",
7+
"component modeling",
8+
"csdms",
9+
"earth science",
10+
]
811
authors = [
9-
{email = "eric.hutton@colorado.edu"},
10-
{name = "Eric Hutton"}
12+
{ email = "eric.hutton@colorado.edu" },
13+
{ name = "Eric Hutton" },
1114
]
1215
maintainers = [
13-
{name = "Mark Piper", email = "mark.piper@colorado.edu"},
14-
{name = "Eric Hutton", email = "eric.hutton@colorado.edu"},
15-
]
16-
keywords = [
17-
"bmi",
18-
"component modeling",
19-
"csdms",
20-
"earth science",
16+
{ name = "Mark Piper", email = "mark.piper@colorado.edu" },
17+
{ name = "Eric Hutton", email = "eric.hutton@colorado.edu" },
2118
]
22-
license = {file = "LICENSE"}
2319
classifiers = [
2420
"Development Status :: 4 - Beta",
2521
"Intended Audience :: Science/Research",
@@ -35,72 +31,95 @@ classifiers = [
3531
]
3632
requires-python = ">=3.10"
3733
dependencies = [
34+
"bmipy",
3835
"numpy",
39-
"scipy",
4036
"pyyaml",
41-
"bmipy",
37+
"scipy",
38+
]
39+
dynamic = [
40+
"readme",
41+
"version",
4242
]
43-
dynamic = ["readme", "version"]
43+
44+
[project.license]
45+
text = "MIT"
4446

4547
[project.urls]
46-
Homepage = "https://csdms.colorado.edu"
48+
Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst"
4749
Documentation = "https://bmi.readthedocs.io"
50+
Homepage = "https://csdms.colorado.edu"
4851
Repository = "https://github.com/csdms/bmi-example-python"
49-
Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst"
5052

5153
[project.optional-dependencies]
54+
dev = [
55+
"nox",
56+
]
5257
testing = [
58+
"bmi-tester",
5359
"coveralls",
5460
"pytest",
5561
"pytest-cov",
56-
"black",
57-
"isort",
58-
"ruff",
59-
"bmi-tester",
6062
]
6163

62-
[tool.setuptools.dynamic]
63-
readme = {file = ["README.rst", "AUTHORS.rst", "CHANGES.rst"]}
64-
version = {attr = "heat._version.__version__"}
64+
[build-system]
65+
requires = [
66+
"setuptools",
67+
"wheel",
68+
]
69+
build-backend = "setuptools.build_meta"
70+
71+
[tool.setuptools.dynamic.readme]
72+
file = "README.rst"
73+
content-type = "text/x-rst"
74+
75+
[tool.setuptools.dynamic.version]
76+
attr = "heat._version.__version__"
6577

6678
[tool.setuptools.packages.find]
67-
where = ["."]
79+
where = [
80+
".",
81+
]
82+
83+
[tool.coverage.run]
84+
relative_files = true
85+
86+
[tool.isort]
87+
profile = "black"
88+
force_single_line = "true"
6889

6990
[tool.pytest.ini_options]
7091
minversion = "6.0"
71-
testpaths = ["heat", "tests"]
72-
norecursedirs = [".*", "*.egg*", "build", "dist"]
73-
addopts = """
74-
--ignore setup.py
75-
--tb native
76-
--strict-markers
77-
--durations 16
78-
--doctest-modules
79-
-vvv
80-
"""
92+
testpaths = [
93+
"heat",
94+
"tests",
95+
]
96+
norecursedirs = [
97+
".*",
98+
"*.egg*",
99+
"build",
100+
"dist",
101+
]
102+
addopts = [
103+
"--ignore=setup.py",
104+
"--tb=native",
105+
"--strict-markers",
106+
"--durations=16",
107+
"--doctest-modules",
108+
"-vvv",
109+
]
81110
doctest_optionflags = [
82-
"NORMALIZE_WHITESPACE",
83-
"IGNORE_EXCEPTION_DETAIL",
84-
"ALLOW_UNICODE"
111+
"NORMALIZE_WHITESPACE",
112+
"IGNORE_EXCEPTION_DETAIL",
113+
"ALLOW_UNICODE",
85114
]
86115

87-
[tool.isort]
88-
multi_line_output = 3
89-
include_trailing_comma = true
90-
force_grid_wrap = 0
91-
combine_as_imports = true
92-
line_length = 88
93-
94116
[tool.ruff]
95117
line-length = 88
96-
lint.ignore = [
97-
"E203",
98-
"E501",
118+
ignore = [
119+
"E203",
120+
"E501",
99121
]
100122

101-
[tool.coverage.run]
102-
relative_files = true
103-
104123
[tool.zest-releaser]
105124
tag-format = "v{version}"
106125
python-file-with-version = "heat/_version.py"

0 commit comments

Comments
 (0)