diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4e1ef42..425b8bc 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,10 +22,14 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine + - name: Set Release Version + id: vars + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + sed -i 's/PLACE_HOLDER_VERSION/${{ env.RELEASE_VERSION }}/' setup.py python setup.py sdist bdist_wheel twine upload dist/* diff --git a/setup.py b/setup.py index c0de688..fb77a1d 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,11 @@ with open("README.md", "r") as fh: long_description = fh.read() +# Place_Holder_Version is being updated by Github Actions + setuptools.setup( name="pymarker", - version="0.2.1", + version="PLACE_HOLDER_VERSION", author="Pablo Silva", author_email="pablodiegoss@hotmail.com", description="A python package to generate AR markers and patterns based on input images", @@ -15,7 +17,7 @@ url="https://github.com/pablodiegoss/pymarker", packages=setuptools.find_packages(), classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent",