python-maturin/python-maturin.spec
Matej Cepl 97726581fb Accepting request 1116521 from home:bnavigator:branches:devel:languages:python
- Update to 1.3.0
  * Refactor Cargo sdist generator to avoid rewriting local
    dependencies in gh#PyO3/maturin#1741
  * Added --pip-path argument to develop command in
    gh#PyO3/maturin#1753
  * Ignore sdist output files when building sdist in
    gh#PyO3/maturin#1756
  * Use python.exe by default in build command on Windows in
    gh#PyO3/maturin#1757
  * Don't require uniffi-bindgen to be installed for uniffi
    bindings in gh#PyO3/maturin#1762
  * Fix platform tag for graalpy in gh#PyO3/maturin#1773
  * Always set minor version to 0 when major version >= 11 for
    macOS in gh#PyO3/maturin#1778
  * Warning about incorrect maturin version pyproject.toml
    [build-system] requires in gh#PyO3/maturin#1793
- Release 1.2.3 - 2023-08-17
  * Fix sdist build failure with workspace path dependencies by
    HerringtonDarkholme in gh#PyO3/maturin#1739
- Release 1.2.2 - 2023-08-14
  * Fix non interactive mode check when username/password was
    supplied from cli in gh#PyO3/maturin#1737
- Release 1.2.1 - 2023-08-14
  * Add non-interactive mode to upload command in
    gh#PyO3/maturin#1722
  * Fix link-native-libraries check for emscripten target in
    gh#PyO3/maturin#1724
  * Add support for ALL_PROXY to upload command in
    gh#PyO3/maturin#1727
  * Handle renamed Rust dependency in sdist in gh#PyO3/maturin#1728
  * Fix invalid TOML when rewriting workspace inherited
    dependencies in gh#PyO3/maturin#1733
- Release 1.2.0 - 2023-08-06
  * Add basic support for implicit namespaces gh#PyO3/maturin#1645
  * Add Linux mips64 and mips architecture support in
    gh#PyO3/maturin#1712
  * Add x86_64h-apple-darwin target support in gh#PyO3/maturin#1717

OBS-URL: https://build.opensuse.org/request/show/1116521
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-maturin?expand=0&rev=76
2023-10-09 20:28:55 +00:00

82 lines
2.5 KiB
RPMSpec

#
# spec file for package python-maturin
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-maturin
Version: 1.3.0
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 -p1 -n maturin-%{version}
mkdir .cargo
cp %{SOURCE2} .cargo/config
sed -i '1{/env python/d}' maturin/__init__.py
sed -i 's/--locked/--offline/' setup.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