Skip to content

Commit 4d46ee0

Browse files
Merge branch 'master' into master
2 parents b8806b0 + dc30c46 commit 4d46ee0

File tree

15 files changed

+64
-60
lines changed

15 files changed

+64
-60
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: "3.9"
21+
python-version: "3.11"
2222

2323
- name: Upgrade pip
2424
run: |

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- { python: "3.9", os: "ubuntu-latest", session: "pre-commit" }
19+
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
2020
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2121
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2222
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
@@ -26,7 +26,7 @@ jobs:
2626
- { python: "3.11", os: "macos-latest", session: "tests" }
2727
- { python: "3.10", os: "macos-latest", session: "tests" }
2828
- { python: "3.9", os: "macos-latest", session: "tests" }
29-
- { python: "3.9", os: "ubuntu-latest", session: "docs-build" }
29+
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
3030

3131
env:
3232
NOXSESSION: ${{ matrix.session }}
@@ -123,7 +123,7 @@ jobs:
123123
- name: Set up Python
124124
uses: actions/setup-python@v4
125125
with:
126-
python-version: "3.9"
126+
python-version: "3.11"
127127

128128
- name: Upgrade pip
129129
run: |

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
build:
66
os: ubuntu-22.04
77
tools:
8-
python: "3.9"
8+
python: "3.10"
99

1010
# Build documentation in the docs/ directory with Sphinx
1111
sphinx:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ poetry install
8383
Install with the `rhino` and `cad` extras:
8484

8585
```shell
86-
poetry install --all-extras
86+
poetry install --extras "dxf rhino"
8787
```
8888

8989
You can now run an interactive Python session, or the command-line interface:

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Install with the ``rhino`` and ``cad`` extras:
9595

9696
.. code:: shell
9797
98-
poetry install --all-extras
98+
poetry install --extras "dxf rhino"
9999
100100
You can now run an interactive Python session, or the command-line interface:
101101

docs/installation.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,3 @@ To install ``sectionproperties`` with the above functionality, use the ``dxf`` a
5757
5858
pip install sectionproperties[dxf]
5959
pip install sectionproperties[rhino]
60-
61-
Note that the ``rhino`` option only supports python ``3.9`` due to incomplete wheel
62-
coverage of ``rhino3dm``.

docs/user_guide/geometry.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ Various CAD files can be imported to creating ``sectionproperties`` geometries.
111111
installation. To install ``sectionproperties`` with CAD import functionality, use
112112
the ``dxf`` and/or ``rhino`` options:
113113

114-
.. code-block:: shell
114+
.. code-block:: shell
115115
116-
pip install sectionproperties[dxf]
117-
pip install sectionproperties[rhino]
116+
pip install sectionproperties[dxf]
117+
pip install sectionproperties[rhino]
118118
119119
.. _label-geometry-dxf:
120120

noxfile.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
package = "sectionproperties"
25-
python_versions = ["3.9", "3.11", "3.10"]
25+
python_versions = ["3.11", "3.10", "3.9"]
2626
nox.needs_version = ">= 2021.6.6"
2727
nox.options.sessions = (
2828
"pre-commit",
@@ -144,11 +144,9 @@ def tests(session: Session) -> None:
144144
Args:
145145
session: Nox session
146146
"""
147-
# provide only dxf dependencies if python version is 3.10 or 3.11
148-
if session.python == "3.9":
149-
session.run_always("poetry", "install", "--all-extras", external=True)
150-
else:
151-
session.run_always("poetry", "install", "--extras", "dxf", external=True)
147+
session.run_always(
148+
"poetry", "install", "--only", "main", "--extras", "dxf rhino", external=True
149+
)
152150

153151
# install relevant tooling
154152
session.install("coverage[toml]", "pytest", "pygments", "pytest-check")
@@ -161,7 +159,7 @@ def tests(session: Session) -> None:
161159
"-m",
162160
"pytest",
163161
"-m",
164-
"not benchmark",
162+
"not benchmark_suite",
165163
*session.posargs,
166164
)
167165
finally:
@@ -186,7 +184,7 @@ def coverage(session: Session) -> None:
186184
session.run("coverage", *args)
187185

188186

189-
@session(name="docs-build", python=python_versions[0])
187+
@session(name="docs-build", python=python_versions[1])
190188
def docs_build(session: Session) -> None:
191189
"""Build the documentation.
192190
@@ -197,7 +195,9 @@ def docs_build(session: Session) -> None:
197195
if not session.posargs and "FORCE_COLOR" in os.environ:
198196
args.insert(0, "--color")
199197

200-
session.run_always("poetry", "install", "--all-extras", external=True)
198+
session.run_always(
199+
"poetry", "install", "--only", "main", "--extras", "dxf rhino", external=True
200+
)
201201
session.install(
202202
"furo",
203203
"ipykernel",
@@ -218,15 +218,17 @@ def docs_build(session: Session) -> None:
218218
session.run("sphinx-build", *args)
219219

220220

221-
@session(python=python_versions[0])
221+
@session(python=python_versions[1])
222222
def docs(session: Session) -> None:
223223
"""Build and serve the documentation with live reloading on file changes.
224224
225225
Args:
226226
session: Nox session
227227
"""
228228
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
229-
session.run_always("poetry", "install", "--all-extras", external=True)
229+
session.run_always(
230+
"poetry", "install", "--only", "main", "--extras", "dxf rhino", external=True
231+
)
230232
session.install(
231233
"furo",
232234
"ipykernel",

poetry.lock

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ click = "^8.1.7"
5858
more-itertools = "^10.1.0"
5959
numba = "^0.58.0"
6060
cad-to-shapely = { version = "^0.3.1", optional = true }
61-
rhino-shapley-interop = { version = "^0.0.4", python = ">=3.9.0,<3.10", optional = true }
62-
rhino3dm = { version = "==8.0.0b2", python = ">=3.9.0,<3.10", optional = true }
61+
rhino-shapley-interop = { version = "^0.0.4", optional = true }
62+
rhino3dm = { version = "==8.0.0b3", optional = true }
6363
pypardiso = { version = "^0.4.2", optional = true }
6464

65-
[tool.poetry.dev-dependencies]
65+
[tool.poetry.group.dev.dependencies]
6666
black = "^23.9.1"
6767
coverage = { extras = ["toml"], version = "^7.3.2" }
6868
darglint = "^1.8.1"
@@ -108,6 +108,7 @@ tests = ["tests", "*/tests"]
108108
[tool.coverage.run]
109109
branch = true
110110
source = ["sectionproperties", "tests"]
111+
omit = ["*/benchmarks/*"]
111112

112113
[tool.coverage.report]
113114
show_missing = true
@@ -118,6 +119,7 @@ lines_after_imports = 2
118119

119120
[tool.pytest.ini_options]
120121
markers = [
122+
"benchmark_suite: entire benchmark test suite (select with '-m benchmark_suite')",
121123
"benchmark_geom: geometry benchmark tests (select with '-m benchmark_geom')",
122124
"benchmark_mesh: mesh benchmark tests (select with '-m benchmark_mesh')",
123125
"benchmark_analysis: analysis benchmark tests (select with '-m benchmark_analysis')",

0 commit comments

Comments
 (0)