Skip to content

Commit f850750

Browse files
committed
Tag v1.0.2
Two bugs fixed since v1.0.1: 1. 178c50b (closing #31) which fixes the Java classpath separator on Windows (`:` → `;`) 2. 50c7efe (quite likely the fix for #30) which fixes a borked format conversion specifier. Switching to "Trusted Publishers" for deployment to PyPI (see https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers).
1 parent 178c50b commit f850750

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.github/workflows/test_and_release.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ jobs:
3535
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3636
- name: Build
3737
run: |
38+
python setup.py sdist
3839
python setup.py bdist
40+
- name: Store distribution packages
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: dist
44+
path: dist/
3945

4046
test:
4147

@@ -74,20 +80,17 @@ jobs:
7480
needs: test
7581
if: startsWith(github.ref, 'refs/tags/v')
7682

83+
environment:
84+
name: pypi
85+
url: https://pypi.org/p/zxing
86+
permissions:
87+
# IMPORTANT: this permission is mandatory for trusted publishing
88+
id-token: write
7789
steps:
78-
- uses: actions/checkout@v3
79-
- name: Set up Python
80-
uses: actions/setup-python@v3
90+
- name: Download distribution packages
91+
uses: actions/download-artifact@v3
8192
with:
82-
python-version: '3.x'
83-
- name: Install dependencies
84-
run: |
85-
python -m pip install --upgrade pip
86-
pip install setuptools wheel twine
93+
name: dist
94+
path: dist/
8795
- name: Deploy to PyPI
88-
env:
89-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
90-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
91-
run: |
92-
python setup.py sdist bdist_wheel
93-
twine upload dist/*
96+
uses: pypa/gh-action-pypi-publish@release/v1

zxing/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)