Packaging python-poetry packages
Hi! I just wanted to update python-aiofiles which got switched from setuptools to poetry [1]. Does anyone know what the official/desired way for openSUSE packaging for poetry packages are? I'm using the upstream tarball in this case as the PyPi tarball doesn't include the tests. Adrian
[1] https://github.com/Tinche/aiofiles/commit/165ba880eaed010a15b590327cd8a7f396...
Hi, Am 16.06.21 um 16:26 schrieb John Paul Adrian Glaubitz:
Hi!
I just wanted to update python-aiofiles which got switched from setuptools to poetry [1].
Does anyone know what the official/desired way for openSUSE packaging for poetry packages are? I'm using the upstream tarball in this case as the PyPi tarball doesn't include the tests.
Poetry (or preferrably poetry-core, which is the one specified in aiofile's pyproject.toml) can be used as PEP517/PEP518 backend with pip as frontend. See python-isort [2] for an example: BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} %build %pyproject_wheel %install %pyproject_install
Adrian
[1] https://github.com/Tinche/aiofiles/commit/165ba880eaed010a15b590327cd8a7f396...
Ben [2] https://build.opensuse.org/package/view_file/devel:languages:python/python-i...
On 6/16/21 4:35 PM, Ben Greiner wrote:
Poetry (or preferrably poetry-core, which is the one specified in aiofile's pyproject.toml) can be used as PEP517/PEP518 backend with pip as frontend. See python-isort [2] for an example:
BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core}
%build %pyproject_wheel
%install %pyproject_install
Thanks, that worked. Adrian
participants (2)
-
Ben Greiner
-
John Paul Adrian Glaubitz