Skip to content

Commit dd74f08

Browse files
committed
Update version to placeholder and do versioning via Github Actions
1 parent 270c017 commit dd74f08

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
pip install setuptools wheel twine
25+
- name: Set Release Version
26+
id: vars
27+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2528
- name: Build and publish
2629
env:
2730
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2831
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2932
run: |
33+
sed -i 's/PLACE_HOLDER_VERSION/${{ env.RELEASE_VERSION }}/' setup.py
3034
python setup.py sdist bdist_wheel
3135
twine upload dist/*

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
with open("README.md", "r") as fh:
44
long_description = fh.read()
55

6+
# Place_Holder_Version is being updated by Github Actions
7+
68
setuptools.setup(
79
name="pymarker",
8-
version="0.2.1",
10+
version="PLACE_HOLDER_VERSION",
911
author="Pablo Silva",
1012
author_email="[email protected]",
1113
description="A python package to generate AR markers and patterns based on input images",
@@ -15,7 +17,7 @@
1517
url="https://github.com/pablodiegoss/pymarker",
1618
packages=setuptools.find_packages(),
1719
classifiers=[
18-
"Development Status :: 3 - Alpha",
20+
"Development Status :: 4 - Beta",
1921
"Programming Language :: Python :: 3",
2022
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2123
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)