81 lines
2.4 KiB
RPMSpec
81 lines
2.4 KiB
RPMSpec
%global pypi_name build
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.0.3
|
|
Release: 2
|
|
Summary: A simple, correct PEP517 package builder
|
|
License: MIT
|
|
URL: https://github.com/pypa/build
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
# https://github.com/pypa/build/pull/722
|
|
Patch0: Support-setuptools-v69.0.3+.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-editables
|
|
BuildRequires: python3-hatch-vcs
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-virtualenv
|
|
BuildRequires: python3-pytest-cov
|
|
BuildRequires: python3-pytest-mock
|
|
BuildRequires: python3-pytest-rerunfailures
|
|
BuildRequires: python3-pytest-xdist
|
|
BuildRequires: python3-flit-core
|
|
BuildRequires: python3-pyproject-hooks
|
|
BuildRequires: python3-tox-current-env
|
|
|
|
%description
|
|
A simple, correct PEP517 package builder.
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
Provides: python-%{pypi_name} = %{version}-%{release}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
A simple, correct PEP517 package builder.
|
|
|
|
%pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
sed -i '/sys\.platform\.startswith('\''win'\''):/,/build\.ProjectBuilder(test_no_permission)/ s/^/# /' tests/test_projectbuilder.py
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%check
|
|
# The skipped tests require internet
|
|
%pytest -- -k "not (test_build_package or \
|
|
test_build_package_via_sdist or \
|
|
test_output[via-sdist-isolation] or \
|
|
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}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/pyproject-build
|
|
%{python3_sitelib}/%{pypi_name}
|
|
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
|
|
|
%changelog
|
|
* Mon Apr 08 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.3-2
|
|
- Support setuptools v69.0.3+
|
|
|
|
* Mon Nov 20 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.3-1
|
|
- Update package to version 1.0.3
|
|
|
|
* Sun May 28 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.10.0-1
|
|
- Initial package 0.10.0
|