Skip to content

Commit

Permalink
Added setuptools-scm version control to solve #36
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcdermott committed Jul 16, 2024
1 parent 38eb09d commit 07140c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
requires = ["setuptools>=64", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "MEDS_polars_functions"
version = "0.0.1"
dynamic = ["version"]
authors = [
{ name="Matthew McDermott", email="mattmcdermott8@gmail.com" },
]
Expand All @@ -18,6 +18,8 @@ classifiers = [
]
dependencies = ["polars>=1.1.0", "pyarrow", "nested_ragged_tensors", "loguru", "hydra-core", "numpy"]

[tool.setuptools_scm]

[project.optional-dependencies]
examples = ["rootutils"]
dev = ["pre-commit"]
Expand Down
7 changes: 7 additions & 0 deletions src/MEDS_polars_functions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from importlib.metadata import PackageNotFoundError, version

__package_name__ = "MEDS_polars_functions"
try:
__version__ = version(__package_name__)
except PackageNotFoundError:
__version__ = "unknown"

0 comments on commit 07140c1

Please sign in to comment.