Skip to content

Commit

Permalink
Merge pull request #145 from zacharyburnett/pep621
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Feb 25, 2023
2 parents 1134f92 + 19df53d commit 5c2d10e
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 112 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
RELIC-INFO
relic/
*/version.py
build/
dist/
Expand Down
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*

18 changes: 0 additions & 18 deletions doc/environment.yml

This file was deleted.

82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[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>=5.1",
"numpy",
"scipy",
"stsci.tools",
"pysiaf",
"astroquery",
]
dynamic = [
"version",
]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.license]
file = "LICENSE.txt"
content-type = "text/plain"

[project.optional-dependencies]
test = [
"pytest",
]
docs = [
"ipython",
"sphinx",
"stsci_rtd_theme",
"sphinx_automodapi",
'tomli; python_version <"3.11"',
]

[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",
]
junit_family = "xunit2"

[tool.setuptools_scm]
12 changes: 12 additions & 0 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

sphinx:
configuration: doc/source/conf.py

python:
version: "3.8"
install:
- method: pip
path: .
extra_requirements:
- docs
6 changes: 0 additions & 6 deletions readthedocs.yml

This file was deleted.

11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

74 changes: 0 additions & 74 deletions setup.py

This file was deleted.

0 comments on commit 5c2d10e

Please sign in to comment.