Skip to content

Commit

Permalink
Switch from setup.cfg to pyproject and use hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Aug 11, 2024
1 parent 00b83fe commit e58e6cb
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 121 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ __pycache__

# Other generated files
*/version.py
*/_version.py
*/cython_version.py
htmlcov
.coverage
Expand Down
52 changes: 48 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
[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",
]
117 changes: 0 additions & 117 deletions setup.cfg

This file was deleted.

0 comments on commit e58e6cb

Please sign in to comment.