From 6f0ba198e0c4aad09abd7817ea37415ac83a56a3 Mon Sep 17 00:00:00 2001 From: Daniel Copley Date: Thu, 11 Jan 2024 22:12:56 -0500 Subject: [PATCH] Replace setup.py with pyproject.toml --- pyproject.toml | 53 +++++++++++++++++++++++++++++++++++++++++- setup.py | 63 -------------------------------------------------- 2 files changed, 52 insertions(+), 64 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index fed528d4..6d4257e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,54 @@ [build-system] -requires = ["setuptools"] +requires = ["setuptools>=64.0", "setuptools_scm>=8.0"] build-backend = "setuptools.build_meta" + +[project] +name = "fusesoc" +authors = [ + { name = "Olof Kindgren", email = "olof.kindgren@gmail.com" }, +] +description = "FuseSoC is a package manager and a set of build tools for HDL (Hardware Description Language) code." +readme = "README.md" +requires-python = ">=3.6, <4" +license = { text = "BSD-3-Clause" } +keywords = [ + "VHDL", + "verilog", + "hdl", + "rtl", + "synthesis", + "FPGA", + "simulation", + "Xilinx", + "Altera", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Topic :: Utilities", + "Topic :: Software Development :: Build Tools", + "License :: OSI Approved :: BSD License", +] +dependencies = [ + "edalize>=0.4.1", + "pyparsing>=2.3.1", + "pyyaml>=6.0", + "simplesat>=0.8.0", + "fastjsonschema", + "jsonschema2md", +] +dynamic = ["version"] + +[tool.setuptools] +packages = ["fusesoc", "fusesoc.capi2", "fusesoc.provider", "fusesoc.parser"] + +[tool.setuptools_scm] +version_file = "fusesoc/version.py" + +[project.scripts] +fusesoc = "fusesoc.main:main" + +[project.urls] +Homepage = "https://github.com/olofk/fusesoc" +Documentation = "https://fusesoc.readthedocs.io/en/stable/index.html" +Repository = "https://github.com/olofk/fusesoc.git" +Issues = "https://github.com/olofk/fusesoc/issues" diff --git a/setup.py b/setup.py deleted file mode 100644 index 4031328f..00000000 --- a/setup.py +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright FuseSoC contributors -# Licensed under the 2-Clause BSD License, see LICENSE for details. -# SPDX-License-Identifier: BSD-2-Clause - -import os - -from setuptools import setup - - -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() - - -setup( - name="fusesoc", - packages=["fusesoc", "fusesoc.capi2", "fusesoc.provider", "fusesoc.parser"], - use_scm_version={ - "relative_to": __file__, - "write_to": "fusesoc/version.py", - }, - author="Olof Kindgren", - author_email="olof.kindgren@gmail.com", - description=( - "FuseSoC is a package manager and a set of build tools for HDL " - "(Hardware Description Language) code." - ), - license="BSD-2-Clause", - keywords=[ - "VHDL", - "verilog", - "hdl", - "rtl", - "synthesis", - "FPGA", - "simulation", - "Xilinx", - "Altera", - ], - url="https://github.com/olofk/fusesoc", - long_description=read("README.md"), - long_description_content_type="text/markdown", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Topic :: Utilities", - "Topic :: Software Development :: Build Tools", - "License :: OSI Approved :: BSD License", - ], - entry_points={"console_scripts": ["fusesoc = fusesoc.main:main"]}, - setup_requires=[ - "setuptools_scm < 7.0; python_version<'3.7'", - "setuptools_scm; python_version>='3.7'", - ], - install_requires=[ - "edalize>=0.4.1", - "pyparsing>=2.3.1", - "pyyaml>=6.0", - "simplesat>=0.8.0", - "fastjsonschema", - "jsonschema2md", - ], - # Supported Python versions: 3.6+ - python_requires=">=3.6, <4", -)