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
2 changes: 1 addition & 1 deletion .distro/python-scikit-build-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject

%generate_buildrequires
export HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
%pyproject_buildrequires -g test%{?with_optional_tests:,test-meta,test-numpy,test-pybind11}
%pyproject_buildrequires -g test-core%{?with_optional_tests:,test}


%build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:

- name: Install min requirements
run: |
uv pip install -e. --group=test-pybind11 --resolution=lowest-direct --system
uv pip install -e. --group=test --resolution=lowest-direct --system

- name: Setup CMake 3.15
uses: jwlawson/actions-setup-cmake@v2.0
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
run: python3.13t -m venv /venv

- name: Install deps
run: /venv/bin/pip install -e . --group=test-pybind11 ninja
run: /venv/bin/pip install -e . --group=test ninja

- name: Test package
run: /venv/bin/pytest
Expand All @@ -246,7 +246,7 @@ jobs:
cmake ninja git make gcc-g++ python39 python39-devel python39-pip

- name: Install
run: python3.9 -m pip install . --group=test-pybind11
run: python3.9 -m pip install . --group=test

- name: Test package
run:
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
persist-credentials: false

- name: Install
run: python -m pip install . --group=test-pybind11
run: python -m pip install . --group=test

- name: Test package
run: >-
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
persist-credentials: false

- name: Install
run: python -m pip install . --group=test-pybind11
run: python -m pip install . --group=test

- name: Test package
run: >-
Expand Down
35 changes: 20 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ hatch.scikit-build = "scikit_build_core.hatch.hooks"


[dependency-groups]
test = [
test-core = [
"build >=0.8",
"cattrs >=22.2.0",
"filelock >=3.8.0",
Expand All @@ -84,33 +84,41 @@ test = [
"pip>=24.1; python_version>='3.13'",
"pytest >=7.2",
"pytest-subprocess >=1.5",
'pytest-xdist >=3.1',
'setuptools >=43; python_version<"3.9"',
'setuptools >=45; python_version=="3.9"',
'setuptools >=49; python_version>="3.10" and python_version<"3.12"',
'setuptools >=66.1; python_version>="3.12"',
"virtualenv >=20.20",
"wheel >=0.40",
]
test-parallel = [
{ include-group = "test-core" },
'pytest-xdist >=3.1',
]
test-meta = [
{ include-group = "test" },
{ include-group = "test-core" },
"hatch-fancy-pypi-readme>=22.3",
"setuptools-scm",
]
test-numpy = [
{ include-group = "test" },
"numpy; python_version<'3.14' and platform_python_implementation!='PyPy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
"numpy~=1.24.0; python_version=='3.8' and platform_python_implementation=='PyPy'",
"numpy~=2.0.0; python_version=='3.9' and platform_python_implementation=='PyPy'",
"numpy~=2.2.0; python_version=='3.10' and platform_python_implementation=='PyPy'",
{ include-group = "test-core" },
"numpy>=1.24; python_version<'3.15' and platform_python_implementation!='PyPy' and (platform_system != 'Windows' or platform_machine != 'ARM64')",
"numpy~=1.24; python_version=='3.8' and platform_python_implementation=='PyPy'",
"numpy~=2.0; python_version=='3.9' and platform_python_implementation=='PyPy'",
"numpy~=2.2; python_version=='3.10' and platform_python_implementation=='PyPy'",
"numpy~=2.4; python_version=='3.11' and platform_python_implementation=='PyPy'",
]
test-schema = [
{ include-group = "test" },
{ include-group = "test-core" },
"fastjsonschema",
"validate-pyproject",
]
test-pybind11 = [
{ include-group = "test" },
test = [
{ include-group = "test-core" },
{ include-group = "test-meta" },
{ include-group = "test-numpy" },
{ include-group = "test-parallel" },
{ include-group = "test-schema" },
"pybind11 >=2.11",
]
cov = [
Expand All @@ -119,10 +127,7 @@ cov = [
]
dev = [
{ include-group = "cov" },
{ include-group = "test-meta" },
{ include-group = "test-numpy" },
{ include-group = "test-pybind11" },
{ include-group = "test-schema" },
{ include-group = "test" },
"rich",
]
docs = [
Expand Down
2 changes: 1 addition & 1 deletion tests/plans.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
node-date: 2025-02-27T16:18:39-05:00
describe-name: v0.11.0
EOF
pip install --user . --group=test-pybind11
pip install --user . --group=test
discover:
how: fmf
filter: "tag: pytest"
Expand Down
Loading