Accepting request 1142260 from system:homeautomation:home-assistant:unstable

- update to 1.8.1:
  * Remove direct imports from distutils
  * Include py.typed when packaging to denote that setuptools-rust includes type hints
  * Add support for pyproject.toml configuration using [tool.setuptools-rust] options
  * Fix plat_name handling in the case bdist_wheel.plat_name is set via configuration file
  * Drop support for Python 3.7
  * Remove direct imports from pkg_resources.
  * Add support for setting a custom cargo profile with the SETUPTOOLS_RUST_CARGO_PROFILE environment variable
- drop installation of example hello-world as it needs a cargo now

OBS-URL: https://build.opensuse.org/request/show/1142260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-rust?expand=0&rev=22
This commit is contained in:
Dirk Mueller 2024-01-29 14:08:40 +00:00 committed by Git OBS Bridge
parent a1b731e720
commit 53d0a4514f
4 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Jan 29 12:34:54 UTC 2024 - Adrian Schröter <adrian@suse.de>
- update to 1.8.1:
* Remove direct imports from distutils
* Include py.typed when packaging to denote that setuptools-rust includes type hints
* Add support for pyproject.toml configuration using [tool.setuptools-rust] options
* Fix plat_name handling in the case bdist_wheel.plat_name is set via configuration file
* Drop support for Python 3.7
* Remove direct imports from pkg_resources.
* Add support for setting a custom cargo profile with the SETUPTOOLS_RUST_CARGO_PROFILE environment variable
- drop installation of example hello-world as it needs a cargo now
-------------------------------------------------------------------
Thu May 4 19:54:42 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-setuptools-rust
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
%global skip_python2 1
%{?sle15_python_module_pythons}
Name: python-setuptools-rust
Version: 1.6.0
Version: 1.8.1
Release: 0
Summary: Setuptools plugin for Rust extensions
License: BSD-3-Clause
@ -69,15 +69,7 @@ were written in C.
%check
export LANG=en_US.UTF-8
# network / crates.io access
%pytest tests/ -k "not test_get_lib_name_namespace_package"
pushd examples/hello-world
%{python_expand # See noxfile.py
# hello-world is the only example which does not need extra rust packages (via cargo_vendor)
export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -m pip install --no-build-isolation --target=$PWD/build/exampleinstall/ --no-deps --no-index .
$PWD/build/exampleinstall/bin/hello-world
}
popd
%pytest tests/ -k "not test_get_lib_name_namespace_package and not test_metadata_contents and not test_metadata_cargo_log"
%files %{python_files}
%license LICENSE

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c86e734deac330597998bfbc08da45187e6b27837e23bd91eadb320732392262
size 296421

BIN
setuptools-rust-1.8.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.