Re: Macro to smoke-test-import a Python module in %check

2021-08-04 Thread Michel Alexandre Salim via devel
On Wed, Jul 14, 2021 at 07:27:52PM +0200, Miro Hrončok wrote: > On 08. 07. 21 16:48, Miro Hrončok wrote: > > On 29. 06. 21 8:28, Felix Schwarz wrote: > > > > > > Am 28.06.21 um 21:44 schrieb Miro Hrončok: > > > > The semantics is quite simple: > > > > > > > > > > > > %check > > > > %py

Re: Macro to smoke-test-import a Python module in %check

2021-07-14 Thread Miro Hrončok
On 08. 07. 21 16:48, Miro Hrončok wrote: On 29. 06. 21 8:28, Felix Schwarz wrote: Am 28.06.21 um 21:44 schrieb Miro Hrončok: The semantics is quite simple: %check %py3_check_import mymodule mymodule.submodule Looks great! Thank you. Please let us know when we should start adding

Re: Macro to smoke-test-import a Python module in %check

2021-07-11 Thread Miro Hrončok
On 11. 07. 21 21:05, Richard Shaw wrote: Trying this with python-pyside2... + /usr/bin/python3 -c 'import PySide2' PySide2/__init__.py: Unable to import shiboken2 from , /builddir/build/BUILDROOT/python-pyside2-5.15.2-4.fc35.x86_64/usr/lib64/python3.10/site-packages, /builddir/build/BUILDROOT/

Re: Macro to smoke-test-import a Python module in %check

2021-07-11 Thread Richard Shaw
Trying this with python-pyside2... + /usr/bin/python3 -c 'import PySide2' PySide2/__init__.py: Unable to import shiboken2 from , /builddir/build/BUILDROOT/python-pyside2-5.15.2-4.fc35.x86_64/usr/lib64/python3.10/site-packages, /builddir/build/BUILDROOT/python-pyside2-5.15.2-4.fc35.x86_64/usr/lib/p

Re: Macro to smoke-test-import a Python module in %check

2021-07-08 Thread Miro Hrončok
On 29. 06. 21 8:28, Felix Schwarz wrote: Am 28.06.21 um 21:44 schrieb Miro Hrončok: The semantics is quite simple: %check %py3_check_import mymodule mymodule.submodule Looks great! Thank you. Please let us know when we should start adding that to our Python packages. :-) Feel f

Re: Macro to smoke-test-import a Python module in %check

2021-06-28 Thread Felix Schwarz
Am 28.06.21 um 21:44 schrieb Miro Hrončok: The semantics is quite simple:     %check     %py3_check_import mymodule mymodule.submodule Looks great! Thank you. Please let us know when we should start adding that to our Python packages. :-) Felix ___

Re: [Fedora-packaging] Macro to smoke-test-import a Python module in %check

2021-06-28 Thread Dan Čermák
Miro Hrončok writes: > On 28. 06. 21 22:25, Dan Čermák wrote: >> Hi Miro, >> >> Miro Hrončok writes: >> >>> Hello Python RPM packagers, >>> >>> based on some discussion in the "F35 Change: Python Packaging Guidelines >>> overhaul (System-Wide Change proposal)" thread [0], I've drafted a macro

Re: [Fedora-packaging] Macro to smoke-test-import a Python module in %check

2021-06-28 Thread Miro Hrončok
On 28. 06. 21 22:25, Dan Čermák wrote: Hi Miro, Miro Hrončok writes: Hello Python RPM packagers, based on some discussion in the "F35 Change: Python Packaging Guidelines overhaul (System-Wide Change proposal)" thread [0], I've drafted a macro that can help to test-import a Python module in %

Re: [Fedora-packaging] Macro to smoke-test-import a Python module in %check

2021-06-28 Thread Dan Čermák
Hi Miro, Miro Hrončok writes: > Hello Python RPM packagers, > > based on some discussion in the "F35 Change: Python Packaging Guidelines > overhaul (System-Wide Change proposal)" thread [0], I've drafted a macro that > can help to test-import a Python module in %check when no other tests exist

Macro to smoke-test-import a Python module in %check

2021-06-28 Thread Miro Hrončok
Hello Python RPM packagers, based on some discussion in the "F35 Change: Python Packaging Guidelines overhaul (System-Wide Change proposal)" thread [0], I've drafted a macro that can help to test-import a Python module in %check when no other tests exist or are when they cannot be executed dur