Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
Hello, I would like to know how to detect (e.g. via a linter) typos in function names imported from another module. Let's assume this given Python code snippet. import foo foo.baR() The package "foo" do contain a function named "bar()" (all lower case letters). The function "baR()" does not

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
Hello Dieter, thanks for your reply. Am 06.11.2023 19:11 schrieb Dieter Maurer: One option is a test suite (--> Python's "unittest" package) with a sufficiently high coverage (near 100 %). Yes, that is the primary goal. But it is far away in the related project. I got a hint that "pylint"

Request to Review: Tutorial about Python Packaging offering different use case

2023-12-13 Thread Christian Buhtz via Python-list
Hello, I would like to point to my Python Packaging Tutorial explaining several common use cases using minimal demo projects. I am not an expert and assume that some of my solutions might not be the best. So I would appreciate if you ca

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Christian Buhtz via Python-list
What is the "command line" on your Windows 11? On Windows 10 it usually is "cmd.exe" (Windows Command Prompt). On Windows 11 it usually is the "Terminal" which is different from cmd.exe. -- https://mail.python.org/mailman/listinfo/python-list

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
Thank you very much for all your responses. Am 24.10.2024 17:17 schrieb Left Right: To investigate this, I'd edit the file with the assertion and make it print the actual value found in os.lstat and func. My guess is that they are both somehow "lstat", but with different memory addresses. My

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
Hello Barry, thank you for your reply and clarifying the Fedora aspects. Am 25.10.2024 00:44 schrieb Barry: What do you mean by the real file sustem? You cannot write to the /usr file system. Is that what your tests do? If so that needs changing. Asking the right questions brings up to impor

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
Am 25.10.2024 09:06 schrieb Christian Buhtz via Python-list: On a "regular" system all tests are running. To clarify: "regular" does not exclude PyFakeFS. It means on my own local development machine and on the TravsCI machines (Ubuntu 22 with Python 3.9 up to 3.13) a

shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Christian Buhtz via Python-list
Hello, I am upstream maintainer of "Back In Time" [1] investigating an issue a distro maintainer from Fedora reported [2] to me. On one hand Fedora seems to use a tool called "mock" to build packages in a chroot environment. On the other hand the test suite of "Back In Time" does read and writ

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-26 Thread Christian Buhtz via Python-list
As you can see in the linked issue it seems it was an incompatibility between the version of Python and PyFakeFS. In the end it was a Fedora packaging bug because that pyfakefs version was not compatible with Python 3.13. Thanks in advance for helping out. -- https://mail.python.org/mailman/list

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-14 Thread Christian Buhtz via Python-list
Hello Chris, I do have similar "problems" and still try to get used to the "new way". Other might correct me. I am not sure yet. To my current understanding the way to go is to install Python applications via "pipx". That make the application available in your system but also isolate it in it

Re: Trailer for upcoming Python documentary

2025-05-19 Thread Christian Buhtz via Python-list
Am 18.05.2025 22:16 schrieb Larry Martell via Python-list: https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ Awesome! Which release channels will be used? How can we pay? -- https://mail.python.org/mailman/listinfo/python-list