diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..d662b491 --- /dev/null +++ b/LICENSE @@ -0,0 +1,32 @@ +Cocotb is licensed under the Revised BSD License. Full license text below. + +############################################################################### +# Copyright cocotb maintainers +# Copyright (c) 2013 Potential Ventures Ltd +# Copyright (c) 2013 SolarFlare Communications Inc +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of Potential Ventures Ltd, +# SolarFlare Communications Inc nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL POTENTIAL VENTURES LTD BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +############################################################################### + diff --git a/README.md b/README.md new file mode 100644 index 00000000..79aeb864 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# cocotb-bus + +The new home of the [cocotb](https://github.com/cocotb) project's pre-packaged testbenching tools and reusable bus interfaces. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..e6ca9c75 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel", "setuptools_scm"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..f657c3a2 --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +# Copyright cocotb contributors +# Licensed under the Revised BSD License, see LICENSE for details. +# SPDX-License-Identifier: BSD-3-Clause + +from setuptools import setup, find_packages + + +with open("README.md") as file: + long_description = file.read() + + +if __name__ == "__main__": + setup( + name="cocotb-bus", + use_scm_version=dict( + write_to='src/cocotb_bus/_version.py', + version_scheme='release-branch-semver' + ), + author="cocotb maintainers", + author_email="cocotb@lists.librecores.org", + description="", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/cocotb/cocotb-bus", + packages=find_packages("src"), + package_dir={"": "src"}, + install_requires=[ + "cocotb>1.4,<2.0" + ], + python_requires='>=3.5' + ) diff --git a/src/cocotb_bus/__init__.py b/src/cocotb_bus/__init__.py new file mode 100644 index 00000000..9323dfb5 --- /dev/null +++ b/src/cocotb_bus/__init__.py @@ -0,0 +1,5 @@ +# Copyright cocotb contributors +# Licensed under the Revised BSD License, see LICENSE for details. +# SPDX-License-Identifier: BSD-3-Clause + +from ._version import version as __version__ # noqa