Deutsch   English   Français   Italiano  
<87fro5k92a.fsf@zedat.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
Newsgroups: comp.lang.python
Subject: Specifying local dependency with Poetry
Date: Tue, 05 Nov 2024 16:13:33 +0100
Organization: FUB-IT, Freie =?utf-8?Q?Universit=C3=A4t?= Berlin
Lines: 28
Message-ID: <87fro5k92a.fsf@zedat.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: news.uni-berlin.de vhDDErpUrqs4BndrBplBHQe/Hn0jsYfkpsEoRts8StpSot
Cancel-Lock: sha1:jbMxUX2Vqet5ZbJtQcAkRLGxask= sha1:3XRX0YTBPZMMufDyFsbTKq7w920= sha256:FRFkiFEU4K/vxSVcxLwGbetbOtaHw8jtYyavoritCsY=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Bytes: 1580

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.