From e735046955fd17a333935275490346faa465dc24 Mon Sep 17 00:00:00 2001 From: zoedong Date: Mon, 25 Sep 2023 15:44:55 +0800 Subject: [PATCH] Bump version to 1.7.0 --- python-setuptools-rust.spec | 36 ++++++++++++++++++++++-------------- sources | 2 +- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index ed5cebc..9cc3933 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -2,8 +2,8 @@ Summary: Setuptools Rust extension plugin Name: python-setuptools-rust -Version: 1.1.2 -Release: 5%{?dist} +Version: 1.7.0 +Release: 1%{?dist} License: MIT URL: https://github.com/PyO3/setuptools-rust Source0: %{pypi_source setuptools-rust} @@ -31,31 +31,39 @@ Rust as easily as if they were written in C. %prep %autosetup -n setuptools-rust-%{version} rm -rf setuptools-rust.egg-info +%cargo_prep +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install +%pyproject_save_files setuptools_rust -%check -PYTHONPATH=%{buildroot}%{python3_sitelib} \ - %{__python3} -c "from setuptools_rust import RustExtension, version" +%check %if %{with tests} -cd examples/hello-world -%cargo_prep -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py build -cd ../.. +%pyproject_check_import +%pytest tests/ setuptools_rust/ --import-mode importlib -k "not test_adjusted_local_rust_target_windows_msvc \ + and not test_get_lib_name_namespace_package \ + and not test_metadata_contents \ + and not test_metadata_cargo_log" %endif -%files -n python3-setuptools-rust + +%files -n python3-setuptools-rust -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md -%{python3_sitelib}/setuptools_rust/ -%{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ + %changelog +* Mon Sep 25 2023 Miaojun Dong - 1.7.0-1 +- Bump version to 1.7.0 + * Tue Sep 19 2023 OpenCloudOS Release Engineering - 1.1.2-5 - Rebuilt for python 3.11 diff --git a/sources b/sources index 51e3b28..6859e22 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (setuptools-rust-1.1.2.tar.gz) = 2118b9597de9fce08f51066237d693a48a0e2cc2d913a3b439a0d7a52281184a3d28e131f41cb691a7626e1d156e91a8a86c3b68b76ace8754fded911c51fa05 +SHA512 (setuptools-rust-1.7.0.tar.gz) = 19e77be4856f6517155175272e4b1ec1eca7a75f73a94ec2e9c26d6b1fe217a7dda3ee6454a30aa477dedea15d7eb723d0f8753700e2d8dec303d58b03712c6e -- Gitee