|
|
@ -1,5 +1,5 @@
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
## (rpmautospec version 0.7.1)
|
|
|
|
## (rpmautospec version 0.3.5)
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
release_number = 6;
|
|
|
|
release_number = 6;
|
|
|
@ -8,28 +8,23 @@
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
|
|
# uv has many build dependencies, and will take some time to be available for
|
|
|
|
|
|
|
|
# new EPEL major versions.
|
|
|
|
|
|
|
|
%bcond uv %{undefined rhel}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global pypi_name build
|
|
|
|
%global pypi_name build
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 1.2.1
|
|
|
|
Version: 0.10.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: A simple, correct PEP517 package builder
|
|
|
|
Summary: A simple, correct PEP517 package builder
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/pypa/build
|
|
|
|
URL: https://github.com/pypa/build
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# Upstream patch for fixing tests with pip 23
|
|
|
|
# downstream-only
|
|
|
|
Patch: https://github.com/pypa/build/pull/589.patch
|
|
|
|
Patch: 0001-fedora-disable-some-build-requirements.patch
|
|
|
|
# Filter out malicious files when extracting tar archives
|
|
|
|
# https://github.com/pypa/build/pull/807
|
|
|
|
# to avoid DeprecationWarnings on Python 3.12+
|
|
|
|
Patch: 0002-tests-optional-uv.patch
|
|
|
|
# The patch was inspired by this PR:
|
|
|
|
# https://github.com/pypa/build/pull/808
|
|
|
|
# https://github.com/pypa/build/pull/609
|
|
|
|
Patch: 0003-tests-mark-more-network-tests.patch
|
|
|
|
Patch: filter-out-malicious-files-when-extracting-tar-archi.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
@ -46,15 +41,19 @@ Summary: %{summary}
|
|
|
|
A simple, correct PEP517 package builder.
|
|
|
|
A simple, correct PEP517 package builder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv %{?with_uv:uv}
|
|
|
|
%pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
# coverage is discouraged in Python packages
|
|
|
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
|
|
|
|
|
|
|
sed -Ei '/\bpytest-cov\b/d' pyproject.toml
|
|
|
|
|
|
|
|
# relax pytest minimum version to run tests on RHEL 9
|
|
|
|
|
|
|
|
sed -Ei '/"pytest >=/ s/6\.2\.4/6.2.2/' pyproject.toml
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires -x test,virtualenv%{?with_uv:,uv}
|
|
|
|
%pyproject_buildrequires -x test,virtualenv
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
%pyproject_wheel
|
|
|
@ -64,11 +63,17 @@ A simple, correct PEP517 package builder.
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# Upstream has integration tests that can be run with the --run-integration
|
|
|
|
# The skipped tests require internet
|
|
|
|
# flag, but currently that only includes one network test and one test that is
|
|
|
|
%pytest -k "not (test_build_package or \
|
|
|
|
# xfail when flit-core is installed (which it will be during our package
|
|
|
|
test_build_package_via_sdist or \
|
|
|
|
# build), so including that flag doesn't run any additional tests.
|
|
|
|
test_output[via-sdist-isolation] or \
|
|
|
|
%pytest -v -m "not network"
|
|
|
|
test_output[wheel-direct-isolation] or \
|
|
|
|
|
|
|
|
test_wheel_metadata[True] or \
|
|
|
|
|
|
|
|
test_wheel_metadata_isolation or \
|
|
|
|
|
|
|
|
test_with_get_requires or \
|
|
|
|
|
|
|
|
test_build_sdist or \
|
|
|
|
|
|
|
|
test_build_wheel[from_sdist] or \
|
|
|
|
|
|
|
|
test_build_wheel[direct])"
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
@ -76,52 +81,14 @@ A simple, correct PEP517 package builder.
|
|
|
|
%{_bindir}/pyproject-build
|
|
|
|
%{_bindir}/pyproject-build
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.2.1-6
|
|
|
|
* Fri Jan 17 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.10.0-6
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
- Rebuilt for MSVSphere 9.5
|
|
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
|
|
|
* Fri Aug 30 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.2.1-6
|
|
|
|
|
|
|
|
- Reduce build requirements
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.2.1-5
|
|
|
|
|
|
|
|
- Add a metapackage for the uv extra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.2.1-4
|
|
|
|
|
|
|
|
- Enable tests that require uv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.2.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 28 2024 Lumir Balhar <lbalhar@redhat.com> - 1.2.1-1
|
|
|
|
|
|
|
|
- Update to 1.2.1 (rhbz#2271978)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 17 2024 Charalampos Stratakis <cstratak@redhat.com> - 1.1.1-1
|
|
|
|
|
|
|
|
- Update to 1.1.1
|
|
|
|
|
|
|
|
- Resolves: rhbz#2267099
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 23 2024 Karolina Surma <ksurma@redhat.com> - 1.0.3-3
|
|
|
|
|
|
|
|
- Fix build with setuptools v69.0.3+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2023 Lumir Balhar <lbalhar@redhat.com> - 1.0.3-1
|
|
|
|
|
|
|
|
- Update to 1.0.3 (rhbz#2236861)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.10.0-7
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 15 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.10.0-6
|
|
|
|
* Wed Nov 15 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.10.0-6
|
|
|
|
- Avoid fatal DeprecationWarnings on Python 3.12+
|
|
|
|
- Avoid fatal DeprecationWarnings on Python 3.12+
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.10.0-5
|
|
|
|
* Tue Nov 14 2023 Carl George <carlwgeorge@fedoraproject.org> - 0.10.0-5
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
- Fix EPEL 9 compatibility
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 06 2023 Miro Hrončok <miro@hroncok.cz> - 0.10.0-4
|
|
|
|
* Tue Jun 06 2023 Miro Hrončok <miro@hroncok.cz> - 0.10.0-4
|
|
|
|
- Do not BuildRequire pytest-cov, it is discouraged and was not needed
|
|
|
|
- Do not BuildRequire pytest-cov, it is discouraged and was not needed
|
|
|
@ -180,4 +147,3 @@ Resolves: rhbz#1989297
|
|
|
|
* Thu Jun 24 2021 Lumír Balhar <lbalhar@redhat.com> - 0.5.1-1
|
|
|
|
* Thu Jun 24 2021 Lumír Balhar <lbalhar@redhat.com> - 0.5.1-1
|
|
|
|
- Initial package.
|
|
|
|
- Initial package.
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|
|
|
|