forked from pool/python-setuptools-rust
Accepting request 1142459 from devel:languages:python
- fix dependencies (add tomli) - 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 longer compatible with it - Initial package (1.0.0) OBS-URL: https://build.opensuse.org/request/show/1142459 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-setuptools-rust?expand=0&rev=9
This commit is contained in:
commit
5ca627657e
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 14:14:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- fix dependencies (add tomli)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
@ -120,9 +138,9 @@ Fri Feb 4 22:05:19 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
Mon Jan 10 11:54:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- skip building for python 2.x, as the setuptools we have is no
|
||||
longer compatible with it
|
||||
longer compatible with it
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 27 13:25:03 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- Initial package (1.0.0)
|
||||
- Initial package (1.0.0)
|
||||
|
@ -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
|
||||
@ -32,7 +32,6 @@ BuildRequires: %{python_module pyparsing}
|
||||
BuildRequires: %{python_module semantic_version >= 2.8.2}
|
||||
BuildRequires: %{python_module setuptools >= 62.4}
|
||||
BuildRequires: %{python_module setuptools_scm >= 6.3.2}
|
||||
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: cargo
|
||||
BuildRequires: fdupes
|
||||
@ -41,7 +40,9 @@ BuildRequires: rust
|
||||
Requires: cargo
|
||||
Requires: python-semantic_version >= 2.8.2
|
||||
Requires: python-setuptools >= 62.4
|
||||
Requires: python-typing_extensions >= 3.7.4.3
|
||||
%if 0%{?python_version_nodots} < 311
|
||||
Requires: python-tomli >= 1.2.1
|
||||
%endif
|
||||
Requires: rust
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
@ -69,15 +70,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
|
||||
|
@ -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
BIN
setuptools-rust-1.8.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user