Skip to content
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

consolidate build metadata into pyproject.toml (PEP621) #206

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
include README.rst
include LICENSE.txt
include CHANGES.rst
include setup.cfg
include pyproject.toml
recursive-include doc *

Expand Down
149 changes: 147 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,149 @@
[project]
name = "acstools"
description = "Python Tools for HST ACS"
requires-python = ">=3.8"
authors = [
{ name = "Matt Davis", email = "[email protected]" },
{ name = "Warren Hack" },
{ name = "Norman Grogin" },
{ name = "Pey Lian Lim" },
{ name = "Sara Ogaz" },
{ name = "Leonardo Ubeda" },
{ name = "Mihai Cara" },
{ name = "David Borncamp" },
{ name = "Nathan Miles" },
{ name = "Tyler Desjardins" },
{ name = "Jenna Ryon" },
{ name = "David Stark" },
{ name = "Gagandeep Anand" },
{ name = "Yotam Cohen" },
]
keywords = [
"astronomy",
"astrophysics",
"calibration",
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy",
"astropy>=3.1",
"requests",
"PyYAML",
]
dynamic = [
"version",
]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.license]
file = "LICENSE.md"
content-type = "text/plain"

[project.urls]
Homepage = "https://github.com/spacetelescope/acstools"
"Bug Reports" = "https://github.com/spacetelescope/acstools/issues/"
Source = "https://github.com/spacetelescope/acstools/"
Help = "https://hsthelp.stsci.edu"

[project.scripts]
acs_destripe = "acstools.acs_destripe:main"
acs_destripe_plus = "acstools.acs_destripe_plus:main"

[project.optional-dependencies]
all = [
"matplotlib",
"scipy",
"scikit-image",
"stsci.tools",
"stsci.imagestats",
"photutils",
"dask",
]
test = [
"pytest",
"pytest-astropy-header",
"pytest-remotedata",
"ci-watson",
]
docs = [
"sphinx",
"sphinx-automodapi",
"sphinx-rtd-theme",
]

[build-system]
requires = ["setuptools>=30.3.0",
"setuptools_scm"]
requires = [
"setuptools>=30.3.0",
"setuptools_scm",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
zip-safe = false
include-package-data = false
license-files = [
"LICENSE.md",
]

[tool.setuptools.packages.find]
namespaces = false

[tool.setuptools.package-data]
acstools = [
"data/*",
]
"acstools.tests" = [
"data/input/*.fits",
"data/truth/*.fits",
]

[tool.setuptools_scm]
version_file = "acstools/version.py"

[tool.pytest.ini_options]
minversion = "5"
testpaths = [
"\"acstools\"",
"\"doc\"",
]
norecursedirs = [
"build",
"doc/build",
]
astropy_header = true
xfail_strict = true
filterwarnings = [
"error",
"ignore:numpy\\.ndarray size changed:RuntimeWarning",
"ignore:unclosed file:ResourceWarning",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:Deprecation Warning.*timeout.*parameter no longer needed:UserWarning",
"ignore:Deprecated call to.*pkg_resources\\.declare_namespace.*:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:.*utcfromtimestamp:DeprecationWarning",
"ignore:.*numpy\\.core.*:DeprecationWarning",
"ignore:skimage not installed",
]

[tool.ruff.lint]
ignore = [
"E221",
"E226",
"E262",
"E265",
"E501",
"E704",
"W504",
]
102 changes: 0 additions & 102 deletions setup.cfg

This file was deleted.

39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ pip_pre =
[testenv:codestyle]
skip_install = true
changedir = {toxinidir}
description = check code style with flake8
deps = flake8
commands = flake8 acstools --count
description = check code style with ruff
deps = ruff
commands = ruff check .

[testenv:twine]
skip_install = true
Expand Down
Loading