-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
38 lines (31 loc) · 1.06 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
# Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
import pathlib
from setuptools import setup, find_packages
def get_version(version_file):
locls = {}
exec(open(version_file).read(), {}, locls)
return locls["__version__"]
root = pathlib.Path(__file__).parent.resolve()
readme_file = root / "README.md"
version_file = root / "src" / "cocotb_bus" / "_version.py"
if __name__ == "__main__":
setup(
name="cocotb-bus",
version=get_version(version_file),
author="cocotb maintainers",
author_email="[email protected]",
description="",
long_description=readme_file.read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
url="https://github.com/cocotb/cocotb-bus",
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=[
"cocotb>=1.6.0",
"scapy",
"packaging",
],
python_requires='>=3.6'
)