Skip to content

Commit

Permalink
MNT: migrate project static metadata from setup.cfg to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Aug 28, 2024
1 parent 4d7c471 commit 65619a0
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 59 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 100
2 changes: 2 additions & 0 deletions .pycodestyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pycodestyle]
max-line-length = 100
55 changes: 54 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,62 @@
[build-system]
requires = [
"setuptools",
"setuptools>=61.2",
"setuptools_scm>=6.2",
"wheel",
"jinja2>=2.10.3",
"numpy>=2.0.0rc1",
]
build-backend = 'setuptools.build_meta'

[project]
name = "pyerfa"
authors = [{name = "The PyERFA Developers"}]
license = {text = "BSD 3-Clause License"}
description = "Python bindings for ERFA"
readme = "README.rst"
keywords = ["astronomy", "astrophysics", "cosmology", "space", "science", "coordinate"]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
urls = {Homepage = "https://github.com/liberfa/pyerfa"}
requires-python = ">=3.9"
dependencies = ["numpy>=1.19.3"]
dynamic = ["version"]

[project.optional-dependencies]
test = [
"pytest",
"pytest-doctestplus>=0.7",
]
docs = ["sphinx-astropy>=1.3"]

[tool.setuptools]
# We set packages to find: to automatically find all sub-packages
zip-safe = false
license-files = ["LICENSE.rst"]
include-package-data = false

[tool.setuptools.packages.find]
exclude = ["erfa._dev"]
namespaces = false

[tool.pytest.ini_options]
minversion = "4.6"
testpaths = ["erfa", "docs", "README.rst"]
doctest_plus = "enabled"
doctest_optionflags = """
NORMALIZE_WHITESPACE
ELLIPSIS
FLOAT_CMP
IGNORE_EXCEPTION_DETAIL"""
text_file_format = "rst"
addopts = "--doctest-rst"
xfail_strict = true
norecursedirs = ["erfa/_dev"]
58 changes: 0 additions & 58 deletions setup.cfg

This file was deleted.

0 comments on commit 65619a0

Please sign in to comment.