Skip to content

Commit

Permalink
Migrate to using pyproject.toml for all build metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 21, 2024
1 parent 65a96b8 commit fd57d37
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 50 deletions.
55 changes: 54 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,60 @@
[build-system]
requires = ["lsst-versions"]
requires = ["setuptools", "lsst-versions"]
build-backend = "setuptools.build_meta"

[project]
name = "astro-metadata-translator"
requires-python = ">=3.9.0"
description = "A translator for astronomical metadata."
license = {text = "BSD 3-Clause License"}
authors = [
{name="Rubin Observatory Data Management", email="[email protected]"},
]
readme = "README.md"
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
]
keywords = ["lsst"]
dynamic = ["version"]
dependencies = [
"astropy >=3.0.5",
"pyyaml >=3.13",
"click >= 8"
]

[project.optional-dependencies]
test = [
"pytest"
]

[project.urls]
"Homepage" = "https://github.com/lsst/astro_metadata_translator"

[project.scripts]
astrometadata = "astro_metadata_translator.cli.astrometadata:main"
"translate_header.py" = "astro_metadata_translator.bin.translateheader:main"

[tool.setuptools]
zip-safe = true
license-files = ["LICENSE"]

[tool.setuptools.packages.find]
where = ["python"]

[tool.setuptools.package-data]
astro_metadata_translator = ["corrections/*/*.yaml", "corrections/*/*.md", "py.typed"]

[tool.setuptools.dynamic]
version = { attr = "lsst_versions.get_lsst_version" }

[tool.black]
line-length = 110
target-version = ["py38"]
Expand Down
49 changes: 0 additions & 49 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
[metadata]
name = astro-metadata-translator
description = A translator for astronomical metadata.
author = Rubin Observatory Data Management
author_email = [email protected]
license = BSD 3-Clause License
url = https://github.com/lsst/astro_metadata_translator
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Scientific/Engineering :: Astronomy
long_description = file: README.md
long_description_content_type = text/markdown

keywords =
lsst

[options]
zip_safe = True
package_dir=
=python
packages=find:
setup_requires =
setuptools >=46.0
install_requires =
astropy >=3.0.5
pyyaml >=3.13
click >= 8
tests_require =
pytest >= 3.2
flake8 >= 3.7.5

[options.packages.find]
where=python

[options.package_data]
astro_metadata_translator = corrections/*/*.yaml, corrections/*/*.md py.typed

[options.entry_points]
console_scripts =
translate_header.py = astro_metadata_translator.bin.translateheader:main
astrometadata = astro_metadata_translator.cli.astrometadata:main

[flake8]
max-line-length = 110
max-doc-length = 79
Expand Down

0 comments on commit fd57d37

Please sign in to comment.