-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 461: move to pyproject.toml for build * 461: update docs and sonarQube
- Loading branch information
1 parent
a168ff7
commit 4aa40b1
Showing
5 changed files
with
66 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from distutils.util import convert_path | ||
|
||
main_ns = {} | ||
version_path = convert_path('docs/version') | ||
with open(version_path) as version_file: | ||
exec(version_file.read(), main_ns) | ||
__version__ = main_ns['__version__'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "metplotpy" | ||
dynamic = ["version", "dependencies"] | ||
description = "plotting package for METplus" | ||
authors = [ | ||
{name = "METplus", email = "met-help@ucar.edu"}, | ||
] | ||
requires-python = ">=3.10.4" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/dtcenter/METplotpy" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "metplotpy.__version__"} | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[tool.setuptools] | ||
packages = ["metplotpy"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["test"] | ||
|
||
[tool.coverage.run] | ||
source = ["metplotpy/plots"] |