From 3e7d544134f602eb40ce2a242b6c5f0433fe3543 Mon Sep 17 00:00:00 2001 From: Raul Farkas Date: Thu, 4 May 2023 12:43:08 +0100 Subject: MLBEDSW-7579: Fix test_build.py test issues * Fix import order in test_build.py * Fix setup_tools_scm dependency version. Previously the version was restricted to < 6, creating a version restriction on Setuptools library too. Because an older version of Setuptools was used, running test_build.py::test_build_correct_readme_links would generate a UNKNOWN.egg-info directory in the src directory instead of a ethos_u_vela.egg-info directory. Change-Id: I113ca25b23b39d43fa288e6eda16377f4f5b4143 Signed-off-by: Raul Farkas --- ethosu/vela/test/test_build.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethosu/vela/test/test_build.py b/ethosu/vela/test/test_build.py index f4a1cd0c..5dd7fe1b 100644 --- a/ethosu/vela/test/test_build.py +++ b/ethosu/vela/test/test_build.py @@ -20,7 +20,7 @@ from pathlib import Path from tarfile import TarFile from tempfile import TemporaryDirectory -import build +import build # noreorder import pytest diff --git a/pyproject.toml b/pyproject.toml index fbb72048..2127d1ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dev = [ "pytest-cov", "pre-commit", "build", - "setuptools_scm[toml]<6" + "setuptools_scm[toml]~=7.1.0" ] [project.urls] @@ -60,6 +60,6 @@ vela = "ethosu.vela.vela:main" requires = [ "numpy<=1.21.3; python_version<='3.7'", "numpy; python_version>'3.7'", - "setuptools_scm[toml]<6" + "setuptools_scm[toml]~=7.1.0" ] build-backend = "setuptools.build_meta" \ No newline at end of file -- cgit v1.2.1