Skip to content

Commit de8da47

Browse files
committed
Merge branch 'main' into feature/offset_with_holes
2 parents 161a127 + 6522ee2 commit de8da47

26 files changed

+82
-156
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [macos-latest, windows-latest]
18-
python: ["3.9", "3.10", "3.11", "3.12"]
17+
os: [macos-latest]
18+
python: ["3.10", "3.11", "3.12"]
1919

2020
steps:
2121
- uses: compas-dev/compas-actions.build@v4
2222
with:
2323
invoke_lint: true
24-
check_import: true
2524
use_conda: true
25+
check_import: true
2626
python: ${{ matrix.python }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ on:
1212

1313
jobs:
1414
docs:
15-
runs-on: windows-latest
15+
runs-on: ubuntu-latest
1616
steps:
17-
- uses: compas-dev/compas-actions.docs@v3
17+
- uses: compas-dev/compas-actions.docs@v4
1818
with:
1919
github_token: ${{ secrets.GITHUB_TOKEN }}
2020
use_conda: true

docs/examples/straight_skeleton_2_holes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
for edge in graph.edges():
3737
line = graph.edge_line(edge)
3838
if graph.edge_attribute(edge, "inner_bisector"):
39-
viewer.add(line, linecolor=(1.0, 0.0, 0.0), linewidth=2)
39+
viewer.scene.add(line, linecolor=(1.0, 0.0, 0.0), linewidth=2)
4040
elif graph.edge_attribute(edge, "bisector"):
41-
viewer.add(line, linecolor=(0.0, 0.0, 1.0))
41+
viewer.scene.add(line, linecolor=(0.0, 0.0, 1.0))
4242
else:
43-
viewer.add(line, linecolor=(0.0, 0.0, 0.0))
43+
viewer.scene.add(line, linecolor=(0.0, 0.0, 0.0))
4444
viewer.show()

env_linux.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: cgal-dev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python >=3.9
6+
- pip >=19.0
7+
- gmp
8+
- mpfr
9+
- scip >=9
10+
- boost-cpp
11+
- eigen =3.3
12+
- cgal-cpp
13+
- pybind11
14+
- compas >=2.4
15+
- pip:
16+
- .[DEV]

env_osx.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: cgal-dev
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.9
6-
- pip>=19.0
5+
- python >=3.9
6+
- pip >=19.0
77
- gmp
88
- mpfr
9-
- scip
9+
- scip >=9
1010
- boost-cpp
11-
- eigen=3.3
11+
- eigen =3.3
1212
- cgal-cpp
1313
- pybind11
14-
- compas
14+
- compas >=2.4
1515
- pip:
16-
- -e .[DEV]
16+
- .[DEV]

env_win.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: cgal-dev
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.6
6-
- pip>=19.0
5+
- python >=3.9
6+
- pip >=19.0
77
- mpir
88
- mpfr
9-
- scip
9+
- scip >=9
1010
- boost-cpp
11-
- eigen=3.3
11+
- eigen =3.3
1212
- cgal-cpp
1313
- pybind11
14-
- compas
14+
- compas >=2.4
1515
- pip:
16-
- -e .[DEV]
16+
- .[DEV]

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ where = ["src"]
6161
minversion = "6.0"
6262
testpaths = ["tests", "src/compas_cgal"]
6363
python_files = ["test_*.py", "*_test.py", "test.py"]
64-
addopts = ["-ra", "--strict-markers", "--doctest-glob=*.rst", "--tb=short"]
64+
addopts = [
65+
"-ra",
66+
"--strict-markers",
67+
"--doctest-glob=*.rst",
68+
"--tb=short",
69+
"--import-mode=importlib",
70+
]
6571
doctest_optionflags = [
6672
"NORMALIZE_WHITESPACE",
6773
"IGNORE_EXCEPTION_DETAIL",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_scip_library():
3737

3838
ext_modules = [
3939
Extension(
40-
"compas_cgal._cgal",
40+
"compas_cgal.cgal",
4141
sorted(
4242
[
4343
"src/compas_cgal.cpp",

src/compas_cgal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ void init_reconstruction(pybind11::module &);
1414
void init_polygonal_surface_reconstruction(pybind11::module &);
1515
void init_straight_skeleton_2(pybind11::module &);
1616

17-
// the first parameter here ("_cgal") will be the name of the "so" or "pyd" file that will be produced by PyBind11
17+
// the first parameter here ("cgal") will be the name of the "so" or "pyd" file that will be produced by PyBind11
1818
// which is the entry point from where all other modules will be accessible.
19-
PYBIND11_MODULE(_cgal, m)
19+
PYBIND11_MODULE(cgal, m)
2020
{
2121
m.doc() = "";
2222

23-
// here all modules of "_cgal" are initializied.
23+
// here all modules of "cgal" are initializied.
2424
init_meshing(m);
2525
init_booleans(m);
2626
init_slicer(m);

src/compas_cgal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"compas_cgal.measure",
2323
"compas_cgal.slicer",
2424
"compas_cgal.triangulation",
25-
"compas_cgal.straight_skeleton_2",
25+
# "compas_cgal.straight_skeleton_2",
2626
]
2727

2828
__all__ = ["HOME", "DATA", "DOCS", "TEMP"]

0 commit comments

Comments
 (0)