Skip to content

Commit

Permalink
Update version to placeholder and do versioning via Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Oct 28, 2020
1 parent 270c017 commit dd74f08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit dd74f08

Please sign in to comment.