Skip to content

Commit

Permalink
Merge pull request #15 from kirei/update
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jschlyter authored Apr 30, 2024
2 parents 0caa6e8 + f2cf756 commit 9ccbcc0
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 498 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
name: Build with Poetry and Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
uses: actions/setup-python@v5
- name: Install and configure Poetry
run: |
pip install poetry
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Ruff

on: [ push, pull_request ]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
47 changes: 20 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get full python version
id: full-python-version
run: |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install and set up Poetry
run: |
pip install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install
- name: Lint
run: |
poetry run pylama base45
- name: Test
run: |
poetry run pytest -v --black --isort
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and set up Poetry
run: |
pip install poetry
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install python dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest --verbose
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## [0.5.0]

- Require Python 3.8 or later

## [0.4.4]

- [RFC 9285](https://www.rfc-editor.org/info/rfc9285) published
Expand Down
4 changes: 2 additions & 2 deletions base45/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def b45decode(s: Union[bytes, str]) -> bytes:
raise ValueError
res.append(x)
return bytes(res)
except (ValueError, KeyError, AttributeError):
raise ValueError("Invalid base45 string")
except (ValueError, KeyError, AttributeError) as exc:
raise ValueError("Invalid base45 string") from exc
Loading

0 comments on commit 9ccbcc0

Please sign in to comment.