2024-01-05 16:19:51 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-poetry
|
2024-01-05 16:19:52 +01:00
|
|
|
Version: 1.7.0
|
2024-01-05 16:19:51 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Python dependency management and packaging made easy
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://python-poetry.org/
|
|
|
|
Source: https://pypi.debian.net/poetry/poetry-%{version}.tar.gz
|
|
|
|
Patch0: python-poetry-1.6.1-python-build-1.0.3.patch
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(build)
|
|
|
|
BuildRequires: python3.11dist(cachecontrol)
|
|
|
|
BuildRequires: python3.11dist(cleo)
|
|
|
|
BuildRequires: python3.11dist(crashtest)
|
|
|
|
BuildRequires: python3.11dist(dulwich)
|
2024-01-05 16:19:52 +01:00
|
|
|
BuildRequires: python3.11dist(fastjsonschema)
|
2024-01-05 16:19:51 +01:00
|
|
|
BuildRequires: python3.11dist(installer)
|
|
|
|
BuildRequires: python3.11dist(keyring)
|
|
|
|
BuildRequires: python3.11dist(packaging)
|
|
|
|
BuildRequires: python3.11dist(pexpect)
|
|
|
|
BuildRequires: python3.11dist(pkginfo)
|
|
|
|
BuildRequires: python3.11dist(platformdirs)
|
|
|
|
BuildRequires: python3.11dist(poetry-core)
|
|
|
|
BuildRequires: python3.11dist(poetry-plugin-export)
|
|
|
|
BuildRequires: python3.11dist(pyproject-hooks)
|
|
|
|
BuildRequires: python3.11dist(requests)
|
|
|
|
BuildRequires: python3.11dist(requests-toolbelt)
|
|
|
|
BuildRequires: python3.11dist(shellingham)
|
|
|
|
BuildRequires: python3.11dist(tomlkit)
|
|
|
|
BuildRequires: python3.11dist(trove-classifiers)
|
|
|
|
BuildRequires: python3.11dist(virtualenv)
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n poetry-%{version}
|
2024-01-05 16:19:52 +01:00
|
|
|
#%patch 0 -p1 -b .python-build-1.0.3
|
2024-01-05 16:19:51 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
|
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
|
|
## Rename any conflicting file outside of python site packages tree
|
|
|
|
#for f in %{_bindir}/pdm; do
|
|
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
#done
|
|
|
|
#%endif
|
|
|
|
|
|
|
|
%files %{?pyappend}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/poetry
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:19:52 +01:00
|
|
|
* Fri Nov 10 2023 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:19:51 +01:00
|
|
|
* Sat Sep 30 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.1-1mamba
|
|
|
|
- package created using the webbuild interface
|