Accepting request 842177 from home:bnavigator:branches:devel:languages:python
- Let the pyproject_install macro do the compiling (*) - unbundle vendored packages - remove dephell dependency. poetry-core can build and install itself as a PEP517 backend (using pip as frontend) - precompile the python files as in setuptools * gh#openSUSE/python-rpm-macros#37 (*) SR note as soon as the updated python-rpm-macros package is available OBS-URL: https://build.opensuse.org/request/show/842177 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=2
This commit is contained in:
parent
ee32a99651
commit
0b1d0ba13c
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 16 17:01:46 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Let the pyproject_install macro do the compiling
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 10 20:06:27 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- unbundle vendored packages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 8 18:49:33 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- remove dephell dependency. poetry-core can build and install
|
||||
itself as a PEP517 backend (using pip as frontend)
|
||||
- precompile the python files as in setuptools
|
||||
* gh#openSUSE/python-rpm-macros#37
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 5 13:35:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -26,9 +26,25 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/python-poetry/poetry-core
|
||||
# Only the github archive provides the tests
|
||||
Source: https://github.com/python-poetry/poetry-core/archive/%{version}.tar.gz#/poetry-core-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-dephell-rpm-macros
|
||||
BuildRequires: %{python_module attrs >= 19.3.0}
|
||||
BuildRequires: %{python_module jsonschema >= 3.2.0}
|
||||
BuildRequires: %{python_module lark-parser >= 0.9.0}
|
||||
BuildRequires: %{python_module packaging >= 20.4}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pyparsing >= 2.4.7}
|
||||
BuildRequires: %{python_module pyrsistent >= 0.16.0}
|
||||
BuildRequires: %{python_module six >= 1.15.0}
|
||||
BuildRequires: %{python_module tomlkit >= 0.7.0}
|
||||
BuildRequires: %{python_module typing >= 3.7.4}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-attrs >= 19.3.0
|
||||
Requires: python-jsonschema >= 3.2.0
|
||||
Requires: python-lark-parser >= 0.9.0
|
||||
Requires: python-packaging >= 20.4
|
||||
Requires: python-pyparsing >= 2.4.7
|
||||
Requires: python-pyrsistent >= 0.16.0
|
||||
Requires: python-six >= 1.15.0
|
||||
Requires: python-tomlkit >= 0.7.0
|
||||
Requires: python-typing >= 3.7.4
|
||||
BuildArch: noarch
|
||||
# SECTION these are all test dependencies, including devel and git
|
||||
@ -36,7 +52,6 @@ BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pep517}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module typing >= 3.7.4}
|
||||
BuildRequires: %{python_module virtualenv}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: git-core
|
||||
@ -52,13 +67,16 @@ PEP 517 compatible build frontends to build Poetry managed projects.
|
||||
%setup -q -n poetry-core-%{version}
|
||||
# python-poetry will provide this file
|
||||
rm poetry/__init__.py
|
||||
%dephell_gensetup
|
||||
# unbundle: we provide the vendored packages on our own
|
||||
rm -r poetry/core/_vendor
|
||||
# remove executable bits
|
||||
find poetry/core -name '*.py' -executable -print0 | xargs -0 chmod a-x
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@ -71,6 +89,6 @@ git init
|
||||
%license LICENSE
|
||||
%dir %{python_sitelib}/poetry
|
||||
%{python_sitelib}/poetry/core
|
||||
%{python_sitelib}/poetry_core-%{version}-py*.egg-info
|
||||
%{python_sitelib}/poetry_core-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user