... related ...
Distribute shell scripts using setuptools and pyproject.toml, asked 20220830,
by Luting Wang,
https://stackoverflow.com/questions/73543323/distribute-shell-scripts-using-setuptools-and-pyproject-toml
...
Amazing #Python!
What to put in the [project.scripts] table if scripts are not stored in the "src" directory? reply 20231011,
by Brian61354270,
https://stackoverflow.com/questions/77273655/what-to-put-in-the-project-scripts-table-if-scripts-are-not-stored-in-the-src/77276392#77276392
@egerlach I do not find a way via "pyproject" https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts to be able to specify a file to be installed as is without creating wrapper which may not work for a file-name-with-hypen.
đ° Django News - Last call for DjangoCon US 2025 tickets! - Sep 5th 2025
https://django-news.com/issues/301
I used to think Rust testing was far behind Python with pytest, but thatâs not really the case. There's a googletest crate that fixes so many pain points: clearer failure messages, test fixtures, approx comparisons for floats, and more.
If you write tests in Rust, itâs worth giving this crate a try. I'm surprised it isnât more widely used, because it makes the testing experience much smoother.
https://docs.rs/googletest/latest/googletest/
#rust #googletest #python #pytest
#python tip. If you are tempted to write expressions like
return True if (some Boolean expression) else False
what you are actually saying to the interpreter is "If this expression is True then return True, otherwise return False." So it's simpler to return the Boolean expression directly. So for example
return True if email == "someone@example.com" else False
can (and IMHO usually should) be rewritten as
return email == ""someone@example.com"
Would you like to work with me?
Supertab is looking for another Senior Python Backend Developer.
Position is fully remote.
Pay is âŹ85k - âŹ92k
Details and apply form https://laterpay.jobs.personio.de/job/2292111?language=en&display=en
Things I didn't want to build/debug for doing some remote file ops with #sftp via #python + #paramiko :
"Add option to sleep between jobs
This was added because with $PROVIDER_NAME counting files sometimes fails with -EACCES even though we have a 755 mode on the directory that failed.
With some delay during processing/between jobs (even running with -vvv causes enough) that doesn't happen..."
The original code ran multiple times an hour for several years and stated failing this week...
âď¸ Talk spotlight! âď¸
đ10 Python Performance Mistakes I Wonât Make Again by @sash
Find out more here: https://pretalx.com/pyconuk-2025/talk/W7UQUE/
đď¸ Grab your ticket! https://2025.pyconuk.org/tickets/

#Python Friday #295: A Simple Strategy to Tackle Errors
https://pythonfriday.dev/2025/09/295-a-simple-strategy-to-tackle-errors/
Meow!
Mixins drew pet into huge refactoring. Multiple inheritance was never easy.
Interfaces that were vague now come into the shape. Everything is based on interfaces now.
Pet cannot see the end of this refactoring so it has to revise priorities:
1. Write pet apps in a temporary language for now.
2. Finish #petux
3. Finish refactoring.
(1) is a difficult choice. Pet was about to get back to #python, but does not want to become stupid again. #golang maybe?
If you applied for an opportunity grant, URGENTLY check your email (and spam folder). If you don't accept your grant we will need to pass it onto someone else!
We are still raising money to support more people. If you are in a position to make a donation, check this out: https://za.pycon.org/donations . We still have a long way to go!
