Skip to content

Commit ae8a4e0

Browse files
Comments update, Python version as parameter
1 parent c377cc7 commit ae8a4e0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

publish-to-pypi.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ env:
5656
# ./src/MyLib/MyLib.py
5757
SOURCE_FILE: ./REPLACE/ME
5858

59-
# Regex pattern used for extracting the version data from your fil
59+
# Regex pattern used for extracting the version data from your file
6060
# (usually, this does not need to be changed)
6161
REGEX_PATTERN: __version__\s*=\s*"(.*)"
62+
63+
# Python version for building the package
64+
PYTHON_VERSION: '3.8'
6265

6366
#
6467
# Job section
@@ -67,8 +70,10 @@ jobs:
6770
#
6871
# BEGIN of Job 1
6972
#
70-
# Get version from Python file and write it to a file named
71-
# VERSION wrhich resides in the repo's root dir
73+
# Get version from Python file. Check if source file is actually a
74+
# new release. Check if Github release version is equal to the one
75+
# extracted from the Python file. Ultimately, forward version information
76+
# to next Github Actions job in line.
7277
update-version:
7378
runs-on: ubuntu-latest
7479

@@ -150,7 +155,7 @@ jobs:
150155
- name: Set up Python
151156
uses: actions/setup-python@v2
152157
with:
153-
python-version: '3.8'
158+
python-version: '${{ env.PYTHON_VERSION }}'
154159

155160
# Install all dependencies
156161
- name: Install dependencies
@@ -181,4 +186,4 @@ jobs:
181186
password: ${{ secrets.PROD_PYPI_API_TOKEN }}
182187
#
183188
# END of Job 2
184-
#
189+
#

0 commit comments

Comments
 (0)