Skip to content

Commit 911faf4

Browse files
committed
refactor: Change package version to dynamic and fetch from __init__.py
1 parent 7f9df1a commit 911faf4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/artifacts-helper/codespaces_artifacts_helper_keyring/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "codespaces-artifacts-helper-keyring"
3-
version = "0.1.0"
3+
dynamic = ["version"]
44
description = "Keyring backend to retrieve credentials for Azure Artifacts on Codespaces using https://github.com/microsoft/ado-codespaces-auth"
55
authors = [{ name = "Delilah Wu", email = "delilahwu@microsoft.com" }]
66
classifiers = [
@@ -32,6 +32,9 @@ where = ["src"]
3232
[tool.setuptools.package-data]
3333
"codespaces_artifacts_helper_keyring" = ["py.typed"]
3434

35+
[tool.setuptools.dynamic]
36+
version = {attr = "codespaces_artifacts_helper_keyring.__version__"}
37+
3538
[tool.pdm]
3639
distribution = true
3740

src/artifacts-helper/codespaces_artifacts_helper_keyring/src/codespaces_artifacts_helper_keyring/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
from .artifacts_helper_credential_provider import ArtifactsHelperCredentialProvider
44
from .keyring_backend import CodespacesArtifactsHelperKeyringBackend
5+
6+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)