-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e473997
commit 0db7347
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
Contains version information about package | ||
""" | ||
import os | ||
|
||
__version__ = os.environ.get( | ||
"PACKAGE_VERSION", | ||
os.environ.get("CI_COMMIT_TAG", | ||
os.environ.get("GITHUB_REF_NAME", | ||
os.environ.get("VERSION", "0.1-dev") | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[tool.poetry] | ||
name = "kvault" | ||
version = "0.1.0" | ||
# This version field is not being used. The version field is dynamicall updated as below | ||
version = "0.0.0" | ||
description = "Simple Miniature key-value datastore" | ||
authors = ["BrianLusina <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -27,6 +28,13 @@ python-dotenv = "^1.0.0" | |
[tool.poetry.group.dev.dependencies] | ||
pytest-cov = "^4.1.0" | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "kvault.__version__" } | ||
|
||
# Reference: https://github.com/tiangolo/poetry-version-plugin | ||
[tool.poetry-version-plugin] | ||
source = "git-tag" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |