File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112112 - name : Check versions (Python package and RPM specification)
113113 shell : bash
114114 run : |
115- PACKAGE_VERSION=$(poetry version --short)
115+ PACKAGE_VERSION=$(poetry version --short | sed s'/-rc\./~rc/' )
116116 RPM_VERSION=$(rpmspec -q --qf "%{version}" ci-scripts/linux/rpm/python3-nitrokey.spec)
117117 if [ $PACKAGE_VERSION == $RPM_VERSION ]; then exit 0; else exit 1; fi
118118 build-docs :
Original file line number Diff line number Diff line change 11FORMAT_DIRS := src stubs tests
22LINT_DIRS := src tests
3- PACKAGE_VERSION: = $(shell poetry version --short)
3+ PACKAGE_VERSION := $(shell poetry version --short)
44
55.PHONY : install
66install :
@@ -63,5 +63,6 @@ build-docs:
6363 poetry run sphinx-build --fail-on-warning docs _build
6464
6565.PHONY : update-version
66+ update-version : RPM_VERSION=$(shell echo ${PACKAGE_VERSION} | sed 's/-rc\./~rc/')
6667update-version :
67- sed -i " /^Version:/s/[[:digit:]].*/$( PACKAGE_VERSION ) /" ci-scripts/linux/rpm/python3-nitrokey.spec
68+ sed -i " /^Version:/s/[[:digit:]].*/$( RPM_VERSION ) /" ci-scripts/linux/rpm/python3-nitrokey.spec
Original file line number Diff line number Diff line change 11Name: python3-nitrokey
2- Version: 0.2.4-rc.1
2+ Version: 0.2.4~rc1
33Release: %autorelease
44Summary: Python SDK for Nitrokey devices
55
You can’t perform that action at this time.
0 commit comments