Skip to content

Commit e4fb959

Browse files
committed
Hardcode version in __init__
1 parent 6b43a7e commit e4fb959

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

dapi/__init__.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,27 +77,7 @@
7777
TAPIS_TERMINAL_STATES,
7878
)
7979

80-
81-
def _get_version():
82-
"""Get package version using importlib.metadata."""
83-
try:
84-
# For Python 3.8+
85-
from importlib.metadata import version
86-
87-
return version("dapi")
88-
except ImportError:
89-
# For Python < 3.8, use pkg_resources
90-
try:
91-
from pkg_resources import get_distribution
92-
93-
return get_distribution("dapi").version
94-
except Exception:
95-
return "unknown"
96-
except Exception:
97-
return "unknown"
98-
99-
100-
__version__ = _get_version()
80+
__version__ = "0.4.5"
10181

10282
__all__ = [
10383
"DSClient",

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dapi"
3-
version = "0.4.3"
3+
version = "0.4.5"
44
description = "DesignSafe API"
55
authors = [
66
"Krishna Kumar <[email protected]>",
@@ -24,8 +24,6 @@ pandas = [
2424
{ version = ">=1.3.0,<3.0.0", python = "~3.9" }, # For Python 3.9.x
2525
{ version = ">=1.3.0", python = ">=3.10" } # For Python 3.10 and newer (latest compatible)
2626
]
27-
# tomli is a TOML parser, needed for Python < 3.11 as tomllib is not available
28-
tomli = { version = ">=1.1.0", python = "<3.11" }
2927
sqlalchemy = "^2.0.41"
3028
pymysql = "^1.1.1"
3129
python-dotenv = "^1.1.0"

0 commit comments

Comments
 (0)