Skip to content

Commit 762d42c

Browse files
authored
Merge pull request #20 from opengisch/fix_version
Fix version number in setup.py
2 parents e64aca3 + 070cc7a commit 762d42c

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/deploy_to_pypi.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ jobs:
1818
- name: Get version number
1919
id: v
2020
run: >-
21-
echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v}"
22-
23-
- name: Set version number
24-
if: startsWith(github.ref, 'refs/tags/v')
25-
run: >-
26-
sed -i "s/= dev/= ${{ steps.v.outputs.VERSION }}/" setup.cfg
21+
echo "${GITHUB_REF/refs\/tags\/v}" > VERSION
2722
2823
- name: Install pypa/build
2924
run: >-

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dev

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
with open("README.md", "r", encoding="utf-8") as fh:
44
long_description = fh.read()
55

6+
with open("VERSION", "r", encoding="utf-8") as fh:
7+
version = fh.read().strip()
8+
69
setuptools.setup(
710
name="qfieldcloud-sdk",
8-
version="dev",
11+
version=version,
912
author="Ivan Ivanov",
1013
author_email="ivan@opengis.ch",
1114
description="The official QFieldCloud SDK and CLI.",

0 commit comments

Comments
 (0)