Skip to content

Commit dc80c9d

Browse files
author
Martin Belanger
committed
ci: use total commit count for unique TestPyPI dev version
Also updated Python README.md to show how to install from TestPyPI Signed-off-by: Martin Belanger <[email protected]>
1 parent e09fce3 commit dc80c9d

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/libnvme-release-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
id: version
6767
run: |
6868
TAG=$(git describe --tags --abbrev=0)
69-
REV=$(git rev-list "$TAG"..HEAD --count)
69+
REV=$(git rev-list HEAD --count)
7070
BASE_VERSION="${TAG#v}"
7171
VERSION="${BASE_VERSION}.dev${REV}"
7272
echo "dev_version=$VERSION" >> $GITHUB_OUTPUT

libnvme/libnvme/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,13 @@ host = None
6464
ctx = None
6565
```
6666

67+
## Testing PyPI package
68+
69+
Use the following command to test installing the package from TestPyPI before publishing to the official PyPI registry.
70+
71+
```bash
72+
pip install \
73+
--index-url https://test.pypi.org/simple/ \
74+
--extra-index-url https://pypi.org/simple/ \
75+
libnvme==[libnvme-version]
76+
```

0 commit comments

Comments
 (0)