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
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
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_
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
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
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
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
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.
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
--
__
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
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/
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
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-
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
14 matches
Mail list logo