Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release_notes/news.d/36.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The package manifest uses the `requires` expression of VUnit 5.0.0.dev15 instead of the deprecated `requires-vunit` and `requires-vhdl` fields.
4 changes: 1 addition & 3 deletions src/vunit_python_bridge/vunit_pkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
# Copyright (c) 2014-2026, Lars Asplund lars.anders.asplund@gmail.com

[package]
# The VUnit adding packages and simulator hooks, VUnit/vunit#1221
requires-vunit = ">=5.0.0.dev12"
requires-vhdl = ">=2008"
requires = 'vunit >= "5.0.0.dev15" and vhdl >= "2008"'
library = "python_bridge"
setup = "vunit_python_bridge:setup"

Expand Down
12 changes: 7 additions & 5 deletions tests/test_python_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@ def test_setup_points_at_the_setup_function(self):
self.assertEqual(module_name, vunit_python_bridge.__name__)
self.assertIs(getattr(vunit_python_bridge, function_name), vunit_python_bridge.setup)

def test_requires_vhdl_2008(self):
self.assertEqual(self.package["requires-vhdl"], ">=2008")

def test_requires_a_vunit_version(self):
self.assertTrue(self.package["requires-vunit"].startswith(">="))
def test_requires_vhdl_2008_and_the_vunit_of_pyproject(self):
with (Path(__file__).parents[1] / "pyproject.toml").open("rb") as fptr:
dependencies = tomllib.load(fptr)["project"]["dependencies"]
vunit = next(item for item in dependencies if item.startswith("vunit_hdl>="))
self.assertEqual(
self.package["requires"], f'vunit >= "{vunit.removeprefix("vunit_hdl>=")}" and vhdl >= "2008"'
)

def test_sources_are_the_simulator_independent_vhdl(self):
includes = [item for source in self.package["sources"] for item in source["include"]]
Expand Down
Loading