From 89f9f221dc07afc4d96e489d61867c8f660e4b59 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Mon, 15 Mar 2021 19:06:29 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-setuptools-rust.git#8ced8f9ce0e5e2aed03524100e6d67ad1650eaf6 --- .gitignore | 2 ++ python-setuptools-rust.spec | 29 +++++++++++++++++++++++++++-- sources | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3975b20..7e6e4e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /setuptools-rust-0.11.6.tar.gz +/setuptools-rust-0.12.0.tar.gz +/setuptools-rust-0.12.1.tar.gz diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index 0f997a5..5eeb6e2 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -1,6 +1,12 @@ +%if 0%{?rhel} +%bcond_with tests +%else +%bcond_without tests +%endif + Name: python-setuptools-rust -Version: 0.11.6 -Release: 4%{?dist} +Version: 0.12.1 +Release: 1%{?dist} Summary: Setuptools Rust extension plugin License: MIT @@ -21,6 +27,9 @@ BuildRequires: rust-packaging >= 1.45 # RHEL has rust-toolset and neither setuptools-scm nor wheel BuildRequires: rust-toolset >= 1.45 %endif +%if %{with tests} +BuildRequires: rust-pyo3+default-devel +%endif %description Setuptools helpers for Rust Python extensions. Compile and distribute Python @@ -67,6 +76,15 @@ EOF PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{__python3} -c "from setuptools_rust import RustExtension, version" +%if %{with tests} +cd examples/tomlgen +%cargo_prep +sed -i 's/"0\.[0-9.]*"/"^0"/g' setup.cfg +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py build +cd ../.. +%endif + + %files -n python3-setuptools-rust %doc README.md CHANGELOG.md %license LICENSE @@ -74,6 +92,13 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ %changelog +* Thu Mar 11 2021 Christian Heimes - 0.12.1-1 +- Update to 0.12.1 + +* Tue Mar 09 2021 Christian Heimes - 0.12.0-1 +- Update to 0.12.0 (#1936679) +- Run tomlgen example as test case + * Thu Feb 11 2021 Christian Heimes - 0.11.6-4 - Fix RHEL build: remove wheel build requirements, use rust-toolset diff --git a/sources b/sources index f8d5bd3..c9f97c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (setuptools-rust-0.11.6.tar.gz) = 5ebc3944d7fb2fb8959c7fc7a897b7e658169bc07f8f29d6acd4a4710009c9c213005e3e846c30b565f743aff72f22582474b5ece9c4e58e43081d60c140a7cb +SHA512 (setuptools-rust-0.12.1.tar.gz) = 02dc2e2c91533ae847cfe7be0e7b0816fb376405f979c9767ba415c0223aa57429f1c038eb6c06ac9ec3950738b55026fbc6d4c8a8d938cf58a975d40d84cdb8