amaranth-lang / amaranth-boards

Board definitions for Amaranth HDL
BSD 2-Clause "Simplified" License
107 stars 109 forks source link

Tip-of-tree amaranth not compatible with tip of amaranth-boards #190

Closed thirtythreeforty closed 2 years ago

thirtythreeforty commented 2 years ago

When I try to include both Amaranth and amaranth-boards in a Poetry project:

[tool.poetry]
name = "test-poetry"
description = ""
version = "0.1.0"
authors = ["George Hilliard <thirtythreeforty@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.10"
amaranth = {git = "https://github.com/amaranth-lang/amaranth", branch = "main"}
amaranth-boards = {git = "https://github.com/amaranth-lang/amaranth-boards", branch = "main"}

[tool.poetry.dev-dependencies]

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

I get an error:

  SolverProblemError

  Because amaranth-boards (rev main) depends on amaranth (>=0.2,<0.4)
   and test-poetry depends on amaranth (branch main), amaranth-boards is forbidden.
  So, because test-poetry depends on amaranth-boards (branch main), version solving failed.

I think this has to do something with this line in setup.py although I don't know what the intent is.

thirtythreeforty commented 2 years ago

Found because https://github.com/greatscottgadgets/luna is currently doing this.

whitequark commented 2 years ago

Should be fixed now!