From 55883b01230247d6a30e5b20ec49c74b3f76a847 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 16 Nov 2022 10:14:48 -0500 Subject: [PATCH] tests: add a mark for setuptools tests (#93) --- pyproject.toml | 17 +++++++++-------- tests/test_setuptools_abi3.py | 2 ++ tests/test_setuptools_pep517.py | 2 ++ tests/test_setuptools_pep518.py | 2 ++ 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0fc2c8df..60c5bfed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "scikit_build_core" authors = [ { name = "Henry Schreiner", email = "henryfs@princeton.edu" }, ] -description = "PEP 517 builder for Scikit-Build" +description = "Build backend for CMake based projects" readme = "README.md" requires-python = ">=3.7" classifiers = [ @@ -25,7 +25,8 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", + "Typing :: Typed", ] dynamic = ["version"] @@ -37,11 +38,9 @@ dependencies = [ "tomli; python_version<'3.11'", "typing_extensions >=3.7; python_version<'3.8'", ] -# Note: for building wheels and sdists, there are also -# additional dependencies: -# pyproject_metadata, distlib, and pathspec -# And cmake and possibly ninja if those are not already present (user -# controllable) +# Note: for building wheels and sdists, there are also additional dependencies +# in the pyproject extra. And cmake and possibly ninja if those are not already +# present (user controllable) [project.optional-dependencies] pyproject = [ @@ -92,6 +91,7 @@ Examples = "https://github.com/scikit-build/scikit-build-core/tree/main/tests/pa cmake_extensions = "scikit_build_core.setuptools.extension:cmake_extensions" cmake_source_dir = "scikit_build_core.setuptools.extension:cmake_source_dir" + [tool.hatch] build.exclude = ["extern"] version.source = "vcs" @@ -120,6 +120,7 @@ markers = [ "compile: Compiles code", "configure: Configures CMake code", "integration: Full package build", + "setuptools: Tests setuptools integration", ] @@ -162,7 +163,7 @@ profile = "black" master.py-version = "3.7" reports.output-format = "colorized" similarities.ignore-imports = "yes" -good-names = ["f",] +good-names = ["f"] messages_control.disable = [ "design", "fixme", diff --git a/tests/test_setuptools_abi3.py b/tests/test_setuptools_abi3.py index 66e300e4..e61158e2 100644 --- a/tests/test_setuptools_abi3.py +++ b/tests/test_setuptools_abi3.py @@ -7,6 +7,8 @@ from scikit_build_core.setuptools.build_meta import build_wheel +pytestmark = pytest.mark.setuptools + DIR = Path(__file__).parent.resolve() ABI_PKG = DIR / "packages/abi3_setuptools_ext" diff --git a/tests/test_setuptools_pep517.py b/tests/test_setuptools_pep517.py index a80edc6a..9db37da4 100644 --- a/tests/test_setuptools_pep517.py +++ b/tests/test_setuptools_pep517.py @@ -9,6 +9,8 @@ from scikit_build_core.setuptools.build_meta import build_sdist, build_wheel +pytestmark = pytest.mark.setuptools + DIR = Path(__file__).parent.resolve() HELLO_PEP518 = DIR / "packages/simple_setuptools_ext" diff --git a/tests/test_setuptools_pep518.py b/tests/test_setuptools_pep518.py index d0c3c05a..3153bbbb 100644 --- a/tests/test_setuptools_pep518.py +++ b/tests/test_setuptools_pep518.py @@ -6,6 +6,8 @@ import pytest +pytestmark = pytest.mark.setuptools + DIR = Path(__file__).parent.resolve() HELLO_PEP518 = DIR / "packages/simple_setuptools_ext"