Skip to content

Commit

Permalink
move to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed May 18, 2023
1 parent 07a7874 commit aaf5e1f
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 81 deletions.
76 changes: 76 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,87 @@ requires = [
"wheel",
]

[project]
name = "compliance-checker"
description = "Checks Datasets and SOS endpoints for standards compliance"
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
{name = "Dave Foster", email = "dave@axiomdatascience.com"},
]
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",
"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"
[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"]

[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.pytest.ini_options]
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",
]

[tool.ruff]
select = [
Expand Down
81 changes: 0 additions & 81 deletions setup.py

This file was deleted.

0 comments on commit aaf5e1f

Please sign in to comment.