Update to 3.8.0

Fixes: rhbz#2140390
epel9^2
Tomáš Hrnčiar 2 years ago
parent a4eda2e18b
commit c7d76eaeca

1
.gitignore vendored

@ -17,3 +17,4 @@
/flit-3.4.0.tar.gz /flit-3.4.0.tar.gz
/flit-3.5.1.tar.gz /flit-3.5.1.tar.gz
/flit-3.7.1.tar.gz /flit-3.7.1.tar.gz
/flit-3.8.0.tar.gz

@ -4,8 +4,8 @@
%global srcname flit %global srcname flit
Name: python-%{srcname} Name: python-%{srcname}
Version: 3.7.1 Version: 3.8.0
Release: 5%{?dist} Release: 1%{?dist}
Summary: Simplified packaging of Python modules Summary: Simplified packaging of Python modules
# ./flit/log.py under ASL 2.0 license # ./flit/log.py under ASL 2.0 license
@ -23,9 +23,6 @@ BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros >= 0-40 BuildRequires: pyproject-rpm-macros >= 0-40
BuildRequires: python3-pip BuildRequires: python3-pip
# Runtime deps needed to build self
BuildRequires: python3-tomli
%if %{with tests} %if %{with tests}
# Runtime deps, others # Runtime deps, others
BuildRequires: python3-requests BuildRequires: python3-requests
@ -76,8 +73,6 @@ Recommends: python3-pygments
%package -n python3-%{srcname}-core %package -n python3-%{srcname}-core
Summary: PEP 517 build backend for packages using Flit Summary: PEP 517 build backend for packages using Flit
Conflicts: python3-%{srcname} < 2.1.0-2 Conflicts: python3-%{srcname} < 2.1.0-2
# We manually specify this, because it's bundled upstream and not in the metadata
Requires: python3-tomli
%description -n python3-%{srcname}-core %description -n python3-%{srcname}-core
This provides a PEP 517 build backend for packages using Flit. This provides a PEP 517 build backend for packages using Flit.
@ -88,13 +83,9 @@ at flit_core.buildapi.
%prep %prep
%autosetup -p1 -n %{srcname}-%{version} %autosetup -p1 -n %{srcname}-%{version}
# Remove vendored tomli that flit_core includes to solve the circular dependency. # Remove vendored tomli that flit_core includes to solve the circular dependency on older Pythons
# (flit_core requires tomli, but flit_core is needed to build tomli). # (flit_core requires tomli, but flit_core is needed to build tomli).
# We don't use this, as python3-tomli already has its own bootstrap bcond # We don't use this, as tomllib is a part of standard library since Python 3.11.
# to build without flit_core.
#
# flit's tests already require tomli, so we're pulling it in at buildtime anyways.
sed -i 's|from \.vendor import tomli|import tomli|' flit_core/flit_core/config.py
rm -rf flit_core/flit_core/vendor rm -rf flit_core/flit_core/vendor
%build %build
@ -145,6 +136,10 @@ export XDG_CACHE_HOME=$PWD/fake_cache
%changelog %changelog
* Thu Nov 10 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.8.0-1
- Update to 3.8.0
- Fixes: rhbz#2140390
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-5 * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

@ -1 +1 @@
SHA512 (flit-3.7.1.tar.gz) = e38162696a24a0f8d9a61f3364c2ada9c8024309b02138af66c53790e14f88bf285822ea85d6634e85f88d9712eaad039bb5dcbbd1ac1f87bce6b2790bd96d6f SHA512 (flit-3.8.0.tar.gz) = c4af79e1511e647303dc6b0913d8526586580db8d916aa7c4a52a9ebb281b375b6082e961ac8be05c0fc8ffdd8c3ec858fcba4e7faea25f465895288fa09c355

Loading…
Cancel
Save