Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include LICENSE
25 changes: 25 additions & 0 deletions jwst_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
JWST-Tools: Python package to analyze JWST data.

This package provides tools for reducing and analyzing JWST data products.
"""

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("jwst-tools")
except PackageNotFoundError:
__version__ = "unknown"

# Import key dependencies to verify they are available
try:
import astropy
import matplotlib
import jwst
import astroquery
import specutils
except ImportError as e:
import warnings
warnings.warn(f"Some dependencies are not available: {e}")

__all__ = ["__version__"]
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "jwst-tools"
dynamic = ["version"]
description = "Python package to analyze JWST data"
readme = "README.md"
license = {text = "BSD-3-Clause"}
authors = [
{name = "canavarrete01"},
{name = "kelle"}
]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"astropy",
"matplotlib",
"jwst",
"astroquery",
"specutils",
]

[project.urls]
"Homepage" = "https://github.com/BDNYC/JWST-Tools"
"Bug Tracker" = "https://github.com/BDNYC/JWST-Tools/issues"

[tool.setuptools]
packages = ["jwst_tools"]

[tool.setuptools_scm]
version_scheme = "post-release"