Skip to content

Commit ad79c99

Browse files
authored
Update to CadQuery 2.6.1 and Python >= 3.10 (#156)
1 parent 6f6eb02 commit ad79c99

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ on: [push, pull_request]
33
jobs:
44
tests:
55
name: "Python ${{ matrix.python-version }}"
6-
runs-on: ubuntu-22.04
6+
runs-on: ubuntu-24.04
77
strategy:
88
matrix:
99
python-version:
10-
- "3.8"
11-
- "3.9"
1210
- "3.10"
1311
- "3.11"
12+
- "3.12"
13+
- "3.13"
1414
steps:
1515
- uses: actions/checkout@v2
1616
- uses: actions/setup-python@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a collection of Python 3 based scripts to generate parts for the
66

77
## Requirements
88

9-
- Python 3.8+
9+
- Python 3.10+
1010
- Dependencies in `pyproject.toml`
1111

1212

cadquery_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def save(self, out_path: str, fused: bool) -> None:
5959
makedirs(dir_path)
6060

6161
mode = 'fused' if fused else 'default' # type: cq.occ_impl.exporters.assembly.STEPExportModeLiterals
62-
self.assembly.save(out_path, 'STEP', mode=mode, write_pcurves=False)
62+
self.assembly.export(out_path, 'STEP', mode=mode, write_pcurves=False)

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ authors = [
55
{ name = "Raphael Nestler", email = "raphael.nestler@gmail.com" },
66
]
77

8-
requires-python = ">=3.8"
8+
requires-python = ">=3.10"
99
dependencies = [
10-
"cadquery == 2.3.1",
11-
"numpy < 2", # Dependency of cadquery, but not working with v2.x
10+
"cadquery == 2.6.1",
1211
]
1312
version = "0.1.0"
1413

0 commit comments

Comments
 (0)