Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
This repository was archived by the owner on May 1, 2025. It is now read-only.

Fail to install using poetry #35

Open
@salexln

Description

@salexln

I'm using the following pyproject.toml:

[tool.poetry]
name = "code-tf-test"
version = "0.1.0"
description = ""
authors = ["Alex Levin <salexln@gmail.com>"]
readme = "README.md"
packages = [{include = "code_tf_test"}]

[tool.poetry.dependencies]
python = "^3.10"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

but when I run poetry add salesforce-codetf==1.0.1.1, I get

Updating dependencies
Resolving dependencies... (1.0s)

The current project's Python requirement (>=3.10,<4.0) is not compatible with some of the required packages Python requirement:
  - numpy requires Python >=3.7,<3.11, so it will not be satisfied for Python >=3.11,<4.0

Because salesforce-codetf (1.0.1.1) depends on numpy (1.21.6) which requires Python >=3.7,<3.11, salesforce-codetf is forbidden.
So, because code-tf-test depends on salesforce-codetf (1.0.1.1), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For numpy, a possible solution would be to set the `python` property to ">=3.10,<3.11"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

I'm using Python 3.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions