Skip to content

Commit cb915e5

Browse files
committed
Disable hatch/trove classifier check on epel10
Signed-off-by: Cristian Le <[email protected]>
1 parent 269bfbb commit cb915e5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.distro/python-scikit-build-core.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
%global debug_package %{nil}
22

3+
# On epel python hatch/trove classifier check may fail because of old package
4+
# Fedora checks should be sufficient though.
5+
%bcond no_classifier_check 0%{?rhel}
6+
37
Name: python-scikit-build-core
48
Version: 0.0.0
59
Release: %autorelease
@@ -46,10 +50,16 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
4650

4751

4852
%generate_buildrequires
53+
%if %{with no_classifier_check}
54+
export HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
55+
%endif
4956
%pyproject_buildrequires -x test,test-meta,test-numpy
5057

5158

5259
%build
60+
%if %{with no_classifier_check}
61+
export HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
62+
%endif
5363
%pyproject_wheel
5464

5565

0 commit comments

Comments
 (0)