-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move build configuration into pyproject.toml
- Loading branch information
1 parent
a9f65a5
commit 125c836
Showing
3 changed files
with
99 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,103 @@ | ||
[project] | ||
name = "ci_watson" | ||
description = "CI helper for STScI Jenkins" | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{ name = "STScI", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Framework :: Pytest", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Software Development :: Testing", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dependencies = [ | ||
"pytest>=6", | ||
"requests", | ||
"crds", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.license] | ||
file = "LICENSE.md" | ||
content-type = "text/plain" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/spacetelescope/ci_watson" | ||
|
||
[project.entry-points.pytest11] | ||
pytest_ciwatson = "ci_watson.plugin" | ||
|
||
[project.optional-dependencies] | ||
all = [ | ||
"astropy", | ||
] | ||
test = [ | ||
"pytest-astropy-header", | ||
] | ||
docs = [ | ||
"numpydoc", | ||
"sphinx_rtd_theme>1.2.0", | ||
"sphinx-automodapi", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel"] | ||
build-backend = 'setuptools.build_meta' | ||
requires = [ | ||
"setuptools", | ||
"setuptools_scm", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
zip-safe = false | ||
include-package-data = true | ||
license-files = [ | ||
"LICENSE.md", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"tests", | ||
] | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
version_file = "ci_watson/version.py" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6" | ||
testpaths = [ | ||
"tests", | ||
] | ||
norecursedirs = [ | ||
".eggs", | ||
"build", | ||
] | ||
astropy_header = true | ||
xfail_strict = true | ||
inputs_root = "ci-watson" | ||
junit_family = "xunit2" | ||
filterwarnings = [ | ||
"error", | ||
"ignore:numpy.ndarray size changed:RuntimeWarning", | ||
] | ||
addopts = "-p no:legacypath" | ||
|
||
[tool.ruff] | ||
select = [ | ||
"E9", # syntax / io error | ||
"F63", # assertion traps | ||
"F7", # keyword outside special block | ||
"F82", # undefined variables | ||
] | ||
"E9", | ||
"F63", | ||
"F7", | ||
"F82", | ||
] |