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>
|
Thu May 4 19:54:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-setuptools-rust
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,7 +19,7 @@
|
|||||||
%global skip_python2 1
|
%global skip_python2 1
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-setuptools-rust
|
Name: python-setuptools-rust
|
||||||
Version: 1.6.0
|
Version: 1.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Setuptools plugin for Rust extensions
|
Summary: Setuptools plugin for Rust extensions
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -32,7 +32,6 @@ BuildRequires: %{python_module pyparsing}
|
|||||||
BuildRequires: %{python_module semantic_version >= 2.8.2}
|
BuildRequires: %{python_module semantic_version >= 2.8.2}
|
||||||
BuildRequires: %{python_module setuptools >= 62.4}
|
BuildRequires: %{python_module setuptools >= 62.4}
|
||||||
BuildRequires: %{python_module setuptools_scm >= 6.3.2}
|
BuildRequires: %{python_module setuptools_scm >= 6.3.2}
|
||||||
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
|
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -41,7 +40,9 @@ BuildRequires: rust
|
|||||||
Requires: cargo
|
Requires: cargo
|
||||||
Requires: python-semantic_version >= 2.8.2
|
Requires: python-semantic_version >= 2.8.2
|
||||||
Requires: python-setuptools >= 62.4
|
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
|
Requires: rust
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@ -69,15 +70,7 @@ were written in C.
|
|||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
# network / crates.io access
|
# network / crates.io access
|
||||||
%pytest tests/ -k "not test_get_lib_name_namespace_package"
|
%pytest tests/ -k "not test_get_lib_name_namespace_package and not test_metadata_contents and not test_metadata_cargo_log"
|
||||||
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
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%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