Specifying local dependency with Poetry

Liste des GroupesRevenir à cl python 
Sujet : Specifying local dependency with Poetry
De : loris.bennett (at) *nospam* fu-berlin.de (Loris Bennett)
Groupes : comp.lang.python
Date : 05. Nov 2024, 17:13:33
Autres entêtes
Organisation : FUB-IT, Freie Universität Berlin
Message-ID : <87fro5k92a.fsf@zedat.fu-berlin.de>
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

I have installed a package, 'first-package, built using Poetry and
installed it as root in /usr/local.  The package is on sys.path so root
can successfully import it.

I have now developed a second package which depends on 'first-package'.
I would have expected that I could specify this dependency in
pyproj.toml via

[tool.poetry.dependencies]
python = "^3.6"
first-package = "^1.6.0"

However, if I do that and then attempt to install the second package, I
get the error

  Could not find a version that satisfies the requirement first-package<2.0.0,>=1.6.0 (from second-package==0.5.0) (from versions: )
No matching distribution found for first-package<2.0.0,>=1.6.0 (from second-package==0.5.0)

How should I define the dependency?

Cheers,

Loris

--
This signature is currently under constuction.

Date Sujet#  Auteur
5 Nov 24 * Specifying local dependency with Poetry3Loris Bennett
6 Nov 24 `* Re: Specifying local dependency with Poetry2Greg Ewing
6 Nov 24  `- Re: Specifying local dependency with Poetry1Loris Bennett

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal