|
1 | | -[build-system] |
2 | | -requires = ["setuptools", "wheel"] |
3 | | -build-backend = "setuptools.build_meta" |
4 | | - |
5 | 1 | [project] |
6 | | -name = "bmi-heat" |
| 2 | +name = "bmi_heat" |
| 3 | +requires-python = ">=3.10" |
7 | 4 | description = "BMI Python example" |
| 5 | +keywords = [ |
| 6 | + "bmi", |
| 7 | + "component modeling", |
| 8 | + "csdms", |
| 9 | + "earth science", |
| 10 | +] |
8 | 11 | authors = [ |
9 | | - {email = "eric.hutton@colorado.edu"}, |
10 | | - {name = "Eric Hutton"} |
| 12 | + { email = "eric.hutton@colorado.edu" }, |
| 13 | + { name = "Eric Hutton" }, |
11 | 14 | ] |
12 | 15 | 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" }, |
15 | 18 | ] |
16 | | -keywords = [ |
17 | | - "bmi", |
18 | | - "component modeling", |
19 | | - "csdms", |
20 | | - "earth science", |
21 | | -] |
22 | | -license = {file = "LICENSE"} |
23 | 19 | classifiers = [ |
24 | 20 | "Development Status :: 4 - Beta", |
25 | 21 | "Intended Audience :: Science/Research", |
26 | 22 | "License :: OSI Approved :: MIT License", |
27 | 23 | "Operating System :: OS Independent", |
28 | 24 | "Programming Language :: Python :: 3", |
29 | | - "Programming Language :: Python :: 3.9", |
30 | 25 | "Programming Language :: Python :: 3.10", |
31 | 26 | "Programming Language :: Python :: 3.11", |
32 | 27 | "Programming Language :: Python :: 3.12", |
33 | 28 | "Programming Language :: Python :: Implementation :: CPython", |
34 | 29 | "Topic :: Scientific/Engineering :: Physics", |
35 | 30 | ] |
36 | | -requires-python = ">=3.9" |
37 | 31 | dependencies = [ |
| 32 | + "bmipy", |
38 | 33 | "numpy", |
39 | | - "scipy", |
40 | 34 | "pyyaml", |
41 | | - "bmipy", |
| 35 | + "scipy", |
| 36 | +] |
| 37 | +dynamic = [ |
| 38 | + "readme", |
| 39 | + "version", |
42 | 40 | ] |
43 | | -dynamic = ["readme", "version"] |
| 41 | + |
| 42 | +[project.license] |
| 43 | +text = "MIT" |
44 | 44 |
|
45 | 45 | [project.urls] |
46 | | -Homepage = "https://csdms.colorado.edu" |
| 46 | +Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst" |
47 | 47 | Documentation = "https://bmi.readthedocs.io" |
| 48 | +Homepage = "https://csdms.colorado.edu" |
48 | 49 | Repository = "https://github.com/csdms/bmi-example-python" |
49 | | -Changelog = "https://github.com/csdms/bmi-example-python/blob/master/CHANGES.rst" |
50 | 50 |
|
51 | 51 | [project.optional-dependencies] |
| 52 | +dev = [ |
| 53 | + "nox", |
| 54 | +] |
52 | 55 | testing = [ |
| 56 | + "bmi-tester", |
53 | 57 | "coveralls", |
54 | 58 | "pytest", |
55 | 59 | "pytest-cov", |
56 | | - "black", |
57 | | - "isort", |
58 | | - "ruff", |
59 | | - "bmi-tester", |
60 | 60 | ] |
61 | 61 |
|
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__" |
65 | 75 |
|
66 | 76 | [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" |
68 | 87 |
|
69 | 88 | [tool.pytest.ini_options] |
70 | 89 | 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 | +] |
81 | 108 | doctest_optionflags = [ |
82 | | - "NORMALIZE_WHITESPACE", |
83 | | - "IGNORE_EXCEPTION_DETAIL", |
84 | | - "ALLOW_UNICODE" |
| 109 | + "NORMALIZE_WHITESPACE", |
| 110 | + "IGNORE_EXCEPTION_DETAIL", |
| 111 | + "ALLOW_UNICODE", |
85 | 112 | ] |
86 | 113 |
|
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 | | - |
94 | 114 | [tool.ruff] |
95 | 115 | line-length = 88 |
96 | 116 | ignore = [ |
97 | | - "E203", |
98 | | - "E501", |
| 117 | + "E203", |
| 118 | + "E501", |
99 | 119 | ] |
100 | 120 |
|
101 | | -[tool.coverage.run] |
102 | | -relative_files = true |
103 | | - |
104 | 121 | [tool.zest-releaser] |
105 | 122 | tag-format = "v{version}" |
106 | 123 | python-file-with-version = "heat/_version.py" |
0 commit comments