• Specifying local dependency with Poetry

    From Loris Bennett@21:1/5 to All on Tue Nov 5 16:13:33 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Ewing@21:1/5 to Loris Bennett on Wed Nov 6 18:35:47 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Loris Bennett@21:1/5 to Greg Ewing on Wed Nov 6 07:57:09 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)