Skip to content

Commit 08cbf17

Browse files
committed
merge with main
2 parents 553461f + fb17ea7 commit 08cbf17

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
insecure-external-code-execution: allow
6+
schedule:
7+
interval: "monthly"
8+
open-pull-requests-limit: 100
9+
labels:
10+
- "maintenance"
11+
- "dependencies"
12+
groups:
13+
pip:
14+
patterns:
15+
- "*"
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "monthly"
20+
open-pull-requests-limit: 100
21+
labels:
22+
- "maintenance"
23+
- "dependencies"
24+
groups:
25+
actions:
26+
patterns:
27+
- "*"

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [ubuntu-latest, windows-latest, macos-latest]
22+
os: [ubuntu-latest, windows-latest, macos-14, macos-13]
2323

2424
steps:
2525
- uses: actions/checkout@v4
2626

2727
- name: Build wheels
28-
uses: pypa/cibuildwheel@v2.16.5
28+
uses: pypa/cibuildwheel@v2.20.0
2929

3030
- uses: actions/upload-artifact@v4
3131
with:
@@ -76,7 +76,7 @@ jobs:
7676
- name: Publish package distributions to PyPI
7777
uses: pypa/gh-action-pypi-publish@release/v1
7878
- name: Create GitHub Release
79-
uses: softprops/action-gh-release@v1
79+
uses: softprops/action-gh-release@v2
8080
with:
8181
generate_release_notes: true
8282
files: |

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ demonstrate how to accomplish this with TetGen and PyVista:
201201
for i in range(background_mesh.n_points):
202202
mtr_content.append(f"{target_size[i]:.8f}")
203203
204+
pv.save_meshio(f"{out_stem}.node", background_mesh)
205+
mtr_file = f"{out_stem}.mtr"
206+
207+
with open(mtr_file, "w") as f:
208+
f.write("\n".join(mtr_content))
209+
204210
write_background_mesh(bg_mesh, 'bgmesh.b')
205211
206212
3. **Use TetGen with the Background Mesh**:

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [
33
"setuptools>=42",
44
"wheel>=0.33.0",
55
"cython>=3.0.0",
6-
"oldest-supported-numpy"
6+
"numpy>=2,<3",
77
]
88

99
build-backend = "setuptools.build_meta"
@@ -18,14 +18,12 @@ filterwarnings = [
1818

1919
[tool.cibuildwheel]
2020
archs = ["auto64"] # 64-bit only
21-
skip = "pp* *musllinux* cp37-*" # disable PyPy, musl-based wheels, and Python < 3.8
21+
skip = "pp* *musllinux* cp37-* cp38-* cp313-*" # Build CPython 3.9 - 3.12
2222
before-test = "pip install -r requirements_test.txt"
2323
test-command = "pytest {project}/tests"
2424

2525
[tool.cibuildwheel.macos]
26-
# https://cibuildwheel.readthedocs.io/en/stable/faq/#apple-silicon
27-
archs = ["universal2"]
28-
test-skip = ["*_arm64", "*_universal2:arm64"]
26+
archs = ["native"]
2927

3028
[tool.codespell]
3129
skip = '*.cxx,*.h,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,build,./docker/mapdl/v*,./factory/*,PKG-INFO,*.mypy_cache/*'

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Setup for tetgen."""
2+
23
from io import open as io_open
34
import os
45

@@ -36,11 +37,10 @@
3637
"Intended Audience :: Science/Research",
3738
"License :: OSI Approved :: GNU Affero General Public License v3",
3839
"Development Status :: 4 - Beta",
39-
"Programming Language :: Python :: 3.7",
40-
"Programming Language :: Python :: 3.8",
4140
"Programming Language :: Python :: 3.9",
4241
"Programming Language :: Python :: 3.10",
4342
"Programming Language :: Python :: 3.11",
43+
"Programming Language :: Python :: 3.12",
4444
],
4545
# Build cython modules
4646
ext_modules=cythonize(
@@ -60,7 +60,7 @@
6060
),
6161
],
6262
),
63-
python_requires=">=3.7",
63+
python_requires=">=3.9",
6464
keywords="TetGen",
65-
install_requires=["numpy>1.16.0", "pyvista>=0.31.0"],
65+
install_requires=["numpy>=2,<3", "pyvista>=0.31.0"],
6666
)

0 commit comments

Comments
 (0)