Skip to content

Commit 61e54e6

Browse files
authored
chore: Fix build for Python 3.13/Poetry 2.0 (#28)
1 parent 73207fa commit 61e54e6

File tree

6 files changed

+73
-1122
lines changed

6 files changed

+73
-1122
lines changed

.github/workflows/test.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
cache: 'pip'
29+
30+
- name: Check install local
31+
run: |
32+
pip install ".[test]"
33+
cd tests
34+
python -c "import wherobots.db"
35+
36+
- name: Check build
37+
run: |
38+
pip install poetry
39+
poetry build
40+
41+
- name: Check install sdist
42+
run: |
43+
pip install --force-reinstall dist/*.tar.gz
44+
cd tests
45+
python -c "import wherobots.db"
46+
47+
- name: Check install wheel
48+
run: |
49+
pip install --force-reinstall dist/*.whl
50+
cd tests
51+
python -c "import wherobots.db"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
.vscode
3+
poetry.lock
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

0 commit comments

Comments
 (0)