forked from amaranth-lang/amaranth
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
125 lines (104 loc) · 2.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-2-Clause
from setuptools import setup, find_packages
from pathlib import Path
REPO_ROOT = Path(__file__).parent
README_FILE = (REPO_ROOT / 'README.md')
def scm_version():
def local_scheme(version):
if version.tag and not version.distance:
return version.format_with('')
else:
return version.format_choice('+{node}', '+{node}.dirty')
return {
'relative_to' : __file__,
'version_scheme': 'guess-next-dev',
'local_scheme' : local_scheme
}
def doc_version():
try:
from setuptools_scm.git import parse as parse_git
except ImportError:
return ''
git = parse_git('.')
if not git:
return ''
elif git.exact:
return git.format_with('v{tag}')
else:
return 'latest'
setup(
name = 'torii',
use_scm_version = scm_version(),
author = ', '.join([
'Aki Van Ness',
'Rachel Mant',
]),
author_email = ', '.join([
]),
description = 'Torii hardware definition language',
license = 'BSD-2-Clause',
python_requires = '~=3.10',
zip_safe = True,
url = 'https://torii.shmdn.link/',
long_description = README_FILE.read_text(),
long_description_content_type = 'text/markdown',
setup_requires = [
'wheel',
'setuptools',
'setuptools_scm'
],
install_requires = [
'setuptools',
'pyvcd>=0.2.2',
'Jinja2~=3.0',
'rich',
'typing-extensions',
],
extras_require = {
'dev': [
'nox'
],
},
packages = find_packages(
where = '.',
exclude = (
'tests',
'tests.*',
'contrib',
'contrib.*'
)
),
package_data = {
'torii': [
'py.typed'
],
},
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
'Topic :: Software Development',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Libraries',
'Typing :: Typed',
],
project_urls = {
'Documentation': 'https://torii.shmdn.link/',
'Source Code' : 'https://github.com/shrine-maiden-heavy-industries/torii-hdl',
'Bug Tracker' : 'https://github.com/shrine-maiden-heavy-industries/torii-hdl/issues',
},
)