Skip to content

Commit

Permalink
tests: add a mark for setuptools tests (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Nov 16, 2022
1 parent a4aab65 commit 55883b0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "scikit_build_core"
authors = [
{ name = "Henry Schreiner", email = "[email protected]" },
]
description = "PEP 517 builder for Scikit-Build"
description = "Build backend for CMake based projects"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
Expand All @@ -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"]
Expand All @@ -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 = [
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -120,6 +120,7 @@ markers = [
"compile: Compiles code",
"configure: Configures CMake code",
"integration: Full package build",
"setuptools: Tests setuptools integration",
]


Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_setuptools_abi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions tests/test_setuptools_pep517.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions tests/test_setuptools_pep518.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import pytest

pytestmark = pytest.mark.setuptools

DIR = Path(__file__).parent.resolve()
HELLO_PEP518 = DIR / "packages/simple_setuptools_ext"

Expand Down

0 comments on commit 55883b0

Please sign in to comment.