diff --git a/niar/__init__.py b/niar/__init__.py index b52fcf9..f1888ec 100644 --- a/niar/__init__.py +++ b/niar/__init__.py @@ -17,7 +17,7 @@ def cli(np: Project): "build", help="build the design, and optionally program it" ), ) - if getattr(np, "cxxrtl_targets"): + if hasattr(np, "cxxrtl_targets"): cxxrtl.add_arguments( np, subparsers.add_parser("cxxrtl", help="run the C++ simulator tests") ) diff --git a/pyproject.toml b/pyproject.toml index 0a3ffb3..6441fd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,18 +2,14 @@ name = "niar" version = "0.1" description = "A small framework for building projects with Amaranth" -authors = [ - {name = "Asherah Connor", email = "ashe@kivikakk.ee"}, -] -dependencies = [ - "amaranth >= 0.4.5, < 0.6", -] +authors = [{ name = "Asherah Connor", email = "ashe@kivikakk.ee" }] +dependencies = ["amaranth >= 0.5, < 0.7"] requires-python = ">=3.8" -license = {text = "BSD-2-Clause"} +license = { text = "BSD-2-Clause" } [project.optional-dependencies] build = [ - "amaranth-boards", # for test + "amaranth-boards", # for test ] [project.urls]