From 071f1cef411a62ffd2c8b2aa512b975bfc610a82 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sat, 15 Jun 2024 12:01:21 +0300 Subject: [PATCH] chotto. --- niar/__init__.py | 2 +- pyproject.toml | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) 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]