This repository was archived by the owner on Aug 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +22
-7
lines changed
Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 11# ` goedwig ` changelog
22
3+ ## 0.1.4
4+
5+ 2021-10-10
6+
7+ * reworked versioning to store Git tags in a Py module
8+
9+
310## 0.1.3
411
5122021-10-10
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ and to configure that locally:
3030```
3131pre-commit install
3232git config --local core.hooksPath .git/hooks/
33- git tag | sort -r | head -1 > TAG
33+ ```
34+
35+ Then initialize the tag-base versioning:
36+ ```
37+ TAG = $(git tag | sort -r | head -1)
38+ echo "'git tag'" > goedwig/tag.py
39+ echo "TAG = '$TAG'" >> goedwig/tag.py
3440```
3541
3642
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3- git tag | sort -r | head -1 > TAG
3+ TAG = $( git tag | sort -r | head -1)
4+ echo " 'git tag'" > goedwig/tag.py
5+ echo " TAG = '$TAG '" >> goedwig/tag.py
46
57rm -rf dist
68python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change 1+ 'git tag'
2+ TAG = 'v0.1.3'
Original file line number Diff line number Diff line change 55Git tag sets a version string.
66"""
77
8- from os .path import dirname
9- import pathlib
108import typing
119
12- repo_path = pathlib . Path ( dirname ( __file__ ))
13- tag_file = repo_path . parents [ 0 ] / "TAG"
14- __version__ = tag_file . read_text (). strip ()
10+ from . tag import TAG
11+
12+ __version__ = TAG
1513
1614MIN_PY_VERSION : typing .Tuple = (3 , 8 ,)
You can’t perform that action at this time.
0 commit comments