Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
# "macos-13", # x86_64
"macos-latest", # arm64
]
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v4
- uses: pyvista/setup-headless-display-action@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.12"]
python-version: ["3.10", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@v3
- uses: mamba-org/setup-micromamba@v2
with:
generate-run-shell: true
Expand Down
26 changes: 10 additions & 16 deletions .github/workflows/mmg-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ jobs:
- name: Conda build for Linux
shell: bash -l {0}
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload linux-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload linux-64/*.tar.bz2 --force

macos:
name: MacOS
runs-on: "macos-13"
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -38,11 +36,9 @@ jobs:
- name: Conda build for MacOS
shell: bash -l {0}
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload osx-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload osx-arm64/*.tar.bz2 --force

windows:
name: Windows
Expand All @@ -56,8 +52,6 @@ jobs:
- name: Conda build for Windows
shell: pwsh
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload win-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload win-64/*.tar.bz2 --force
26 changes: 10 additions & 16 deletions .github/workflows/neper-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ jobs:
- name: Conda build for Linux
shell: bash -l {0}
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload linux-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload linux-64/*.tar.bz2 --force

macos:
name: MacOS
runs-on: "macos-13"
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -38,11 +36,9 @@ jobs:
- name: Conda build for MacOS
shell: bash -l {0}
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload osx-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload osx-arm64/*.tar.bz2 --force

windows:
name: Windows
Expand All @@ -56,8 +52,6 @@ jobs:
- name: Conda build for Windows
shell: pwsh
run: |
conda install python=3.9 conda-build anaconda-client
anaconda logout
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload win-64/*.tar.bz2 --force
conda install python=3.12 conda-build anaconda-client
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload win-64/*.tar.bz2 --force
2 changes: 1 addition & 1 deletion .github/workflows/test-conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-13"]
os: ["ubuntu-latest", "macos-latest"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ channels:
- set3mah

dependencies:
- numpy <2
- pyvista
- numpy
- pyvista <0.46.5
- scipy
- python-gmsh
- meshio
Expand Down
7 changes: 6 additions & 1 deletion microgen/box_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
from .rve import Rve
from .single_mesh import SingleMesh, check_if_only_linear_tetrahedral

USE_MULTI_RAY = False
try:
import trimesh

USE_MULTI_RAY = trimesh.ray.has_embree
except ImportError:
USE_MULTI_RAY = False

AXES = ("x", "y", "z")
AXES_PAIRS = (("x", "y"), ("x", "z"), ("y", "z"))
Expand Down
4 changes: 2 additions & 2 deletions mmg.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ requirements:
- make # [unix]
host:
- cmake
- scotch 6.0.*
- scotch
run:
- scotch 6.0.*
- scotch

about:
home: https://github.com/MmgTools/mmg
Expand Down
4 changes: 2 additions & 2 deletions neper.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ requirements:
- libblas
- llvm-openmp # [osx]
- gsl
- scotch 6.0.*
- scotch
- nlopt
- openmp #[not osx]
- occt 7.7.0
run:
- gsl
- scotch 6.*
- scotch
- llvm-openmp # [osx]
- nlopt
- openmp #[not osx]
Expand Down
22 changes: 9 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.4.0.dev0"
authors = [{ name = "3MAH", email = 'set3mah@gmail.com' }]
description = "Microstructure generation and meshing"
readme = "README.md"
requires-python = ">=3.9,<3.13"
requires-python = ">=3.10"
keywords = ["microstructure", "lattice", "periodic", "TPMS", "mesh"]
license = { text = "GPLv3" }
classifiers = [
Expand All @@ -13,20 +13,12 @@ classifiers = [
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: MacOS',
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

dependencies = [
"cadquery>=2.5.0,<2.6",
"gmsh>=4.13.1,<5",
"meshio>=5.3.5,<6",
"numpy>1.24.0,<3",
"pyvista>=0.44.2,<0.47",
"scipy>=1.13.1,<1.16",
]
dependencies = ["numpy", "pyvista", "gmsh", "meshio", "cadquery", "scipy", "nlopt"]

[project.optional-dependencies]
dev = [
Expand All @@ -46,6 +38,10 @@ docs = [
"mock>=5.1.0",
"myst-parser>=3.0.1",
]
ray = [
"trimesh",
"embreex",
]
jupyter = [
"jupyterlab>=3.6.8,<4.4",
"jupyter-cadquery>=2.2.1",
Expand All @@ -54,7 +50,7 @@ jupyter = [
"sidecar>=0.5.2",
"jupyterview>=0.7.0",
]
all = ["microgen[dev, docs, jupyter]"]
all = ["microgen[dev, docs, jupyter, ray]"]

[project.urls]
Documentation = 'https://microgen.readthedocs.io/en/latest'
Expand All @@ -75,7 +71,7 @@ module = ["gmsh", "scipy.spatial"]
ignore_missing_imports = true

[tool.ruff]
target-version = "py38"
target-version = "py310"

[tool.ruff.lint]
exclude = [
Expand Down
Loading