-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
401: Migrate install to pyproject.toml (#414)
* 401: Migrate install to pyproject.toml * remove modification to __init__.py * Remove setup.py references from docs
- Loading branch information
1 parent
313fdb8
commit e8b7603
Showing
6 changed files
with
66 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__="3.0.0-dev" | ||
3.0.0-rc1-dev |
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,62 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"wheel", | ||
"setuptools-git-versioning>=2.0,<3", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "metcalcpy" | ||
dynamic = ["version", "dependencies"] | ||
description = "statistics and util package for METplus" | ||
authors = [ | ||
{name = "METplus"}, | ||
] | ||
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/METcalcpy" | ||
|
||
[tool.setuptools.packages] | ||
find = {include = ["metcalcpy*"]} | ||
|
||
[tool.setuptools.package-data] | ||
metplus = [ | ||
"docs/version" | ||
] | ||
|
||
[tool.setuptools.exclude-package-data] | ||
metplus = ["README", "__pycache__", "*~"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[tool.setuptools-git-versioning] | ||
enabled = true | ||
version_file = "docs/version" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["test"] | ||
|
||
[tool.coverage.run] | ||
source = ["metcalcpy"] | ||
omit = [ | ||
"config.py", | ||
"config-3.py", | ||
"metcalcpy/contributed/*", | ||
] | ||
relative_files = true | ||
|
||
[tool.coverage.report] | ||
exclude_also = [ | ||
"def __repr__", | ||
"if __name__ == .__main__.:", | ||
] |