✨ chore: update version retrieval method and configure version file
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
This commit is contained in:
1 parent
ffb70cebcb
commit
d4f300d53d
3 files changed
+5
-1
No files matched your search
@@ -26,6 +26,7 @@ collections/
|
||||
*.egg-info
|
||||
CHANGELOG.rst
|
||||
target
|
||||
atmosphere/_version.py
|
||||
|
||||
## Editors
|
||||
.idea
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
set -xe
|
||||
|
||||
ATMOSPHERE_VERSION=$(pbr info -s atmosphere)
|
||||
ATMOSPHERE_VERSION=$(python3 -c "from atmosphere._version import __version__; print(__version__)")
|
||||
|
||||
# Create work directory
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
@@ -48,3 +48,6 @@ issues = "https://github.com/vexxhost/atmosphere/issues"
|
||||
|
||||
[tool.hatch.version]
|
||||
source = "vcs"
|
||||
|
||||
[tool.hatch.build.hooks.vcs]
|
||||
version-file = "atmosphere/_version.py"
|
||||
Reference in new issue
Block a user