Skip to content

Commit ead91c0

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 ead91c0

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.github/workflows/test_and_release.yml

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

4045
test:
4146

@@ -74,20 +79,17 @@ jobs:
7479
needs: test
7580
if: startsWith(github.ref, 'refs/tags/v')
7681

82+
environment:
83+
name: pypi
84+
url: https://pypi.org/p/zxing
85+
permissions:
86+
# IMPORTANT: this permission is mandatory for trusted publishing
87+
id-token: write
7788
steps:
78-
- uses: actions/checkout@v3
79-
- name: Set up Python
80-
uses: actions/setup-python@v3
89+
- name: Download distribution packages
90+
uses: actions/download-artifact@v3
8191
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
92+
name: dist
93+
path: dist/
8794
- 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/*
95+
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)