1
- # Testing dependencies not satisfied on epel
2
- # build, cattrs, hatch-fancy-pypi-readme, pytest-subprocess
3
- %if 0%{?el10 }
4
- %bcond_with tests
5
- %else
6
- %bcond_without tests
7
- %endif
8
-
9
1
%global debug_package %{nil }
10
2
11
3
Name: python-scikit-build-core
@@ -37,32 +29,12 @@ A next generation Python CMake adapter and Python API for plugins
37
29
%package -n python3-scikit-build-core
38
30
Summary: %{summary }
39
31
Requires: cmake
40
- Recommends: (ninja-build or make)
41
- Recommends: python3-scikit-build-core+pyproject = %{version }-%{release }
42
- Suggests: ninja-build
43
- Suggests: gcc
44
- Provides: bundled(python3dist(pyproject-metadata))
32
+ Requires: ninja-build
45
33
BuildArch: noarch
46
- %description -n python3-scikit-build-core %_description
47
-
48
34
49
- # Add %%pyproject_extras_subpkg results manually because BuildArch: noarch is not injected
50
- # https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/174
51
- # %%pyproject_extras_subpkg -n python3-scikit-build-core pyproject
35
+ Obsoletes: python3-scikit-build-core+pyproject < 0.10.7-3
52
36
53
- %package -n python3-scikit-build-core+pyproject
54
- Summary: Metapackage for python3-scikit-build-core: pyproject extras
55
- Requires: python3-scikit-build-core = %{?epoch:%{epoch }:}%{version }-%{release }
56
- BuildArch: noarch
57
- # Deprecated empty extras package
58
- # Note: Cannot use Obsoletes + Provides here. python3dist() does not seem to be picked up
59
- Provides: deprecated()
60
- %description -n python3-scikit-build-core+pyproject
61
- This is a metapackage bringing in pyproject extras requires for
62
- python3-scikit-build-core.
63
- It makes sure the dependencies are installed.
64
-
65
- %files -n python3-scikit-build-core+pyproject -f %{_pyproject_ghost_distinfo }
37
+ %description -n python3-scikit-build-core %_description
66
38
67
39
68
40
%prep
@@ -72,7 +44,7 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
72
44
73
45
74
46
%generate_buildrequires
75
- %pyproject_buildrequires %{?with_tests: -x test,test-meta,test-numpy}
47
+ %pyproject_buildrequires -x test,test-meta,test-numpy
76
48
77
49
78
50
%build
@@ -86,10 +58,8 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
86
58
87
59
%check
88
60
%pyproject_check_import
89
- %if %{with tests }
90
61
%pytest \
91
62
-m " not network"
92
- %endif
93
63
94
64
95
65
%files -n python3-scikit-build-core -f %{pyproject_files }
0 commit comments