Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You're definitely on their list. The question to ask next is what list it is.


comp / comp.lang.python / Re: Specifying local dependency with Poetry

SubjectAuthor
* Specifying local dependency with PoetryLoris Bennett
`* Re: Specifying local dependency with PoetryGreg Ewing
 `- Re: Specifying local dependency with PoetryLoris Bennett

1
Subject: Specifying local dependency with Poetry
From: Loris Bennett
Newsgroups: comp.lang.python
Organization: FUB-IT, Freie Universität Berlin
Date: Tue, 5 Nov 2024 15:13 UTC
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: loris.bennett@fu-berlin.de (Loris Bennett)
Newsgroups: comp.lang.python
Subject: Specifying local dependency with Poetry
Date: Tue, 05 Nov 2024 16:13:33 +0100
Organization: FUB-IT, Freie Universität 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)
View all headers

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.

Subject: Re: Specifying local dependency with Poetry
From: Greg Ewing
Newsgroups: comp.lang.python
Date: Wed, 6 Nov 2024 05:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: greg.ewing@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: Specifying local dependency with Poetry
Date: Wed, 6 Nov 2024 18:35:47 +1300
Lines: 17
Message-ID: <lp0dhmF6pnuU1@mid.individual.net>
References: <87fro5k92a.fsf@zedat.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net buL40p7Bdgvwu/KAqkTr4w2TtPXLcD7kjDc+NY5PmKAPNLNJUg
Cancel-Lock: sha1:XzYZ4XSlZ2IH8m5KPqC0u1M3UQ4= sha256:Zb+uTIeBidqWWKq27Llx7dq3LT2aow1fxCgZplNh9lw=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <87fro5k92a.fsf@zedat.fu-berlin.de>
View all headers

On 6/11/24 4:13 am, Loris Bennett wrote:
> [tool.poetry.dependencies]
> python = "^3.6"
> first-package = "^1.6.0"
>
> 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)

What version number does first-package have?

The caret in the specification "^1.6.0" restricts it to 1.x.x versions.

If you don't want that restriction, use ">=" instead.

--
Greg

Subject: Re: Specifying local dependency with Poetry
From: Loris Bennett
Newsgroups: comp.lang.python
Organization: FUB-IT, Freie Universität Berlin
Date: Wed, 6 Nov 2024 06:57 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: loris.bennett@fu-berlin.de (Loris Bennett)
Newsgroups: comp.lang.python
Subject: Re: Specifying local dependency with Poetry
Date: Wed, 06 Nov 2024 07:57:09 +0100
Organization: FUB-IT, Freie Universität Berlin
Lines: 21
Message-ID: <87cyj8x322.fsf@zedat.fu-berlin.de>
References: <87fro5k92a.fsf@zedat.fu-berlin.de>
<lp0dhmF6pnuU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: news.uni-berlin.de bvAfaVbunXQwsDlUvGNyGwJ+MULG/0KrChZLxZkzOPmnR0
Cancel-Lock: sha1:COuQZzxqVDhK1SqSynvOv8oFJi4= sha1:QPYD3Rlp70+XnjH99TVf3NMxTHU= sha256:ZBl7vM74RpACcmOma2idlMYn7+TvO1iv8QDZgy8ZK4I=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
View all headers

Greg Ewing <greg.ewing@canterbury.ac.nz> writes:

> On 6/11/24 4:13 am, Loris Bennett wrote:
>> [tool.poetry.dependencies]
>> python = "^3.6"
>> first-package = "^1.6.0"
>> 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)
>
> What version number does first-package have?
>
> The caret in the specification "^1.6.0" restricts it to 1.x.x versions.
>
> If you don't want that restriction, use ">=" instead.

The first package has the version number 1.6.0.

--
This signature is currently under constuction.

1

rocksolid light 0.9.8
clearnet tor