%global core_version 1.0.0
%global common_description %{expand:
Poetry helps you declare, manage and install dependencies of Python
projects, ensuring you have the right stack everywhere.}
Name: poetry
Summary: Python dependency management and packaging made easy
Version: 1.1.0
Release: 1%{?dist}
License: MIT
URL: https://poetry.eustace.io/
Source0: %{pypi_source poetry %{version}}
Source1: %{pypi_source poetry-core %{core_version}}
# merge poetry.core package back into poetry
Patch0: 00-merge-core-into-poetry.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
Requires: python3-poetry = %{version}-%{release}
%description %{common_description}
%package -n python3-poetry
Summary: %{summary}
# this is an optional dependency of CacheControl, but it's required by poetry
Requires: python3dist(lockfile)
%{?python_provide:%python_provide python3-poetry}
%description -n python3-poetry %{common_description}
%prep
# unpack poetry from poetry pypi package
%setup -q
# merge setup.py from poetry.core into poetry
%patch0 -p1
# unpack poetry.core from poetry-core pypi package
# and merge back into the poetry package
mkdir __core && pushd __core
tar -xzf %{SOURCE1}
mv poetry-core-%{core_version}/poetry/core ../poetry/core
mv poetry-core-%{core_version}/LICENSE ../LICENSE-core
mv poetry-core-%{core_version}/README.md ../README-core.md
popd && rm -r __core
# remove vendored dependencies
rm -r poetry/_vendor
rm -r poetry/core/_vendor
%build
%py3_build
%install
%py3_install
%files
%license LICENSE LICENSE-core
%doc README.md README-core.md
%{_bindir}/poetry
%files -n python3-poetry
%license LICENSE LICENSE-core
%doc README.md README-core.md
%{python3_sitelib}/poetry/
%{python3_sitelib}/poetry-%{version}-py%{python3_version}.egg-info/
%changelog
* Sat Oct 03 2020 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1
- Update to version 1.1.0.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 22 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.10-1
- Update to version 1.0.10.
* Sat Jul 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.9-1
- Update to version 1.0.9.
- Drop manual dependency generator enablement (it's enabled by default).
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-2
- Rebuilt for Python 3.9
* Sat Feb 29 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.5-1
- Update to version 1.0.5.
* Fri Feb 28 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.4-1
- Update to version 1.0.4.
* Wed Feb 05 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.3-2
- Hard-code dependency on python3-lockfile.
* Sun Feb 02 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.3-1
- Update to version 1.0.3.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 15 2020 Fabio Valentini <decathorpe@gmail.com> - 1.0.2-1
- Update to version 1.0.2.
* Fri Dec 13 2019 Fabio Valentini <decathorpe@gmail.com> - 1.0.0-1
- Update to version 1.0.0.
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.17-5
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 26 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.17-4
- Relax dependency on cachy.
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.17-3
- Rebuilt for Python 3.8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.17-2
- Add missing dependencies on lockfile and pip
* Sat Aug 10 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.17-1
- Update to version 0.12.17.
* Fri May 03 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.15-1
- Update to version 0.12.15.
* Fri Apr 26 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.14-1
- Update to version 0.12.14.
* Fri Apr 26 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.13-1
- Update to version 0.12.13.
* Fri Apr 12 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.12-1
- Update to version 0.12.12.
* Mon Jan 14 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.11-1
- Update to version 0.12.11.
* Wed Dec 12 2018 Fabio Valentini <decathorpe@gmail.com> - 0.12.10-1
- Initial package.