2222
2323
2424package = "sectionproperties"
25- python_versions = ["3.9 " , "3.11 " , "3.10 " ]
25+ python_versions = ["3.11 " , "3.10 " , "3.9 " ]
2626nox .needs_version = ">= 2021.6.6"
2727nox .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 ])
190188def 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 ])
222222def 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" ,
0 commit comments