-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update hydrotools.metrics
to newer Python versions
#261
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a73844b
Switch docstrings to raw strings to silence deprecation warning.
jarq6c 04c5042
update PyPI classifier versions
jarq6c 3187852
up minimum version
jarq6c cac3086
test versions to 3.9, 3.10, 3.11
jarq6c e97618e
bump metrics to 1.3.4
jarq6c f22c3d1
transition to pyproject.toml
jarq6c c20a258
revert to old license for now
jarq6c 945d62d
bump version to 1.3.5 due for compatability
jarq6c c9b0932
set minimum setuptools to 70
jarq6c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
Licensed under the Apache License, Version 2.0 (the “License”); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an “AS IS” BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
express or implied. | ||
|
||
See the License for the specific language governing permission and | ||
limitations under the License. | ||
|
||
- - - - - - - - - - - - - - | ||
|
||
“Software code created by U.S. Government employees is not subject to copyright in the | ||
United States (17 U.S.C. §105). The United States/Department of Commerce reserves all | ||
rights to seek and obtain copyright protection in countries other than the United States | ||
for Software authored in its entirety by the Department of Commerce. To this end, the | ||
Department of Commerce hereby grants to Recipient a royalty-free, nonexclusive license | ||
to use, copy, and create derivative works of the Software outside of the United States.” | ||
“Software code created by U.S. Government employees is not subject to copyright | ||
in the United States (17 U.S.C. §105). The United States/Department of Commerce | ||
reserve all rights to seek and obtain copyright protection in countries other | ||
than the United States for Software authored in its entirety by the Department | ||
of Commerce. To this end, the Department of Commerce hereby grants to Recipient | ||
a royalty-free, nonexclusive license to use, copy, and create derivative works | ||
of the Software outside of the United States.” |
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,7 +1,41 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"pip" | ||
] | ||
requires = ["setuptools>=70"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "hydrotools.metrics" | ||
authors = [ | ||
{name = "Jason A. Regina", email = "[email protected]"}, | ||
] | ||
description = "Variety of standard model evaluation metrics." | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"License :: Free To Use But Restricted", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering :: Hydrology", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"numpy>=1.20.0", | ||
"pandas", | ||
] | ||
dynamic = ["version"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "hydrotools.metrics._version.__version__"} | ||
|
||
[project.optional-dependencies] | ||
develop = ["pytest"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/NOAA-OWP/hydrotools" | ||
Documentation = "https://noaa-owp.github.io/hydrotools/hydrotools.metrics.html" | ||
Repository = "https://github.com/NOAA-OWP/hydrotools/tree/main/python/metrics" | ||
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.3.3" | ||
__version__ = "1.3.5" |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the first time i've seen a docstring defined as a raw string literal. I assume this avoids character escaping headaches in the latex expressions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the expressions were raising DeprecationWarnings and this was the easiest solution.