File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 5757 python-version : ${{ matrix.python-version }}
5858 allow-prereleases : true
5959
60+ - uses : yezz123/setup-uv@v4
61+
6062 - name : Install package
61- run : python -m pip install .[test]
63+ run : uv pip install --system -e .[test]
6264
6365 - name : Test package
6466 run : python -m pytest --durations=20
Original file line number Diff line number Diff line change 5555 args : []
5656 additional_dependencies :
5757 - pytest
58+ - scikit-build-core
5859
5960 - repo : https://github.com/codespell-project/codespell
6061 rev : " v2.3.0"
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import argparse
4- import shutil
54from pathlib import Path
65
76import nox
87
98DIR = Path (__file__ ).parent .resolve ()
109
10+ nox .needs_version = ">=2024.3.2"
11+ nox .options .default_venv_backend = "uv|virtualenv"
1112nox .options .sessions = ["lint" , "pylint" , "tests" ]
1213
1314
@@ -38,7 +39,7 @@ def tests(session: nox.Session) -> None:
3839 """
3940 Run the unit and regular tests.
4041 """
41- session .install (".[test]" )
42+ session .install ("-e .[test]" )
4243 session .run ("pytest" , * session .posargs )
4344
4445
@@ -109,9 +110,5 @@ def build(session: nox.Session) -> None:
109110 Build an SDist and wheel.
110111 """
111112
112- build_path = DIR .joinpath ("build" )
113- if build_path .exists ():
114- shutil .rmtree (build_path )
115-
116113 session .install ("build" )
117114 session .run ("python" , "-m" , "build" )
Original file line number Diff line number Diff line change @@ -38,9 +38,8 @@ any = "cython_cmake.cmake"
3838[project .optional-dependencies ]
3939test = [
4040 " pytest >=6" ,
41- ]
42- dev = [
43- " pytest >=6" ,
41+ " scikit-build-core" ,
42+ " cython" ,
4443]
4544docs = [
4645 " sphinx>=7.0" ,
@@ -62,9 +61,11 @@ version.source = "vcs"
6261build.hooks.vcs.version-file = " src/cython_cmake/_version.py"
6362
6463[tool .hatch .envs .default ]
65- features = [" test" ]
66- scripts.test = " pytest {args}"
64+ installer = " uv"
6765
66+ [tool .hatch .envs .hatch-test ]
67+ features = [" test" ]
68+ extra-dependencies = [" cmake" , " ninja" ]
6869
6970[tool .pytest .ini_options ]
7071minversion = " 6.0"
You can’t perform that action at this time.
0 commit comments