forked from pool/python-scikit-build-core
Compare commits
17 Commits
Author | SHA256 | Date | |
---|---|---|---|
4b7008f1fe | |||
b3227ea630 | |||
3d07a119ae | |||
c0b7f8f35a | |||
2a5d3ff97e | |||
f8684871ae | |||
4ac31dbed5 | |||
b37bde3917 | |||
8c2712c84d | |||
bfe118a75d | |||
22e43e0fb0 | |||
7ea68e9bb3 | |||
ea5e051d54 | |||
8d44a16fee | |||
c4dff1f0a8 | |||
3d8f0c2a2a | |||
af6f6abd06 |
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,3 +1,43 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 4 13:18:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 0.11.0
|
||||
* Update vendored pyproject-metadata (PEP 639 support)
|
||||
* 0.11+ default to metadata 2.2
|
||||
* Rework CMake search path settings and add cmake.root
|
||||
* add SKBUILD_SABI_VERSION
|
||||
* Support TOML lists in cmake.define
|
||||
* Add new field build.requires
|
||||
* Drop python<=3.7 support
|
||||
* Setuptools plugin: pyproject-toml only config support
|
||||
* Setuptools plugin: error for cmake_install_target
|
||||
* Lock during experimental editable.rebuild
|
||||
* Vendor updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 30 02:48:05 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Inject multibuild.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 12:38:11 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.10.7
|
||||
* Avoid modifying the input dict by @henryiii in #903
|
||||
* Avoid providing prepare-metadata methods if `failed`
|
||||
in overrides by @henryiii in #904
|
||||
* Support negative envvar values correctly by @henryiii in #907
|
||||
- from version 0.10.6
|
||||
* Use correct settings key to remove parts of the version
|
||||
in regex metadata plugin by @philippjh in #887
|
||||
* Support multiplexed path by @henryiii in #896
|
||||
* Editable subpackage by @henryiii in #895
|
||||
* Only strip Release and MinSizeRel builds by default by @henryiii in #898
|
||||
* Typo in debug message by @LecrisUT in #892
|
||||
* Add build info by @henryiii in #878
|
||||
* Fix typo in `if.platform-system` example by @henryiii in #879
|
||||
* Packit configuration update by @LecrisUT in #799
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 20:51:54 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-scikit-build-core
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,9 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%bcond_without test
|
||||
%define psuffix -test
|
||||
%else
|
||||
%bcond_with test
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-scikit-build-core
|
||||
Version: 0.10.5
|
||||
Name: python-scikit-build-core%{psuffix}
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
Summary: Build backend for CMake based projects
|
||||
License: Apache-2.0
|
||||
@ -26,7 +34,7 @@ URL: https://github.com/scikit-build/scikit-build-core
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/scikit_build_core/scikit_build_core-%{version}.tar.gz
|
||||
# PATCH-FEATURE-OPENSUSE scikit-build-core-offline-wheelhouse.patch provide the testing wheels without runtime download code@bnavigator.de
|
||||
Patch1: scikit-build-core-offline-wheelhouse.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module hatch-vcs}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module packaging >= 21.3}
|
||||
@ -36,25 +44,10 @@ BuildRequires: python-rpm-macros
|
||||
Requires: cmake >= 3.15
|
||||
Requires: python-packaging >= 21.3
|
||||
Requires: python-pathspec >= 0.10.1
|
||||
Requires: (python-exceptiongroup >= 1 if python-base < 3.11)
|
||||
Requires: (python-importlib-metadata >= 4.13 if python-base < 3.8)
|
||||
Requires: (python-importlib-resources >= 1.3 if python-base < 3.9)
|
||||
Requires: (python-tomli >= 1.2.2 if python-base < 3.11)
|
||||
Requires: (python-typing-extensions >= 3.10.0 if python-base < 3.9)
|
||||
Recommends: ninja
|
||||
Recommends: python-rich
|
||||
Provides: python-scikit_build_core = %{version}-%{release}
|
||||
# SECTION require runtime
|
||||
BuildRequires: %{python_module exceptiongroup >= 1 if %python-base < 3.11}
|
||||
BuildRequires: %{python_module importlib-metadata >= 4.13 if %python-base < 3.8}
|
||||
BuildRequires: %{python_module importlib-resources >= 1.3 if %python-base < 3.9}
|
||||
BuildRequires: %{python_module pathspec >= 0.10.1}
|
||||
BuildRequires: %{python_module tomli >= 1.2.2 if %python-base < 3.11}
|
||||
BuildRequires: %{python_module typing-extensions >= 3.10.0 if %python-base < 3.9}
|
||||
BuildRequires: cmake >= 3.15
|
||||
BuildArch: noarch
|
||||
# /SECITON
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module build >= 0.8}
|
||||
BuildRequires: %{python_module cattrs >= 22.2.0}
|
||||
BuildRequires: %{python_module devel}
|
||||
@ -63,12 +56,15 @@ BuildRequires: %{python_module pybind11-devel >= 2.11}
|
||||
BuildRequires: %{python_module pytest >= 7.2}
|
||||
BuildRequires: %{python_module pytest-subprocess >= 1.5.0}
|
||||
BuildRequires: %{python_module rich}
|
||||
BuildRequires: %{python_module scikit-build-core = %{version}}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module virtualenv >= 20.20}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ninja
|
||||
# /SECTION
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -101,10 +97,13 @@ Python CMake adaptor and Python API for plugins: The extra requirement to build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
# A writable temp dir is required for some tests
|
||||
mkdir ./tmp
|
||||
export PYTEST_DEBUG_TEMPROOT=./tmp
|
||||
@ -113,7 +112,9 @@ donttestmark="isolated"
|
||||
# different hash due to different build environment:
|
||||
donttest="test_pep517_sdist_hash or test_pep518_sdist"
|
||||
%pytest -m "not ($donttestmark)" -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
@ -123,5 +124,6 @@ donttest="test_pep517_sdist_hash or test_pep518_sdist"
|
||||
%files %{python_files pyproject}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
@ -1,85 +0,0 @@
|
||||
From bc81cb1250ab4488fef55c081feccf6620e28144 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Greiner <code@bnavigator.de>
|
||||
Date: Sun, 9 Jun 2024 22:07:19 +0200
|
||||
Subject: [PATCH 1/3] Only replace rich if the color is defined
|
||||
|
||||
---
|
||||
src/scikit_build_core/_logging.py | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/scikit_build_core/_logging.py b/src/scikit_build_core/_logging.py
|
||||
index c449c74f..ad1433b7 100644
|
||||
--- a/src/scikit_build_core/_logging.py
|
||||
+++ b/src/scikit_build_core/_logging.py
|
||||
@@ -116,10 +116,16 @@ def colors() -> dict[str, str]:
|
||||
return _COLORS
|
||||
return _NO_COLORS
|
||||
|
||||
+def _sub_rich(m: re.Match) -> str:
|
||||
+ try:
|
||||
+ r = "".join(colors()[x] for x in m.group(1).split())
|
||||
+ except KeyError:
|
||||
+ r = m.group(0)
|
||||
+ return r
|
||||
|
||||
def _process_rich(msg: object) -> str:
|
||||
return ANY_ESCAPE.sub(
|
||||
- lambda m: "".join(colors()[x] for x in m.group(1).split()),
|
||||
+ _sub_rich,
|
||||
str(msg),
|
||||
)
|
||||
|
||||
|
||||
From aa97911dacb0460f9d6eef27240bee92894aa364 Mon Sep 17 00:00:00 2001
|
||||
From: "pre-commit-ci[bot]"
|
||||
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
||||
Date: Sun, 9 Jun 2024 20:11:51 +0000
|
||||
Subject: [PATCH 2/3] style: pre-commit fixes
|
||||
|
||||
---
|
||||
src/scikit_build_core/_logging.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/scikit_build_core/_logging.py b/src/scikit_build_core/_logging.py
|
||||
index ad1433b7..a824ac24 100644
|
||||
--- a/src/scikit_build_core/_logging.py
|
||||
+++ b/src/scikit_build_core/_logging.py
|
||||
@@ -116,6 +116,7 @@ def colors() -> dict[str, str]:
|
||||
return _COLORS
|
||||
return _NO_COLORS
|
||||
|
||||
+
|
||||
def _sub_rich(m: re.Match) -> str:
|
||||
try:
|
||||
r = "".join(colors()[x] for x in m.group(1).split())
|
||||
@@ -123,6 +124,7 @@ def _sub_rich(m: re.Match) -> str:
|
||||
r = m.group(0)
|
||||
return r
|
||||
|
||||
+
|
||||
def _process_rich(msg: object) -> str:
|
||||
return ANY_ESCAPE.sub(
|
||||
_sub_rich,
|
||||
|
||||
From bbbd406e90a7f3e001bf7c7df367e97af5cf32ba Mon Sep 17 00:00:00 2001
|
||||
From: Ben Greiner <code@bnavigator.de>
|
||||
Date: Sun, 9 Jun 2024 22:25:27 +0200
|
||||
Subject: [PATCH 3/3] Fix typing annotation
|
||||
|
||||
---
|
||||
src/scikit_build_core/_logging.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/scikit_build_core/_logging.py b/src/scikit_build_core/_logging.py
|
||||
index a824ac24..66957d32 100644
|
||||
--- a/src/scikit_build_core/_logging.py
|
||||
+++ b/src/scikit_build_core/_logging.py
|
||||
@@ -117,7 +117,7 @@ def colors() -> dict[str, str]:
|
||||
return _NO_COLORS
|
||||
|
||||
|
||||
-def _sub_rich(m: re.Match) -> str:
|
||||
+def _sub_rich(m: re.Match[Any]) -> str:
|
||||
try:
|
||||
r = "".join(colors()[x] for x in m.group(1).split())
|
||||
except KeyError:
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b1c3187bbf40fa0445e1c0562c87e9f5c17939a0df6b0141e5951dfebcb92d0e
|
||||
size 253285
|
3
scikit_build_core-0.11.0.tar.gz
Normal file
3
scikit_build_core-0.11.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:423d8b0885bf1942816c851f8ec7c1efc0a7ecad4f38ff43d5ba869a894b107b
|
||||
size 271991
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2a4cb119cc968fe87ae05582979657cc0e7be45655798446eabbe490e61ce072
|
||||
size 228404
|
Reference in New Issue
Block a user