|
rdobuilder |
50ceb7 |
Name: python-poetry-core
|
|
rdobuilder |
50ceb7 |
Version: 1.0.8
|
|
rdobuilder |
50ceb7 |
Release: 1%{?dist}
|
|
rdobuilder |
50ceb7 |
Summary: Poetry PEP 517 Build Backend
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# We bundle a lot of libraries with poetry, which itself is under MIT license.
|
|
rdobuilder |
50ceb7 |
# Here is the list of the libraries with corresponding licenses:
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# attrs: MIT
|
|
rdobuilder |
50ceb7 |
# jsonschema: MIT
|
|
rdobuilder |
50ceb7 |
# lark-parser: MIT
|
|
rdobuilder |
50ceb7 |
# packaging: ASL 2.0 or BSD
|
|
rdobuilder |
50ceb7 |
# pyparsing: MIT
|
|
rdobuilder |
50ceb7 |
# pyrsistent: MIT
|
|
rdobuilder |
50ceb7 |
# six: MIT
|
|
rdobuilder |
50ceb7 |
# tomlkit: MIT
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
License: MIT and (ASL 2.0 or BSD)
|
|
rdobuilder |
50ceb7 |
URL: https://github.com/python-poetry/poetry-core
|
|
rdobuilder |
50ceb7 |
Source0: %{url}/archive/%{version}/poetry-core-%{version}.tar.gz
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# This patch moves the vendored requires definition
|
|
rdobuilder |
50ceb7 |
# from vendors/pyproject.toml to pyproject.toml
|
|
rdobuilder |
50ceb7 |
# Intentionally contains the removed hunk to prevent patch aging
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# poetry is broken with packaging 21+ (https://github.com/python-poetry/poetry/issues/4264).
|
|
rdobuilder |
50ceb7 |
# We are temporarily disabling this patch so installed poetry works again.
|
|
rdobuilder |
50ceb7 |
#Patch1: poetry-core-1.0.2-devendor.patch
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
BuildArch: noarch
|
|
rdobuilder |
50ceb7 |
BuildRequires: python3-devel
|
|
rdobuilder |
50ceb7 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# for tests (only specified via poetry poetry.dev-dependencies with pre-commit etc.)
|
|
rdobuilder |
50ceb7 |
BuildRequires: python3-pytest
|
|
rdobuilder |
50ceb7 |
BuildRequires: python3-pytest-mock
|
|
rdobuilder |
50ceb7 |
BuildRequires: python3-virtualenv
|
|
rdobuilder |
50ceb7 |
BuildRequires: gcc
|
|
rdobuilder |
50ceb7 |
BuildRequires: git-core
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%global _description %{expand:
|
|
rdobuilder |
50ceb7 |
A PEP 517 build backend implementation developed for Poetry.
|
|
rdobuilder |
50ceb7 |
This project is intended to be a light weight, fully compliant, self-contained
|
|
rdobuilder |
50ceb7 |
package allowing PEP 517 compatible build frontends to build Poetry managed
|
|
rdobuilder |
50ceb7 |
projects.}
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%description %_description
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%package -n python3-poetry-core
|
|
rdobuilder |
50ceb7 |
Summary: %{summary}
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# Previous versions of poetry included poetry-core in it
|
|
rdobuilder |
50ceb7 |
Conflicts: python%{python3_version}dist(poetry) < 1.1
|
|
rdobuilder |
50ceb7 |
# The bundled versions are taken from poetry/core/_vendor/vendor.txt
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(attrs)) = 20.3
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(jsonschema)) = 3.2
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(lark-parser)) = 0.9
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(packaging)) = 20.9
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(pyparsing)) = 2.4.7
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(pyrsistent)) = 0.16.1
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(six)) = 1.15
|
|
rdobuilder |
50ceb7 |
Provides: bundled(python3dist(tomlkit)) = 0.7
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%description -n python3-poetry-core %_description
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%prep
|
|
rdobuilder |
50ceb7 |
%autosetup -p1 -n poetry-core-%{version}
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
# We sed out shebang from non-execeutable-script to fix rpmlint error.
|
|
rdobuilder |
50ceb7 |
# This can be removed once we again devendor python-poetry-core and
|
|
rdobuilder |
50ceb7 |
# the Patch1 is enabled again.
|
|
rdobuilder |
50ceb7 |
# Upstream PR: https://github.com/Julian/jsonschema/pull/833
|
|
rdobuilder |
50ceb7 |
sed -i '1!b;/^#!/d' poetry/core/_vendor/jsonschema/benchmarks/issue232.py
|
|
rdobuilder |
50ceb7 |
sed -i '1!b;/^#!/d' poetry/core/_vendor/jsonschema/benchmarks/json_schema_test_suite.py
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%generate_buildrequires
|
|
rdobuilder |
50ceb7 |
%pyproject_buildrequires -r
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%build
|
|
rdobuilder |
50ceb7 |
# we debundle the deps after we use the bundled deps in previous step to parse the deps 🤯
|
|
rdobuilder |
50ceb7 |
#rm -r poetry/core/_vendor
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%pyproject_wheel
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%install
|
|
rdobuilder |
50ceb7 |
%pyproject_install
|
|
rdobuilder |
50ceb7 |
%pyproject_save_files poetry
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%check
|
|
rdobuilder |
50ceb7 |
# don't use %%tox here because tox.ini runs "poetry install"
|
|
rdobuilder |
50ceb7 |
# TODO investigate failures in test_default_with_excluded_data, test_default_src_with_excluded_data
|
|
rdobuilder |
50ceb7 |
%pytest -k "not with_excluded_data" --ignore tests/integration/test_pep517.py
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%files -n python3-poetry-core -f %{pyproject_files}
|
|
rdobuilder |
50ceb7 |
%doc README.md
|
|
rdobuilder |
50ceb7 |
%license LICENSE
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
%changelog
|
|
rdobuilder |
50ceb7 |
* Mon Mar 07 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.0.8-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.8
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
|
|
rdobuilder |
50ceb7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Mon Nov 15 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.0.7-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.7
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Fri Oct 01 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.0.6-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.6
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Tue Sep 07 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.0.4-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.4
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Thu Aug 19 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.0.3-5
|
|
rdobuilder |
50ceb7 |
- Bundle vendored libraries again, to fix poetry install
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
|
|
rdobuilder |
50ceb7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Thu Jul 08 2021 Lumír Balhar <lbalhar@redhat.com> - 1.0.3-3
|
|
rdobuilder |
50ceb7 |
- Allow newer packaging version
|
|
rdobuilder |
50ceb7 |
- Allow newer pyrsistent version
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.3-2
|
|
rdobuilder |
50ceb7 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Thu Apr 15 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.0.3-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.3
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Thu Feb 25 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.0.2-1
|
|
rdobuilder |
50ceb7 |
- Update to 1.0.2
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
rdobuilder |
50ceb7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
50ceb7 |
|
|
rdobuilder |
50ceb7 |
* Mon Nov 02 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-1
|
|
rdobuilder |
50ceb7 |
- Initial package
|