Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update vendored pyproject-metadata #917

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
10 changes: 8 additions & 2 deletions .distro/python-scikit-build-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Version: 0.0.0
Release: %autorelease
Summary: Build backend for CMake based projects

License: Apache-2.0
# The main project is licensed under Apache-2.0, but it has a vendored project
# src/scikit_build_core/_vendor/pyproject_metadata: MIT
# https://github.com/scikit-build/scikit-build-core/issues/933
License: Apache-2.0 AND MIT
URL: https://github.com/scikit-build/scikit-build-core
Source: %{pypi_source scikit_build_core}

Expand All @@ -38,6 +41,7 @@ Recommends: (ninja-build or make)
Recommends: python3-scikit-build-core+pyproject = %{version}-%{release}
Suggests: ninja-build
Suggests: gcc
Provides: bundled(python3dist(pyproject-metadata))
BuildArch: noarch
%description -n python3-scikit-build-core %_description

Expand All @@ -63,6 +67,8 @@ It makes sure the dependencies are installed.

%prep
%autosetup -n scikit_build_core-%{version}
# Rename the bundled license so that it can be installed together
cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject-metadata


%generate_buildrequires
Expand All @@ -87,7 +93,7 @@ It makes sure the dependencies are installed.


%files -n python3-scikit-build-core -f %{pyproject_files}
%license LICENSE
%license LICENSE LICENSE-pyproject-metadata
%doc README.md


Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ repos:
- ninja
- nox
- orjson
- packaging
- packaging>=24.2
- pytest
- pytest-subprocess
- rich
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ wheel.expand-macos-universal-tags = false
# to "/platlib", "/data", "/headers", and "/scripts".
wheel.install-dir = ""

# A list of license files to include in the wheel. Supports glob patterns.
wheel.license-files = ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]
# A list of license files to include in the wheel. Supports glob patterns. The
# default is ``["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]``. Must not be
# set if ``project.license-files`` is set.
wheel.license-files = ""

# If set to True (the default), CMake will be run before building the wheel.
wheel.cmake = true
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def pylint(session: nox.Session) -> None:
"""
# This needs to be installed into the package environment, and is slower
# than a pre-commit check
session.install("-e.[dev,test,test-meta]", "pylint==3.2.*")
session.install("-e.[dev,test,test-meta]", "pylint==3.3.*")
session.run("pylint", "--version")
session.run("pylint", "scikit_build_core", *session.posargs)

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ filterwarnings = [
"default:The distutils package is deprecated and slated for removal:DeprecationWarning", # Caused by setuptools sometimes
"default:The distutils.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning", # Caused by setuptools sometimes
"default:check_home argument is deprecated and ignored.:DeprecationWarning", # Caused by setuptools sometimes
"ignore::scikit_build_core._vendor.pyproject_metadata.errors.ConfigurationWarning",
]
log_cli_level = "info"
pythonpath = ["tests/utils"]
Expand Down Expand Up @@ -203,6 +204,7 @@ messages_control.disable = [
"broad-except",
"unused-argument", # Handled by Ruff
"redefined-builtin", # ExceptionGroup is a builtin
"using-exception-groups-in-unsupported-version", # We are using a backport
]


Expand Down
Loading
Loading