Skip to content

Commit

Permalink
Tag v1.0.2
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
dlenski committed Feb 11, 2024
1 parent 178c50b commit ead91c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build
run: |
python setup.py bdist
python setup.py sdist
- name: Store distribution packages
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/

test:

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

environment:
name: pypi
url: https://pypi.org/p/zxing
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: Download distribution packages
uses: actions/download-artifact@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
name: dist
path: dist/
- name: Deploy to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion zxing/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"

0 comments on commit ead91c0

Please sign in to comment.