Skip to content

Commit 16e18f6

Browse files
committed
clean up pyproject.toml
1 parent d79e7e6 commit 16e18f6

1 file changed

Lines changed: 73 additions & 56 deletions

File tree

pyproject.toml

Lines changed: 73 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,123 @@
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"},
16+
{ name = "Mark Piper", email = "mark.piper@colorado.edu" },
17+
{ name = "Eric Hutton", email = "eric.hutton@colorado.edu" },
1518
]
16-
keywords = [
17-
"bmi",
18-
"component modeling",
19-
"csdms",
20-
"earth science",
21-
]
22-
license = {file = "LICENSE"}
2319
classifiers = [
2420
"Development Status :: 4 - Beta",
2521
"Intended Audience :: Science/Research",
2622
"License :: OSI Approved :: MIT License",
2723
"Operating System :: OS Independent",
2824
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.9",
3025
"Programming Language :: Python :: 3.10",
3126
"Programming Language :: Python :: 3.11",
3227
"Programming Language :: Python :: 3.12",
3328
"Programming Language :: Python :: Implementation :: CPython",
3429
"Topic :: Scientific/Engineering :: Physics",
3530
]
36-
requires-python = ">=3.9"
3731
dependencies = [
32+
"bmipy",
3833
"numpy",
39-
"scipy",
4034
"pyyaml",
41-
"bmipy",
35+
"scipy",
36+
]
37+
dynamic = [
38+
"readme",
39+
"version",
4240
]
43-
dynamic = ["readme", "version"]
41+
42+
[project.license]
43+
text = "MIT"
4444

4545
[project.urls]
46-
Homepage = "https://csdms.colorado.edu"
46+
Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst"
4747
Documentation = "https://bmi.readthedocs.io"
48+
Homepage = "https://csdms.colorado.edu"
4849
Repository = "https://github.com/csdms/bmi-example-python"
49-
Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst"
5050

5151
[project.optional-dependencies]
52+
dev = [
53+
"nox",
54+
]
5255
testing = [
56+
"bmi-tester",
5357
"coveralls",
5458
"pytest",
5559
"pytest-cov",
56-
"black",
57-
"isort",
58-
"ruff",
59-
"bmi-tester",
6060
]
6161

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

6676
[tool.setuptools.packages.find]
67-
where = ["."]
77+
where = [
78+
".",
79+
]
80+
81+
[tool.coverage.run]
82+
relative_files = true
83+
84+
[tool.isort]
85+
profile = "black"
86+
force_single_line = "true"
6887

6988
[tool.pytest.ini_options]
7089
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-
"""
90+
testpaths = [
91+
"heat",
92+
"tests",
93+
]
94+
norecursedirs = [
95+
".*",
96+
"*.egg*",
97+
"build",
98+
"dist",
99+
]
100+
addopts = [
101+
"--ignore=setup.py",
102+
"--tb=native",
103+
"--strict-markers",
104+
"--durations=16",
105+
"--doctest-modules",
106+
"-vvv",
107+
]
81108
doctest_optionflags = [
82-
"NORMALIZE_WHITESPACE",
83-
"IGNORE_EXCEPTION_DETAIL",
84-
"ALLOW_UNICODE"
109+
"NORMALIZE_WHITESPACE",
110+
"IGNORE_EXCEPTION_DETAIL",
111+
"ALLOW_UNICODE",
85112
]
86113

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-
94114
[tool.ruff]
95115
line-length = 88
96116
ignore = [
97-
"E203",
98-
"E501",
117+
"E203",
118+
"E501",
99119
]
100120

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

0 commit comments

Comments
 (0)