示例#1
0
文件: __init__.py 项目: yogotie/vunit
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2014-2020, Lars Asplund [email protected]
"""
Public VUnit interface
"""

from pathlib import Path
import vunit.version_check
from vunit.ui import VUnit
from vunit.vunit_cli import VUnitCLI
from vunit.about import version, doc

# Repository root
ROOT = str(Path(__file__).parent.parent.resolve())

__version__ = version()
__doc__ = doc()  # pylint: disable=redefined-builtin
示例#2
0
文件: setup.py 项目: zhajio1988/vunit
        "Natural Language :: English",
        "Intended Audience :: Developers",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: POSIX :: Linux",
        "Topic :: Software Development :: Testing",
        "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
    ],
    install_requires=["colorama"],
    requires=["colorama"],
    license=["Mozilla Public License 2.0 (MPL 2.0)"],
    author="Lars Asplund",
    author_email="*****@*****.**",
    description=
    "VUnit is an open source unit testing framework for VHDL/SystemVerilog.",
    long_description=doc(),
)

if not osvvm_is_installed():
    warning("""
Found no OSVVM VHDL files. If you're installing from a Git repository and plan to use VUnit's integration
of OSVVM you should run

git submodule update --init --recursive

in your VUnit repository before running setup.py.""")
示例#3
0
 def test_that_readme_file_matches_vunit_docstring(self):
     with open(join(ROOT, 'README.rst'), "rU") as readme:
         self.assertEqual(readme.read(), doc())
 def test_that_readme_file_matches_vunit_docstring(self):
     with catch_warnings():
         simplefilter("ignore", category=DeprecationWarning)
         with Path(ROOT, "README.rst").open("rU") as readme:
             self.assertEqual(readme.read(), doc())
示例#5
0
 def test_that_readme_file_matches_vunit_docstring(self):
     with catch_warnings():
         simplefilter("ignore", category=DeprecationWarning)
         with open(join(ROOT, 'README.rst'), "rU") as readme:
             self.assertEqual(readme.read(), doc())
示例#6
0
文件: __init__.py 项目: barri/vunit
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2014-2018, Lars Asplund [email protected]

"""
Public VUnit interface
"""

from os.path import dirname, join, abspath
import vunit.version_check
from vunit.ui import VUnit
from vunit.vunit_cli import VUnitCLI
from vunit.about import version, doc
from vunit.json4vhdl import read_json, encode_json

# Repository root
ROOT = abspath(join(dirname(__file__), ".."))

__version__ = version()
__doc__ = doc()  # pylint: disable=redefined-builtin
示例#7
0
文件: setup.py 项目: suoto/vunit
setup(
    name='vunit_hdl',
    version=version(),
    packages=['vunit',
              'vunit.com',
              'vunit.test',
              'vunit.parsing',
              'vunit.parsing.verilog',
              'vunit.test.lint',
              'vunit.test.unit',
              'vunit.test.acceptance'],
    package_data={'vunit': data_files},
    zip_safe=False,
    url='https://github.com/VUnit/vunit',
    classifiers=['Development Status :: 5 - Production/Stable',
                 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
                 'Natural Language :: English',
                 'Intended Audience :: Developers',
                 'Programming Language :: Python :: 2.7',
                 'Programming Language :: Python :: 3.3',
                 'Programming Language :: Python :: 3.4',
                 'Programming Language :: Python :: 3.5',
                 'Operating System :: Microsoft :: Windows',
                 'Operating System :: MacOS :: MacOS X',
                 'Operating System :: POSIX :: Linux',
                 'Topic :: Software Development :: Testing'],
    author='Lars Asplund',
    author_email='*****@*****.**',
    description="VUnit is an open source unit testing framework for VHDL/SystemVerilog.",
    long_description=doc())