Re: pyliblo3 - %python3 setup.py test fails

2024-09-03 Thread Martin Gansser
ok, thanks. Regards Martin -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guideli

Re: pyliblo3 - %python3 setup.py test fails

2024-09-03 Thread José Abílio Matos
On Tuesday, 3 September 2024 10:53:56 WEST Martin Gansser wrote: > cp scripts/dump_osc.1 %{buildroot}%{_mandir}/man1/ > cp scripts/send_osc.1 %{buildroot}%{_mandir}/man1/ You can merge this into a single line. Another suggestion is to preserve the time stamps (for example using -a): cp -a script

Re: pyliblo3 - %python3 setup.py test fails

2024-09-03 Thread Martin Gansser
problem solved by changing this in the rpm spec file. %prep %autosetup -p1 -n pyliblo3-%{commit0} # Remove pregenerated Cython C sources and build it again rm -rf pyliblo3/_liblo.c # Fix permissions (fix for rpmlint warning "spurious-executable-perm") chmod 644 NEWS README.md COPYING %generate_

Re: pyliblo3 - %python3 setup.py test fails

2024-09-02 Thread Martin Gansser
when i use %tox for testing, it works. # dnf -y install python3-tox-current-env %check # Set up the environment variables for running tests $TOX_TESTENV_PASSENV %tox -- --parallel 0 -- --verbose tests/* -- ___ devel mailing list -- devel@lists.fedorapr

Re: pyliblo3 - %python3 setup.py test fails

2024-08-30 Thread Martin Gansser
and this with: [martin@fc40 pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460]$ tox -e py312 -- --verbose test/unit.py ROOT: No tox.ini or setup.cfg or pyproject.toml found, assuming empty tox.ini at /home/martin/rpmbuild/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460 .pkg: _optional_h

Re: pyliblo3 - %python3 setup.py test fails

2024-08-30 Thread Martin Gansser
Hi Miro, when i running this command in the rpm BUILD folder, i get a success message. [martin@fc40 pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460]$ python3 -m tox -q --recreate -e py312 --parallel 0 -- --verbose test/unit.py test/unit.py.patch py312: OK (15.12 seconds) congratulations

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Martin Gansser
sorry, no success test1: %check mv pyliblo3 pyliblo3_dont %{py3_test_envvars} %{python3} -m unittest discover ... + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/home/martin/rpmbuild/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/.pyproject-builddir' + PYTEST_XDIST_AUTO_N

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Miro Hrončok
On 29. 08. 24 15:45, Martin Gansser wrote: i attached spec file and log messages, hope it helps. [1] https://martinkg.fedorapeople.org/ErrorReports/pyliblo3.spec [2] https://martinkg.fedorapeople.org/ErrorReports/pyliblo3-build-mess.txt [3] https://martinkg.fedorapeople.org/ErrorReports/rpm-tmp.

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Martin Gansser
i attached spec file and log messages, hope it helps. [1] https://martinkg.fedorapeople.org/ErrorReports/pyliblo3.spec [2] https://martinkg.fedorapeople.org/ErrorReports/pyliblo3-build-mess.txt [3] https://martinkg.fedorapeople.org/ErrorReports/rpm-tmp.894bVx Regards Martin -- __

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Miro Hrončok
On 29. 08. 24 15:07, Martin Gansser wrote: I get the same error message with both commands: + PATH=/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/martin/.local/bin

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Martin Gansser
I get the same error message with both commands: + PATH=/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/martin/.local/bin:/home/martin/bin + PYTHONPATH=/home/martin/

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Miro Hrončok
On 29. 08. 24 14:16, Martin Gansser wrote: %{py3_test_envvars} %{python3} -m unittest discover Put that on a single line like this: %{py3_test_envvars} %{python3} -m unittest discover Or export it, like this: export %{py3_test_envvars} %{python3} -m unittest discover -- Miro Hrončok -- Phon

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Martin Gansser
Hi Miro, thanks for your respond. %check # Set up the environment variables for running tests %{py3_test_envvars} %{python3} -m unittest discover causes this error message cd pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-

Re: pyliblo3 - %python3 setup.py test fails

2024-08-29 Thread Miro Hrončok
On 29. 08. 24 10:53, Martin Gansser wrote: Hi, i want to use %python3 setup.py test [1] with pyliblo3, but this fails. Running setup.py test is deprecated and even if it worked, please don't use it. For this package, I think this should work: %check %{py3_test_envvars} %{python3} -m unittest