Skip to content

Commit

Permalink
Adding a version number (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin13601 authored Jul 17, 2024
1 parent 669482e commit 8dd9c8b
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,6 +1,6 @@
[project]
name = "es-aces"
version = "0.2.5"
dynamic = ["version"]
authors = [
{ name="Justin Xu", email="justin13601@hotmail.com" },
{ name="Matthew McDermott", email="mattmcdermott8@gmail.com" },
Expand Down Expand Up @@ -29,9 +29,11 @@ aces-cli = "aces.__main__:main"
expand_shards = "aces.expand_shards:main"

[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
requires = ["setuptools>=64", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[project.optional-dependencies]
dev = [
"pre-commit", "pytest", "pytest-cov", "pytest-subtests", "rootutils"
Expand Down
7 changes: 7 additions & 0 deletions src/aces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
It contains the main functions and classes needed to extract cohorts.
"""
from importlib.metadata import PackageNotFoundError, version

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

0 comments on commit 8dd9c8b

Please sign in to comment.