diff --git a/.gitignore b/.gitignore index 3975b20..4617168 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /setuptools-rust-0.11.6.tar.gz +/setuptools-rust-0.12.0.tar.gz diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index 0f997a5..a34cf4e 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.0 +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,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ %changelog +* 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..47f3cec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (setuptools-rust-0.11.6.tar.gz) = 5ebc3944d7fb2fb8959c7fc7a897b7e658169bc07f8f29d6acd4a4710009c9c213005e3e846c30b565f743aff72f22582474b5ece9c4e58e43081d60c140a7cb +SHA512 (setuptools-rust-0.12.0.tar.gz) = d2d804c2590d0acd3ad55abab749502719be53e00fc54f4b7fded74dbadfa1b72bbd52d19cd9d479d254f11aee0c13c32af3e322c99eb95ae76df0e813ece6d9