Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831720 - dev-python/poetry: new package
Summary: dev-python/poetry: new package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 11:08 UTC by Skruppy
Modified: 2023-09-13 10:54 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
poetry-1.2.2.ebuild (poetry-1.2.2.ebuild,1.20 KB, text/plain)
2022-10-15 21:35 UTC, martin-kokos
Details
shellingham-1.5.0.ebuild (shellingham-1.5.0.ebuild,445 bytes, text/plain)
2022-10-15 21:37 UTC, martin-kokos
Details
cleo-1.0.0a_p5.ebuild (cleo-1.0.0a_p5.ebuild,758 bytes, text/plain)
2022-10-15 21:37 UTC, martin-kokos
Details
poetry-plugin-export-1.1.2.ebuild (poetry-plugin-export-1.1.2.ebuild,443 bytes, text/plain)
2022-10-15 21:38 UTC, martin-kokos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Skruppy 2022-01-21 11:08:40 UTC
Please add a package for the Python packaging manager Poetry (https://python-poetry.org).

Portage already contains an ebuild for the "special" dev-python/poetry-core dependency. Looking at the other dependencies for >=Python-3.8 (https://github.com/python-poetry/poetry/blob/master/pyproject.toml), it seems like only further ebuilds for cachecontrol, cachy and shellingham are missing.
Comment 1 martin-kokos 2022-10-15 21:35:21 UTC
Created attachment 824333 [details]
poetry-1.2.2.ebuild
Comment 2 martin-kokos 2022-10-15 21:37:17 UTC
Created attachment 824335 [details]
shellingham-1.5.0.ebuild
Comment 3 martin-kokos 2022-10-15 21:37:49 UTC
Created attachment 824337 [details]
cleo-1.0.0a_p5.ebuild
Comment 4 martin-kokos 2022-10-15 21:38:23 UTC
Created attachment 824339 [details]
poetry-plugin-export-1.1.2.ebuild
Comment 5 martin-kokos 2022-10-15 21:41:14 UTC
I am contributing poetry ebuild and what I believe is all remaining ebuilds needed to be added. Poetry works for me like this so far. Would be happy if someone else could also verify and ebuilds could be added to repo.
Comment 6 Justin Keogh 2022-11-05 05:14:05 UTC
Tested these, they worked for me after the following changes:

1. add `inherit distutils-r1` to `poetry-1.2.2.ebuild`
2. and `inherit distutils-r1` to `poetry-plugin-export-1.1.2.ebuild`
3. change `LICENSE=GPL-COMPATIBLE` to `LICENSE=GPL-2+` in `shellingham-1.5.0.ebuild` because `GPL-COMPATIBLE` isn't in my `/var/db/repos/gentoo/licenses` (this may be incorrect)
4. add `RDEPEND=dev-python/pylev[${PYTHON_USEDEP}]` to `cleo-1.0.0a_p5.ebuild`
Comment 7 martin-kokos 2022-11-15 15:51:26 UTC
Thanks for verifying and the corrections. I will incorporate them.
Comment 8 martin-kokos 2022-12-27 11:02:52 UTC
Created: https://github.com/gentoo/gentoo/pull/28843
Comment 9 Marco Scardovi (scardracs) 2022-12-28 19:41:00 UTC
You have actually check which license/ is/are actually used. GPL-COMPATIBLE contains lots of licenses, you can find a complete list here: https://wiki.gentoo.org/wiki/License_groups/GPL-COMPATIBLE
Comment 10 Andrew Udvare 2023-09-13 08:45:53 UTC
Any idea on this error? I cannot seem to find anything.

  • Installing validators (0.20.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /usr/lib/python3.11/site-packages/poetry/installation/chef.py:109 in _prepare
      105│     ) -> Path:
      106│         from subprocess import CalledProcessError
      107│
      108│         with ephemeral_environment(self._env.python) as venv:
    → 109│             env = IsolatedEnv(venv, self._pool)
      110│             builder = ProjectBuilder(
      111│                 directory,
      112│                 python_executable=env.executable,
      113│                 scripts_dir=env.scripts_dir,

This happens on one system but not another. I have verified both are using global Poetry.

To reproduce:

1. Create new Poetry project with poetry init or similar
2. poetry add click-params
Comment 11 martin-kokos 2023-09-13 09:25:08 UTC
(In reply to Andrew Udvare from comment #10)
> Any idea on this error? I cannot seem to find anything.
> 
>   • Installing validators (0.20.0): Failed
> 
>   TypeError
> 
>   Can't instantiate abstract class IsolatedEnv with abstract methods
> make_extra_environ, python_executable
> 
>   at /usr/lib/python3.11/site-packages/poetry/installation/chef.py:109 in
> _prepare
>       105│     ) -> Path:
>       106│         from subprocess import CalledProcessError
>       107│
>       108│         with ephemeral_environment(self._env.python) as venv:
>     → 109│             env = IsolatedEnv(venv, self._pool)
>       110│             builder = ProjectBuilder(
>       111│                 directory,
>       112│                 python_executable=env.executable,
>       113│                 scripts_dir=env.scripts_dir,
> 
> This happens on one system but not another. I have verified both are using
> global Poetry.
> 
> To reproduce:
> 
> 1. Create new Poetry project with poetry init or similar
> 2. poetry add click-params

Please, don't reuse bugs. This should have been closed anyways by https://github.com/gentoo/gentoo/pull/28843
I can't reproduce this.
Has just been filed upstream https://github.com/python-poetry/poetry/issues/8434