From 8d7f79b2551e7daf96eaec5f076842cdd0608761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 1 Mar 2024 17:00:32 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-setuptools-rust revision acfcb53e9dda1886186e7ce588f8e4b8 --- .gitattributes | 23 ++++++ python-setuptools-rust.changes | 146 +++++++++++++++++++++++++++++++++ python-setuptools-rust.spec | 81 ++++++++++++++++++ setuptools-rust-1.8.1.tar.gz | 3 + 4 files changed, 253 insertions(+) create mode 100644 .gitattributes create mode 100644 python-setuptools-rust.changes create mode 100644 python-setuptools-rust.spec create mode 100644 setuptools-rust-1.8.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-setuptools-rust.changes b/python-setuptools-rust.changes new file mode 100644 index 0000000..286ee2e --- /dev/null +++ b/python-setuptools-rust.changes @@ -0,0 +1,146 @@ +------------------------------------------------------------------- +Mon Jan 29 14:14:53 UTC 2024 - Dirk Müller + +- fix dependencies (add tomli) + +------------------------------------------------------------------- +Mon Jan 29 12:34:54 UTC 2024 - Adrian Schröter + +- 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 + +- update to 1.6.0: + * Prefer passing `--crate-type` option to cargo if "toolchain + >= 1.64". + * Fix a bug where rebuilding the library would cause any + running processes using it to segfault. #295 + * Fix `setup.cfg` format for compatibility with + "poetry==1.4.0". #319 + +------------------------------------------------------------------- +Fri Apr 21 12:33:53 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:44:45 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Jan 2 09:51:01 UTC 2023 - Dirk Müller + +- update to 1.5.2: + * Fix regression in `dylib` build artifacts not being found since 1.5.0. + * Fix regression in sdist missing examples and other supplementary files + since 1.5.0. #291 + * Fix regression in `get_lib_name` crashing since 1.5.0. #280 + * Fix regression in `Binding.Exec` builds with multiple executables not + finding built executables since 1.5.0. #283 + * Add support for extension modules built for wasm32-unknown-emscripten + with Pyodide. #244 + * Locate cdylib artifacts by handling messages from cargo instead of + searching target dir (fixes build on MSYS2). #267 + * No longer guess cross-compile environment using `HOST_GNU_TYPE` / + `BUILD_GNU_TYPE` sysconfig variables. #269 + * Fix RustBin build without wheel. #273 + * Fix RustBin setuptools install. #275 + +------------------------------------------------------------------- +Wed Jul 20 09:16:41 UTC 2022 - Ben Greiner + +- Fix requirements + * Don't need sphinx + * Needs rust and cargo + * Don't need nox; can't use it in obs as it wants to install + wheels. +- Fix tests: + * Plain pytest test suite without is rudimentary + * At least build the hello-world example +- Use PEP517 + +------------------------------------------------------------------- +Mon Jul 18 07:35:46 UTC 2022 - Matej Cepl + +- Deduplicate files in python_sitelib. + +------------------------------------------------------------------- +Sat Jul 16 15:56:02 UTC 2022 - Arun Persaud + +- specfile: + * update setuptools requirement to 62.4 + * require pyparsing + * be mor specific in %files section + * use pytest + +- update to version 1.4.1: + * Fixed + + Fix crash when checking Rust version. #263 + +- changes from version 1.4.0: + * Packaging + + Increase minimum setuptools version to 62.4. #246 + * Added + + Add cargo_manifest_args to support locked, frozen and offline + builds. #234 + + Add RustBin for packaging binaries in scripts data + directory. #248 + * Changed + + Exec binding RustExtension with script=True is deprecated in + favor of RustBin. #248 + + Errors while calling cargo metadata are now reported back to the + user #254 + + quiet option will now suppress output of cargo metadata. #256 + + setuptools-rust will now match cargo behavior of not setting + --target when the selected target is the rust host. #258 + + Deprecate native option of RustExtension. #258 + * Fixed + + If the sysconfig for BLDSHARED has no flags, setuptools-rust + won't crash anymore. #241 + +------------------------------------------------------------------- +Sun May 15 19:16:43 UTC 2022 - Dirk Müller + +- update to 1.3.0: + * Increase minimum `setuptools` version to 58. + * Fix crash when `python-distutils-extra` linux package is installed. + * Fix sdist built with vendored dependencies on Windows having incorrect cargo config. + * Drop support for Python 3.6. + +------------------------------------------------------------------- +Fri Feb 4 22:05:19 UTC 2022 - Dirk Müller + +- update to 1.1.2: + * Removed dependency on `tomli` to simplify installation + * Improve error messages on invalid inputs to `rust_extensions` keyword + * Fix regression from `setuptools-rust` 1.1.0 which broke builds for the + `x86_64-unknown-linux-musl` targeta + * Fix `--target` command line option being unable to take a value + * Fix regression from `setuptools-rust` 1.1.0 which incorrectly converted + library extension suffixes to the "abi3" suffix when `py_limited_api` was + unspecified Add support for cross-compiling using + * [`cross`](https://github.com/rust-embedded/cross) + * Fix incompatibility with Python 3.6.0 using default values for NamedTuple classes + * Stop forcing the `msvc` Rust toolchain for Windows environments using the + `gnu` toolchain + +------------------------------------------------------------------- +Mon Jan 10 11:54:35 UTC 2022 - Dirk Müller + +- skip building for python 2.x, as the setuptools we have is no + longer compatible with it + +------------------------------------------------------------------- +Sat Nov 27 13:25:03 UTC 2021 - Dirk Müller + +- Initial package (1.0.0) diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec new file mode 100644 index 0000000..3e28d14 --- /dev/null +++ b/python-setuptools-rust.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-setuptools-rust +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-setuptools-rust +Version: 1.8.1 +Release: 0 +Summary: Setuptools plugin for Rust extensions +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/PyO3/setuptools-rust +Source: https://files.pythonhosted.org/packages/source/s/setuptools-rust/setuptools-rust-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +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 wheel} +BuildRequires: cargo +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: rust +Requires: cargo +Requires: python-semantic_version >= 2.8.2 +Requires: python-setuptools >= 62.4 +%if 0%{?python_version_nodots} < 311 +Requires: python-tomli >= 1.2.1 +%endif +Requires: rust +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +setuptools-rust is a plugin for setuptools to build Rust Python extensions +implemented with PyO3 or rust-cpython. + +Compile and distribute Python extensions written in Rust as easily as if they +were written in C. + +%prep +%setup -q -n setuptools-rust-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +# network / crates.io access +%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 +%doc README.md +%{python_sitelib}/setuptools_rust-%{version}*-info +%{python_sitelib}/setuptools_rust + +%changelog diff --git a/setuptools-rust-1.8.1.tar.gz b/setuptools-rust-1.8.1.tar.gz new file mode 100644 index 0000000..d21bb18 --- /dev/null +++ b/setuptools-rust-1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94b1dd5d5308b3138d5b933c3a2b55e6d6927d1a22632e509fcea9ddd0f7e486 +size 311455