Skip to content

Commit

Permalink
move build configuration into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jan 20, 2023
1 parent 1f81229 commit 37de4d5
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 84 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include RELIC-INFO
exclude stistools/version.py
recursive-include stistools/pars *.cfg*

63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[project]
name = "stistools"
description = "Tools for STIS (Space Telescope Imaging Spectrograph)"
authors = [
{ name = "Paul Barrett" },
{ name = "Phil Hodge" },
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"astropy>=4.1",
"numpy",
"scipy",
"stsci.tools",
"pysiaf",
"astroquery",
]
dynamic = [
"version",
]

[project.scripts]
add_stis_s_region = "stistools.add_stis_s_region:call_main"

[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = false

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

[tool.setuptools.package-data]
stistools = [
"pars/*",
"LICENSE.txt",
]

[tool.distutils.bdist_wheel]
universal = 1

[tool.pytest.ini_options]
minversion = "3"
norecursedirs = [
".eggs",
"build",
"docs/_build",
"relic",
]
junit_family = "xunit2"

[tool.setuptools_scm]
11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

72 changes: 0 additions & 72 deletions setup.py

This file was deleted.

0 comments on commit 37de4d5

Please sign in to comment.