Re: git: a4c87a5576a9 - main - devel/py-libevdev: add new port
- In reply to: Jan Beich : "Re: git: a4c87a5576a9 - main - devel/py-libevdev: add new port"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Feb 2025 13:43:44 UTC
pep517 can deal with setup.py: ===> Building for py311-libevdev-0.11_1 * Getting build dependencies for wheel... /usr/local/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running egg_info writing libevdev.egg-info/PKG-INFO writing dependency_links to libevdev.egg-info/dependency_links.txt writing top-level names to libevdev.egg-info/top_level.txt reading manifest file 'libevdev.egg-info/SOURCES.txt' adding license file 'COPYING' writing manifest file 'libevdev.egg-info/SOURCES.txt' * Building wheel... Jan Beich <jbeich@freebsd.org> escreveu (segunda, 17/02/2025 à(s) 13:18): > "Jason E. Hale" <jhale@freebsd.org> writes: > > > On Mon, Feb 17, 2025 at 6:04 AM Jan Beich <jbeich@freebsd.org> wrote: > > > >> > >> Charlie Li <vishwin@freebsd.org> writes: > >> > >> > Needs LIB_DEPENDS on devel/libevdev. > >> > >> Done in bc369d345016. > >> > >> > Also the project includes a pytest testing framework so > >> > USE_PYTHON=pytest should be added. > >> > >> Leaving up to the maintainer: > >> - devel/libevdev has -Dtests=disabled, so why enable here? > >> - /dev/uinput fails inside jail to create synthetic /dev/input/* > >> - Some tests fail for other reasons e.g., missing linsysfs(4) node > >> - USES=pytest doesn't work for me WITH_TESTING=yes (d7700ff7fde6) > > > > The python tests are separate. USES=pytest is not valid, it should be > > USE_PYTHON=pytest. > > Sorry, I forgot USES=pytest exists and meant USE_PYTHON=pytest. > Even devel/py-pytest itself fails WITH_TESTING=yes for me. > I don't maintain this port to trust my own manual testing. > > > The tests work fine for me. > > Did you run tests as root user? Otherwise, /dev/uinput tests are skipped. > Did you run tests via poudriere? Otherwise, tests run fine (with failures). > > > This port should also be built with USE_PYTHON=pep517, not distutils. > > To make this happen, the port also needs: > > BUILD_DEPENDS= ${PY_SETUPTOOLS} \ > > > > ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} > > I disagree. Upstream doesn't ship pyproject.toml. > -- Nuno Teixeira FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org