Skip to content

Commit 55883b0

Browse files
authored
tests: add a mark for setuptools tests (#93)
1 parent a4aab65 commit 55883b0

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "scikit_build_core"
77
authors = [
88
{ name = "Henry Schreiner", email = "[email protected]" },
99
]
10-
description = "PEP 517 builder for Scikit-Build"
10+
description = "Build backend for CMake based projects"
1111
readme = "README.md"
1212
requires-python = ">=3.7"
1313
classifiers = [
@@ -25,7 +25,8 @@ classifiers = [
2525
"Programming Language :: Python :: 3.9",
2626
"Programming Language :: Python :: 3.10",
2727
"Programming Language :: Python :: 3.11",
28-
"Development Status :: 3 - Alpha",
28+
"Development Status :: 4 - Beta",
29+
"Typing :: Typed",
2930
]
3031

3132
dynamic = ["version"]
@@ -37,11 +38,9 @@ dependencies = [
3738
"tomli; python_version<'3.11'",
3839
"typing_extensions >=3.7; python_version<'3.8'",
3940
]
40-
# Note: for building wheels and sdists, there are also
41-
# additional dependencies:
42-
# pyproject_metadata, distlib, and pathspec
43-
# And cmake and possibly ninja if those are not already present (user
44-
# controllable)
41+
# Note: for building wheels and sdists, there are also additional dependencies
42+
# in the pyproject extra. And cmake and possibly ninja if those are not already
43+
# present (user controllable)
4544

4645
[project.optional-dependencies]
4746
pyproject = [
@@ -92,6 +91,7 @@ Examples = "https://github.com/scikit-build/scikit-build-core/tree/main/tests/pa
9291
cmake_extensions = "scikit_build_core.setuptools.extension:cmake_extensions"
9392
cmake_source_dir = "scikit_build_core.setuptools.extension:cmake_source_dir"
9493

94+
9595
[tool.hatch]
9696
build.exclude = ["extern"]
9797
version.source = "vcs"
@@ -120,6 +120,7 @@ markers = [
120120
"compile: Compiles code",
121121
"configure: Configures CMake code",
122122
"integration: Full package build",
123+
"setuptools: Tests setuptools integration",
123124
]
124125

125126

@@ -162,7 +163,7 @@ profile = "black"
162163
master.py-version = "3.7"
163164
reports.output-format = "colorized"
164165
similarities.ignore-imports = "yes"
165-
good-names = ["f",]
166+
good-names = ["f"]
166167
messages_control.disable = [
167168
"design",
168169
"fixme",

tests/test_setuptools_abi3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from scikit_build_core.setuptools.build_meta import build_wheel
99

10+
pytestmark = pytest.mark.setuptools
11+
1012
DIR = Path(__file__).parent.resolve()
1113
ABI_PKG = DIR / "packages/abi3_setuptools_ext"
1214

tests/test_setuptools_pep517.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
from scikit_build_core.setuptools.build_meta import build_sdist, build_wheel
1111

12+
pytestmark = pytest.mark.setuptools
13+
1214
DIR = Path(__file__).parent.resolve()
1315
HELLO_PEP518 = DIR / "packages/simple_setuptools_ext"
1416

tests/test_setuptools_pep518.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import pytest
88

9+
pytestmark = pytest.mark.setuptools
10+
911
DIR = Path(__file__).parent.resolve()
1012
HELLO_PEP518 = DIR / "packages/simple_setuptools_ext"
1113

0 commit comments

Comments
 (0)