Skip to content

Instantly share code, notes, and snippets.

@KaoruNishikawa
Created March 28, 2022 05:33
Show Gist options
  • Save KaoruNishikawa/880f8fe63379cfaee396da7b60fd068c to your computer and use it in GitHub Desktop.
Save KaoruNishikawa/880f8fe63379cfaee396da7b60fd068c to your computer and use it in GitHub Desktop.
Poetry: SolveProblemError when a package with multiple constraints in project dependency and its sub-dependency
[tool.poetry]
name = "neclib"
version = "0.3.1"
description = "My package"
authors = ["me"]
[tool.poetry.dependencies]
python = ">=3.6.1, <3.10"
astropy = [
{ version = "^3.0", python = "<3.8" },
{ version = "^5.0.3", python = "^3.8" }
]
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "my-pkg"
version = "0.1.0"
description = "My package"
authors = ["me"]
[tool.poetry.dependencies]
python = ">=3.6.1, <3.10"
astropy = [
{ version = "^3.0", python = "<3.8" },
{ version = "^5.0.3", python = "^3.8" }
]
neclib = "^0.3.1"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment