Update to 0.12.0 (#1936679)

Run tomlgen example as test case
This commit is contained in:
Christian Heimes 2021-03-09 11:09:03 +01:00
parent 1182f8f185
commit 37bb6e82a6
3 changed files with 26 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/setuptools-rust-0.11.6.tar.gz /setuptools-rust-0.11.6.tar.gz
/setuptools-rust-0.12.0.tar.gz

View File

@ -1,6 +1,12 @@
%if 0%{?rhel}
%bcond_with tests
%else
%bcond_without tests
%endif
Name: python-setuptools-rust Name: python-setuptools-rust
Version: 0.11.6 Version: 0.12.0
Release: 4%{?dist} Release: 1%{?dist}
Summary: Setuptools Rust extension plugin Summary: Setuptools Rust extension plugin
License: MIT License: MIT
@ -21,6 +27,9 @@ BuildRequires: rust-packaging >= 1.45
# RHEL has rust-toolset and neither setuptools-scm nor wheel # RHEL has rust-toolset and neither setuptools-scm nor wheel
BuildRequires: rust-toolset >= 1.45 BuildRequires: rust-toolset >= 1.45
%endif %endif
%if %{with tests}
BuildRequires: rust-pyo3+default-devel
%endif
%description %description
Setuptools helpers for Rust Python extensions. Compile and distribute Python Setuptools helpers for Rust Python extensions. Compile and distribute Python
@ -67,6 +76,15 @@ EOF
PYTHONPATH=%{buildroot}%{python3_sitelib} \ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{__python3} -c "from setuptools_rust import RustExtension, version" %{__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 %files -n python3-setuptools-rust
%doc README.md CHANGELOG.md %doc README.md CHANGELOG.md
%license LICENSE %license LICENSE
@ -74,6 +92,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/
%changelog %changelog
* Tue Mar 09 2021 Christian Heimes <cheimes@redhat.com> - 0.12.0-1
- Update to 0.12.0 (#1936679)
- Run tomlgen example as test case
* Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-4 * Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-4
- Fix RHEL build: remove wheel build requirements, use rust-toolset - Fix RHEL build: remove wheel build requirements, use rust-toolset

View File

@ -1 +1 @@
SHA512 (setuptools-rust-0.11.6.tar.gz) = 5ebc3944d7fb2fb8959c7fc7a897b7e658169bc07f8f29d6acd4a4710009c9c213005e3e846c30b565f743aff72f22582474b5ece9c4e58e43081d60c140a7cb SHA512 (setuptools-rust-0.12.0.tar.gz) = d2d804c2590d0acd3ad55abab749502719be53e00fc54f4b7fded74dbadfa1b72bbd52d19cd9d479d254f11aee0c13c32af3e322c99eb95ae76df0e813ece6d9