Skip to content

Commit

Permalink
move build configuration into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 9, 2024
1 parent a9f65a5 commit 125c836
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 76 deletions.
108 changes: 99 additions & 9 deletions pyproject.toml
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",
]
62 changes: 0 additions & 62 deletions setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

0 comments on commit 125c836

Please sign in to comment.