VUnit / vunit

VUnit is a unit testing framework for VHDL/SystemVerilog

Home Page:http://vunit.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package "tests" in Python path?

dodotronix opened this issue · comments

Vunit seems to install its tests into "test" in the Python path.

I found out that, if i create my own archlinux package according to the pkgbuild guidelines from archwiki, i get following error when i run makepkg -si

error: failed to commit transaction (conflicting files)
vunit-hdl-git: /usr/lib/python3.11/site-packages/tests/__init__.py exists in filesystem (owned by python-protonvpn-nm-lib)
vunit-hdl-git: /usr/lib/python3.11/site-packages/tests/__pycache__/__init__.cpython-311.opt-1.pyc exists in filesystem (owned by python-protonvpn-nm-lib)
vunit-hdl-git: /usr/lib/python3.11/site-packages/tests/__pycache__/__init__.cpython-311.pyc exists in filesystem (owned by python-protonvpn-nm-lib)

Here is my package

#ARCH PKGBUILD

_gitrepo='vunit'
pkgname='vunit-hdl-git'
pkgver=4.7.0.40
pkgrel=1
pkgdesc="Vunit framework for writing automated HDL testbenches"
arch=('any')
url="https://github.com/VUnit/vunit.git"
license=('GPL3')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-setuptools' 'python-wheel')
depends=('python-colorama')
conflicts=($pkgname)
source=("git+https://github.com/VUnit/$_gitrepo.git")
sha384sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitrepo"
  sed -i 's/\(setuptools_scm\).*/\1 >= 2.0.0"/g' pyproject.toml
 git describe --tags --long | sed 's/^v\([^-]*-[^-]*\)-g.*/\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_gitrepo"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_gitrepo"
  python -m installer --destdir="$pkgdir" dist/*.whl
}

According to the archwiki in the chapter "Test directory in site-package" it is not recommended practice to install tests in /usr/lib/pythonX.Y/site-packages/tests/