diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..04f196a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include LICENSE diff --git a/jwst_tools/__init__.py b/jwst_tools/__init__.py new file mode 100644 index 0000000..dbc539c --- /dev/null +++ b/jwst_tools/__init__.py @@ -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__"] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dbc42b8 --- /dev/null +++ b/pyproject.toml @@ -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"