-
Notifications
You must be signed in to change notification settings - Fork 59
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
move to pyproject.toml #1024
Merged
Merged
move to pyproject.toml #1024
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2a5b851
move to pyproject.toml
ocefpaf da5c97d
add top 3 committers as maintainers
ocefpaf 5bc0978
lint
ocefpaf 3f892d5
add py312
ocefpaf a7e4cc7
drop 3.7 and add 3.12 in the tests
ocefpaf 96dd622
no need to use minor version here
ocefpaf 77ac3ae
revert to 3.11 b/c cf_units is broken on 3.12
ocefpaf d53d227
missing }
ocefpaf e44eda1
py38 compat
ocefpaf 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
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
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 |
---|---|---|
|
@@ -6,6 +6,81 @@ requires = [ | |
"wheel", | ||
] | ||
|
||
[project] | ||
name = "compliance-checker" | ||
description = "Checks Datasets and SOS endpoints for standards compliance" | ||
readme = "README.md" | ||
license = {text = "Apache-2.0"} | ||
maintainers = [ | ||
{name = "Dave Foster", email = "dave@axiomdatascience.com"}, | ||
{name = "Benjamin Adams"}, | ||
{name = "Luke Campbell"}, | ||
{name = "Filipe Fernandes"}, | ||
] | ||
requires-python = ">=3.8" | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dynamic = [ | ||
"dependencies", | ||
"version", | ||
] | ||
[project.urls] | ||
documentation = "https://ioos.github.io/compliance-checker" | ||
homepage = "https://compliance.ioos.us/index.html" | ||
repository = "https://github.com/ioos/compliance-checker" | ||
[project.scripts] | ||
compliance-checker = "cchecker:main" | ||
Comment on lines
+46
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is deprecated and in the future. We need a better solution to ship that script. |
||
[project.entry-points."compliance_checker.suites"] | ||
"acdd-1.1" = "compliance_checker.acdd:ACDD1_1Check" | ||
"acdd-1.3" = "compliance_checker.acdd:ACDD1_3Check" | ||
"cf-1.6" = "compliance_checker.cf.cf:CF1_6Check" | ||
"cf-1.7" = "compliance_checker.cf.cf:CF1_7Check" | ||
"cf-1.8" = "compliance_checker.cf.cf:CF1_8Check" | ||
"ioos-0.1" = "compliance_checker.ioos:IOOS0_1Check" | ||
"ioos-1.1" = "compliance_checker.ioos:IOOS1_1Check" | ||
"ioos-1.2" = "compliance_checker.ioos:IOOS1_2Check" | ||
"ioos_sos" = "compliance_checker.ioos:IOOSBaseSOSCheck" | ||
|
||
[tool.setuptools] | ||
packages = ["compliance_checker"] | ||
license-files = ["LICENSE"] | ||
zip-safe = false | ||
include-package-data = true | ||
script-files = ["cchecker.py"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
[tool.setuptools.package-data] | ||
compliance_checker = [ | ||
"data/*.xml", | ||
"tests/data/*.nc", | ||
"tests/data/*.cdl", | ||
"tests/data/non-comp/*.cdl", | ||
"data/templates/*.j2", | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
|
||
[tool.setuptools_scm] | ||
write_to = "compliance_checker/_version.py" | ||
write_to_template = "__version__ = '{version}'" | ||
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$" | ||
|
||
[tool.ruff] | ||
lint.select = [ | ||
"A", # flake8-builtins | ||
|
@@ -41,3 +116,8 @@ markers = [ | |
"integration: marks integration tests (deselect with '-m \"not integration\"')", | ||
"slowtest: marks slow tests (deselect with '-m \"not slowtest\"')" | ||
] | ||
filterwarnings = [ | ||
"error:::compliance-checker.*", | ||
"ignore::UserWarning", | ||
"ignore::RuntimeWarning", | ||
] |
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 was deleted.
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.
@benjwadams are you OK with this change? Most projects are moving away from "author" in liue for maintainers.