From 428a8d54f574a73804274e53e61f711aebc25a0a Mon Sep 17 00:00:00 2001 From: Raul Farkas Date: Mon, 16 Jan 2023 16:52:18 +0000 Subject: MLBEDSW-6982: Move to setup.cfg and pyproject.toml - Move all static information from setup.py to newly added pyproject.toml - Add setup.cfg used for static information that cannot be added to pyproject.toml due to it still being in beta. - Modify mlw_codec to to throw a real python exception when importing NumPy arrays instead of just printing them to stdout. - Surround mlw_codec import with try catch statement to catch NumPy C API mismatch errors and throw them again with a more detailed message. - Update README.md with documentation about known issue with changing used NumPy version after installing ethos-u-vela. Change-Id: I1eeee5536be7c1744e30d6088f7069fbb1403e06 Signed-off-by: Raul Farkas --- pyproject.toml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pyproject.toml (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..d8cbe661 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: Copyright 2023 Arm Limited and/or its affiliates +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the License); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an AS IS BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +[project] +name = "ethos-u-vela" +description = "Neural network model compiler for Arm Ethos-U NPUs" +requires-python = "~=3.7" +authors = [{name = "Arm Ltd", email = "mlg-vela@arm.com"}] +license = {text= "Apache License 2.0"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Operating System :: POSIX :: Linux", + "Operating System :: Microsoft :: Windows :: Windows 10", + "Programming Language :: C", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: Software Development :: Compilers", +] +keywords = ["ethos-u", "vela compiler", "tflite", "npu"] +dependencies = [ + "flatbuffers==2.0.7", + "numpy<=1.21.3; python_version<='3.7'", + "numpy; python_version>'3.7'", + "lxml>=4.5.1" +] +dynamic = ["readme", "version"] + +[project.urls] +Homepage = "https://git.mlplatform.org/ml/ethos-u/ethos-u-vela.git/" + +[project.scripts] +vela = "ethosu.vela.vela:main" + +[build-system] +requires = [ + "numpy<=1.21.3; python_version<='3.7'", + "numpy; python_version>'3.7'", + "setuptools_scm[toml]<6" +] +build-backend = "setuptools.build_meta" \ No newline at end of file -- cgit v1.2.1