Skip to content

Commit

Permalink
Merge pull request #46 from LSSTDESC/u/jrbogart/dependencies_versioning
Browse files Browse the repository at this point in the history
U/jrbogart/dependencies versioning
  • Loading branch information
JoanneBogart authored Jun 6, 2023
2 parents 02fe4a3 + 3668940 commit 4ad5371
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ requires = ["setuptools >= 61.0"] # PEP 621 compliant
build-backend = "setuptools.build_meta"

[project]
dynamic = ["version"]
name = "skyCatalogs"
version = "1.4.0-rc1"
description = "Writes, reads catalogs input to LSST DESC simulations"
readme = "README.md"
authors = [{ name = "Joanne Bogart", email = "[email protected]" }]
license = { file = "LICENCE" }
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
]
Expand All @@ -19,9 +19,12 @@ dependencies = [
'astropy',
'pyarrow',
'pandas',
'importlib-metadata;python_version<"3.8"'
'sncosmo'
]
requires-python = ">=3.7" # For setuptools >= 61.0 support

[tool.setuptools.dynamic]
version = {attr = "desc.skycatalogs._version.__version__"}

[tool.setuptools.packages.find]
where = ["python"]
13 changes: 1 addition & 12 deletions python/desc/skycatalogs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
##from ._version import *
try:
# For Python >= 3.8
from importlib import metadata
except ImportError:
# For Python < 3.8
import importlib_metadata as metadata

try:
__version__ = metadata.version("skyCatalogs")
except metadata.PackageNotFoundError:
pass
from ._version import __version__

from .skyCatalogs import *
from .catalog_creator import *
1 change: 1 addition & 0 deletions python/desc/skycatalogs/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.4.0-rc4"

0 comments on commit 4ad5371

Please sign in to comment.