From c1779fc484bc80f55d4fc8732da95cd3d00a7c9f Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Fri, 29 Dec 2023 10:21:18 +0100 Subject: [PATCH] Migrate from setup.py/setup.cfg to pyproject.toml --- pyproject.toml | 33 ++++++++++++++++++++++++ setup.cfg | 70 -------------------------------------------------- 2 files changed, 33 insertions(+), 70 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..7cf15dc8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,33 @@ +[project] +name = "pyraf" +dynamic = [ "version" ] +license = {text = "BSD 3-Clause"} +authors = [ + {name = "Rick White"}, + {name = "Perry Greenfield"}, + {name = "Chris Sontag"}, + {name = "Ole Streicher"} +] +keywords = ["astronomy", "astrophysics", "utility", "iraf"] +requires-python = ">=3.6" +classifiers = [ + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering :: Astronomy" +] +description = "Pythonic interface to IRAF that can be used in place of the existing IRAF CL" +readme = {file = "README.rst", content-type = "text/x-rst"} +dependencies = ["configobj", "numpy"] + +[project.optional-dependencies] +docs = ["astropy-sphinx-theme", "numpydoc", "sphinx"] +test = ["astropy", "pytest", "distutils"] + +[project.scripts] +pyraf = "pyraf:main" + +[build-system] +requires = ["setuptools", "setuptools_scm"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0fc66e46..00000000 --- a/setup.cfg +++ /dev/null @@ -1,70 +0,0 @@ -[metadata] -name = pyraf -author = Rick White, Perry Greenfield, Chris Sontag, Ole Streicher -url = https://iraf-community.github.io/pyraf.html -description = Pythonic interface to IRAF that can be used in place of the existing IRAF CL -long_description = file:README.rst -long_description_content_type = text/x-rst -keywords = astronomy, astrophysics, utility -edit_on_github = True -github_project = iraf-community/iraf -platform = any -license = BSD 3-Clause -license_file = LICENSE.txt -classifiers = - Intended Audience :: Science/Research - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Topic :: Scientific/Engineering :: Astronomy - -[options] -setup_requires = setuptools_scm -install_requires = - numpy - configobj -packages = - pyraf - pyraf/tests - pyraf/tools - pyraf/tools/tests -zip_safe = False -python_requires = >=3.6 - -[options.extras_require] -docs = - sphinx - numpydoc - astropy-sphinx-theme -test = - pytest - astropy - -[options.entry_points] -console_scripts = - pyraf = pyraf:main - -[options.package_data] -pyraf = blankcursor.xbm, epar.optionDB, pyraflogo_rgb_web.gif, ipythonrc-pyraf -pyraf/tests = data/* -pyraf/tools/tests = * - -[tool:pytest] -minversion = 3.0 -addopts = -s - -[flake8] -ignore = - -[yapf] -based_on_style = google -column_limit = 79 - -[coverage:run] -source = pyraf -omit = - pyraf/tests/*