Skip to content

Commit 9ccbcc0

Browse files
authored
Merge pull request #15 from kirei/update
Update dependencies
2 parents 0caa6e8 + f2cf756 commit 9ccbcc0

8 files changed

Lines changed: 156 additions & 498 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
name: Build with Poetry and Publish to PyPI
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
12+
- uses: actions/checkout@v4
13+
uses: actions/setup-python@v5
1414
- name: Install and configure Poetry
1515
run: |
1616
pip install poetry

.github/workflows/ruff.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Ruff
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
ruff:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: chartboost/ruff-action@v1

.github/workflows/test.yml

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
10+
python-version:
11+
- "3.8"
12+
- "3.9"
13+
- "3.10"
14+
- "3.11"
15+
- "3.12"
1116
steps:
12-
- uses: actions/checkout@v2
13-
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v2
15-
with:
16-
python-version: ${{ matrix.python-version }}
17-
- name: Get full python version
18-
id: full-python-version
19-
run: |
20-
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
21-
- name: Set up cache
22-
uses: actions/cache@v2
23-
with:
24-
path: .venv
25-
key: ${{ runner.os }}-venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
26-
- name: Install and set up Poetry
27-
run: |
28-
pip install poetry
29-
poetry config virtualenvs.in-project true
30-
- name: Install dependencies
31-
run: poetry install
32-
- name: Lint
33-
run: |
34-
poetry run pylama base45
35-
- name: Test
36-
run: |
37-
poetry run pytest -v --black --isort
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install and set up Poetry
23+
run: |
24+
pip install poetry
25+
poetry config virtualenvs.create true --local
26+
poetry config virtualenvs.in-project true --local
27+
- name: Install python dependencies
28+
run: poetry install
29+
- name: Test with pytest
30+
run: poetry run pytest --verbose

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
## [0.5.0]
4+
5+
- Require Python 3.8 or later
6+
37
## [0.4.4]
48

59
- [RFC 9285](https://www.rfc-editor.org/info/rfc9285) published

base45/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ def b45decode(s: Union[bytes, str]) -> bytes:
5050
raise ValueError
5151
res.append(x)
5252
return bytes(res)
53-
except (ValueError, KeyError, AttributeError):
54-
raise ValueError("Invalid base45 string")
53+
except (ValueError, KeyError, AttributeError) as exc:
54+
raise ValueError("Invalid base45 string") from exc

0 commit comments

Comments
 (0)