For some reason, since this morning, the #pip that I installed via #pipx does not work with my other #virtualenv setups anymore (it installs all packages in its own pipx venv instead of the currently active venv).
Has anyone else encountered this issue? It makes pip virtually (hoho) unusable!
I'm making a list of #Windows apps I'm pulling from various sources, which might come handy if I need to install things on new systems. (Doesn't yet include stuff that I installed directly and have actually sensible self-updater, or things like language runtimes/frameworks.)
Currently I have
- 19 apps from #chocolatey
- 4 #Python apps from #pipx
- 1 app from #winget
Testing out #novelWriter app for #writing projects.
Bad news so far:
- Can't install via #chocolatey...
Good news so far:
- ...But I CAN just install it via #pipx and not waste disk space on yet another bloody random #Python runtime
- Seems to store all of its stuff as individual files in a folder hierarchy, like #Scrivener. Which is rad. Makes things #git friendly.
- Dark mode. OH YES.
- Actually, I think the whole markup style formatting is a thing that a lot of apps didn't do right and totally should be doing
I will definitely explore this more as an alternative and maybe even a replacement for Scrivener. Not that there's much wrong with Scrivener, it's just cool to see that the #opensource apps have been catching up while I wasn't looking.
@mckean
I presume you are speaking about the package and project manager uv?
Sounds interesting, thanks for the impetus to take a look at it.
Updating my #Manjaro updated the system's #Python to 3.13, yay!
It broke my #ThonnyIDE which was installed via #pipx, and I'm having torebuild a lot of stuff, not good!
@wonderfox_dev@suya.place @rf@mastodon.ml Если это софтина, а не библиотека то попробуй #pipx https://github.com/pypa/pipx
Я им пользовался, удобно.
Can you try installing it with `pipx` instead?
pipx will create a Python virtualenv just for that program, and install all of its dependencies into that virtual environment. It can then run independently of any system-level versions of those same packages that are installed *for the distro-shipped Python tools*.
The version pipx installs can be upgraded (or left alone) completely independently of OS updates.
An improved method of checking for outdated #pipx packages that excludes dev or alpha packages.
Courtesy of: https://github.com/pypa/pipx/issues/149#issuecomment-2342748206
Python-Pakete selbst veröffentlichen
In diesem Artikel lernst du, wie du Python-Pakete erstellst, sicher verwaltest und auf PyPI veröffentlichst.
#Python #pip #pipx #pypi.org #Sicherheit #Pakete #Bibliotheken #Skripte #Linux
If I remember correctly, I couldn't get a file dependency working like `pipx run` for local development purposes, but the newest version of `uv` seems to work as I would expect.
Modern Good Practices for Python Development
An outline of best practices for #Python development, including using tools like #pyenv, #pipx or Development Containers for managing Python versions. It also recommends using pyproject.toml for project configuration, virtual environments for package management, and tools like Black, #Ruff, and #pytest for code formatting, linting, and testing.
#PythonBestPractices #PythonDevelopment #PythonTools #PythonProgramming
https://www.stuartellis.name/articles/python-modern-practices/
Zajęło mi to prawie 3 godziny, ale #PipX 1.6.0 wylądował w #Gentoo, z nową wersją podrobionych danych testowych, które zajmują tylko 70 KiB (autorzy używają ~160 MiB paczek, dla każdej implementacji z osobna).
Co istotniejsze, tym razem nie stworzyłem tego na kolanie, ale napisałem porządny skrypt z instrukcjami, którego będzie można użyć przy kolejnych wersjach.
It took me almost 3 hours but #PipX 1.6.0 is now in #Gentoo, with an updated test shim that makes it possible to test using fake wheels and is only 70 KiB (vs. upstream that uses ~160 MiB for every single implementation).
What's more important, this time it isn't a handmade proof-of-concept anymore but a proper script with instructions that can be used to easily deal with future releases.
Neueste Episode: Python Libraries auf PyPI
Erfahre, wie du eine Library auf PyPI veröffentlichst und wie mein Tool QRClipboard funktioniert. Installiere es mit PIPX und verwandle Texte aus der Zwischenablage in QR-Codes.
Hinweis: Überprüfe immer den Code von PyPI-Libraries auf Sicherheit.
https://podcasters.spotify.com/pod/show/friedjof/episodes/Python-Libraries-auf-PyPI-e2k1tvm
Man, the longer I have #NixOS and
#Manjaro running in parallel, the more annoyed I am by the
#ArchLinux way, e.g.:
· Python update ⇒ all python-based #AUR packages must be rebuilt. #pipx-installed packages also need reinstallation.
· separation between distro repos and AUR is anoying. 'yay -Syu' (or whatever) never really works in one go (be it some stupid sudo prompt later)
· so many AUR packages don't build reliably or at all.
...
#python #rust #uv #pipx #pipxu
- https://github.com/bulletmark/pipxu
#pipxu Install and Run Python Applications in Isolated Environments using UV
#pipxu is a re-implementation of most of the functionality of the popular #pipx tool but is much faster because it uses #uv to create and install application virtual environments instead of venv and pip as used by #pipx
For Ubuntu, the deadsnakes repo can be used to install a bunch of other versions, or the pyenv tool can do it. There are other ways too.
Then, get used to using virtual environments for development (so you're not installing your project's dependencies globally, and you can't get conflicts).
For installing 3rd-party tools not in your OS, i.e. you're not hacking them, just using them, use `#pipx install --python python3.11 <pypi-name>`. pipx is in the system repos.
2/2
A couple of nice, little 'quality-of-life' improvements in the #python eco-system that I've been starting to use & play with this week.
- package-mode option now being available in Poetry
- inline run dependencies being supported in #pipx have been
Thinking about how/if I can invalidate the pipx cache instead of going in & manually deleting packages. Eh, in any case, glad I converted over to pipx a few months ago. Keeps things much cleaner, for me.