Skip to content

Commit 3082789

Browse files
committed
Initial migration of VUnit setup towards pyproject.toml.
1 parent 8f58545 commit 3082789

3 files changed

Lines changed: 51 additions & 42 deletions

File tree

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,55 @@ requires = [
55
]
66
build-backend = "setuptools.build_meta"
77

8+
[project]
9+
name = "vunit_hdl"
10+
dynamic = ["version"]
11+
description="VUnit is an open source unit testing framework for VHDL/SystemVerilog."
12+
urls = {homepage = "https://github.com/VUnit/vunit"}
13+
readme = "README.md"
14+
license = "MPL-2.0"
15+
license-files = ["LICENSE.rst"]
16+
authors = [
17+
{name = "Lars Asplund", email = "lars.anders.asplund@gmail.com"},
18+
{name = "Olof Kraigher", email = "olof.kraigher@gmail.com"},
19+
]
20+
keywords = [
21+
"vunit", "verification", "vhdl", "systemverilog-hdl", "verilog-hdl",
22+
"fpga", "asic", "unit-testing", "testbench", "uvm", "eda", "hdl"
23+
]
24+
classifiers = [
25+
"Development Status :: 5 - Production/Stable",
26+
"Natural Language :: English",
27+
"Intended Audience :: Developers",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
31+
"Programming Language :: Python :: 3.11",
32+
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
34+
"Programming Language :: Python :: 3.13",
35+
"Programming Language :: Python :: 3.14",
36+
"Operating System :: Microsoft :: Windows",
37+
"Operating System :: MacOS :: MacOS X",
38+
"Operating System :: POSIX :: Linux",
39+
"Topic :: Software Development :: Testing",
40+
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
41+
]
42+
requires-python = ">=3.8"
43+
dependencies = [
44+
"colorama",
45+
]
46+
47+
[tool.setuptools]
48+
include-package-data = false
49+
50+
[tool.setuptools.packages.find]
51+
where = ["."]
52+
include = [
53+
"vunit", "vunit.com", "vunit.parsing","vunit.parsing.verilog", "vunit.sim_if",
54+
"vunit.test", "vunit.ui", "vunit.vivado"
55+
]
56+
857
[tool.black]
958
line-length = 120
1059

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Ensure that the source tree is on the sys path
2020
sys.path.insert(0, str(Path(__file__).parent.resolve()))
2121

22-
from vunit.about import version, doc # pylint: disable=wrong-import-position
22+
from vunit.about import version # pylint: disable=wrong-import-position
2323
from vunit.builtins import osvvm_is_installed # pylint: disable=wrong-import-position
2424

2525

@@ -39,51 +39,12 @@ def find_all_files(directory, endings=None):
3939
DATA_FILES = []
4040
DATA_FILES += find_all_files("vunit", endings=[".tcl"])
4141
DATA_FILES += find_all_files(str(Path("vunit") / "vhdl"))
42-
DATA_FILES += find_all_files(
43-
str(Path("vunit") / "verilog"), endings=[".v", ".sv", ".svh"]
44-
)
42+
DATA_FILES += find_all_files(str(Path("vunit") / "verilog"), endings=[".v", ".sv", ".svh"])
4543
DATA_FILES = [os.path.relpath(file_name, "vunit") for file_name in DATA_FILES]
4644

4745
setup(
48-
name="vunit_hdl",
4946
version=version(),
50-
packages=[
51-
"vunit",
52-
"vunit.com",
53-
"vunit.parsing",
54-
"vunit.parsing.verilog",
55-
"vunit.sim_if",
56-
"vunit.test",
57-
"vunit.ui",
58-
"vunit.vivado",
59-
],
6047
package_data={"vunit": DATA_FILES},
61-
zip_safe=False,
62-
url="https://github.com/VUnit/vunit",
63-
classifiers=[
64-
"Development Status :: 5 - Production/Stable",
65-
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
66-
"Natural Language :: English",
67-
"Intended Audience :: Developers",
68-
"Programming Language :: Python :: 3.8",
69-
"Programming Language :: Python :: 3.9",
70-
"Programming Language :: Python :: 3.10",
71-
"Programming Language :: Python :: 3.11",
72-
"Programming Language :: Python :: 3.12",
73-
"Programming Language :: Python :: 3.13",
74-
"Operating System :: Microsoft :: Windows",
75-
"Operating System :: MacOS :: MacOS X",
76-
"Operating System :: POSIX :: Linux",
77-
"Topic :: Software Development :: Testing",
78-
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
79-
],
80-
python_requires=">=3.8",
81-
install_requires=["colorama"],
82-
license="Mozilla Public License 2.0 (MPL 2.0)",
83-
author="Lars Asplund",
84-
author_email="lars.anders.asplund@gmail.com",
85-
description="VUnit is an open source unit testing framework for VHDL/SystemVerilog.",
86-
long_description=doc(),
8748
)
8849

8950
if not osvvm_is_installed():

0 commit comments

Comments
 (0)