-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from mwcraig/migrate-to-pyproject
Migrate to pyproject.toml instead of setup.cfg
- Loading branch information
Showing
5 changed files
with
182 additions
and
154 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
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,5 +1,107 @@ | ||
[build-system] | ||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel"] | ||
build-backend = 'setuptools.build_meta' | ||
requires = ["hatchling", | ||
"hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "ccdproc" | ||
dynamic = ["version"] | ||
description = "Astropy affiliated package" | ||
readme = "README.rst" | ||
license = "BSD-3-clause" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Steve Crawford", email = "[email protected]" }, | ||
{ name = "Matt Craig" }, | ||
{ name = "and Michael Seifert" }, | ||
] | ||
dependencies = [ | ||
"astropy>=5.0.1", | ||
"astroscrappy>=1.0.8", | ||
"numpy>=1.21", | ||
"reproject>=0.7", | ||
"scikit-image", | ||
"scipy", | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"matplotlib", | ||
"sphinx-astropy", | ||
] | ||
test = [ | ||
"memory_profiler", | ||
"pytest-astropy>=0.10.0", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "http://ccdproc.readthedocs.io/" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "ccdproc/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/ccdproc", | ||
] | ||
|
||
[tool.coverage] | ||
[tool.coverage.run] | ||
source = ["ccdproc"] | ||
omit = [ | ||
"*/ccdproc/__init__*", | ||
"*/ccdproc/conftest.py", | ||
"*/ccdproc/*setup*", | ||
"*/ccdproc/*/tests/*", | ||
"*/ccdproc/tests/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
# Have to re-enable the standard pragma | ||
"pragma: no cover", | ||
# Don't complain about packages we have installed | ||
"except ImportError", | ||
# Don't complain if tests don't hit assertions | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
# Don't complain about script hooks | ||
"def main\\(.*\\):", | ||
# Ignore branches that don't pertain to this version of Python | ||
"pragma: py{ignore_python_version}", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = 7.0 | ||
testpaths = [ | ||
"ccdproc", | ||
"docs", | ||
] | ||
norecursedirs = [ | ||
"docs[\\/]_build", | ||
"docs[\\/]generated", | ||
] | ||
astropy_header = true | ||
doctest_plus = "enabled" | ||
text_file_format = "rst" | ||
remote_data_strict = true | ||
addopts = [ | ||
"--doctest-rst", | ||
"--color=yes", | ||
] | ||
log_cli_level = "info" | ||
xfail_strict = true | ||
filterwarnings= [ | ||
"error", | ||
"ignore:numpy\\.ufunc size changed:RuntimeWarning", | ||
"ignore:numpy.ndarray size changed:RuntimeWarning", | ||
"ignore:`np.bool` is a deprecated alias for the builtin `bool`:DeprecationWarning", | ||
] | ||
markers = [ | ||
"data_size(N): set dimension of square data array for ccd_data fixture", | ||
"data_scale(s): set the scale of the normal distribution used to generate data", | ||
"data_mean(m): set the center of the normal distribution used to generate data", | ||
] |
Oops, something went wrong.