python-maturin/python-maturin.spec
Mia Herkt bd590e8bf5 - Update to v0.13.5
* Fix resolving crate name bug
    gh#PyO3/maturin#1142
- Changes in v0.13.4:
  * Fix Cargo.toml in new project template
    gh#PyO3/maturin#1109
  * Fix maturin develop on Windows when using Python installed
    from msys2
    gh#PyO3/maturin#1112
  * Fix duplicated Cargo.toml of local dependencies in sdist
    gh#PyO3/maturin#1114
  * Add support for Cargo workspace dependencies inheritance
    gh#PyO3/maturin#1123
  * Add support for Cargo workspace metadata inheritance
    gh#PyO3/maturin#1131
  * Use goblin instead of shelling out to patchelf to get rpath
    gh#PyO3/maturin#1139
- Changes in v0.13.3:
  * Allow user to override default Emscripten settings
    gh#PyO3/maturin#1059
  * Enable --crate-type cdylib on Rust 1.64.0
    gh#PyO3/maturin#1060
  * Update MSRV to 1.59.0
    gh#PyO3/maturin#1071
  * Fix abi3 wheel build when no Python interpreters found
    gh#PyO3/maturin#1072
  * Add zig ar support
    gh#PyO3/maturin#1073
  * Fix sdist build for optional path dependencies
    gh#PyO3/maturin#1084

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-maturin?expand=0&rev=39
2022-09-29 18:42:55 +00:00

80 lines
2.5 KiB
RPMSpec

#
# spec file for package python-maturin
#
# Copyright (c) 2022 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/
#
Name: python-maturin
Version: 0.13.5
Release: 0
Summary: Rust/Python Interoperability
License: Apache-2.0 OR MIT
URL: https://github.com/PyO3/maturin
Source: https://files.pythonhosted.org/packages/source/m/maturin/maturin-%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools-rust >= 1.4.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11}
BuildRequires: %{python_module wheel >= 0.36.2}
BuildRequires: cargo-packaging
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
%if 0%{?python_version_nodots} < 311
Requires: python-tomli >= 1.1.0
%endif
%python_subpackages
%description
Build and publish crates with pyo3, rust-cpython and cffi bindings
as well as rust binaries as python packages.
This project is a zero-configuration replacement for
setuptools-rust milksnake. It supports building wheels for Python
3.6+, can upload them to PyPI and has basic PyPy support.
%prep
%autosetup -a1 -n maturin-%{version}
mkdir .cargo
cp %{SOURCE2} .cargo/config
sed -i '1{/env python/d}' maturin/__init__.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_clone -a %{buildroot}%{_bindir}/maturin
%post
%python_install_alternative maturin
%postun
%python_uninstall_alternative maturin
%files %{python_files}
%license license-apache license-mit
%doc Changelog.md Readme.md
%python_alternative %{_bindir}/maturin
%{python_sitearch}/maturin
%{python_sitearch}/maturin-%{version}*-info
%changelog