Re: pathfix.py will be removed from Python 3.12

2022-10-26 Thread Elliott Sales de Andrade
On Wed, Oct 26, 2022 at 6:41 AM Lumír Balhar wrote: > > Hello. > > Since Python 2.0 (1994), Python provided a useful tool pathfix.py that > we use in Python RPM macros for fixing shebangs of Python modules and > some RPM packages use it as well directly in their specfiles for similar > purposes. T

ImportError: attempted relative import with no known parent package

2022-10-26 Thread Sandro
Hi, I'm getting the ImportError from subject specifically when building python-plotnine for f36 (Python 3.10.7). The same package builds fine for f37 and rawhide (Python 3.11.0). The module the test is trying to import from is present in tests/, so I'm a bit stupefied as to why this fails. I

Re: pathfix.py will be removed from Python 3.12

2022-10-26 Thread Maxwell G
On Wed Oct 26, 2022 at 12:41 +0200, Lumír Balhar wrote: > Since Python 2.0 (1994), Python provided a useful tool pathfix.py that > we use in Python RPM macros for fixing shebangs of Python modules and > some RPM packages use it as well directly in their specfiles for similar > purposes. The scri

Exposing Shell environment variables from %pytest via %python3_test_envvars?

2022-10-26 Thread Miro Hrončok
Hello Pythonistas, while working on a change that requires adding a new Shell environment variable to both %pytest and %tox, I figured out we might benefit from defining such variables at one place. Maxwell suggested that this place should be exposed to packagers, so they could use it with o

pathfix.py will be removed from Python 3.12

2022-10-26 Thread Lumír Balhar
Hello. Since Python 2.0 (1994), Python provided a useful tool pathfix.py that we use in Python RPM macros for fixing shebangs of Python modules and some RPM packages use it as well directly in their specfiles for similar purposes. The script will no longer be part of CPython source code and p