home.social

#astraluv — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #astraluv, aggregated by home.social.

fetched live
  1. @hbelmiro Don't tell him how they do it in #nodeJs ;)

    But it's nice to see someone notices other tools than #astralUv

  2. @hbelmiro Don't tell him how they do it in #nodeJs ;)

    But it's nice to see someone notices other tools than #astralUv

  3. Update: 0.5.9 solves this problem ! This means I can (almost) use uv everywhere in my workflows. The only remaining exceptions are debug builds, pre-releases and versions older than 3.8, all of which I can still get through !

  4. Hey everyone thanks so much for all your replies! Wanted to circle wagons since I found a VERY satisfying conclusion!

    They JUST added an experimental flag that makes the uv installed python into your current default by adding it to $HOME/.local/bin/python and ensuring that's in PATH. The command is:
    uv python install --preview --default

    Kudos to the #astraluv folks for all their amazing work!

  5. Hey everyone thanks so much for all your replies! Wanted to circle wagons since I found a VERY satisfying conclusion!

    They JUST added an experimental flag that makes the uv installed python into your current default by adding it to $HOME/.local/bin/python and ensuring that's in PATH. The command is:
    uv python install --preview --default

    Kudos to the #astraluv folks for all their amazing work!

  6. #python peeps: I switched from pyenv to #astraluv but am confused about PATH management.

    If you use uv to manage your python installs, how do you handle adding it to your PATH?

  7. #python peeps: I switched from pyenv to #astraluv but am confused about PATH management.

    If you use uv to manage your python installs, how do you handle adding it to your PATH?

  8. Update: I am now embracing lock files in CI in most packages I control.
    I’m very used to CI being a gamble: every time I push with confidence and see CI going red, my first reflex is to suspect something changed in the environment. I'm just coming to terms with the idea that *it doesn't need to be this way*; especially in projects that already a special CI job whose sole purpose is to catch incoming incompatibilities, it makes more sense that *other* jobs just be stable.

  9. Update: I am now embracing lock files in CI in most packages I control.
    I’m very used to CI being a gamble: every time I push with confidence and see CI going red, my first reflex is to suspect something changed in the environment. I'm just coming to terms with the idea that *it doesn't need to be this way*; especially in projects that already a special CI job whose sole purpose is to catch incoming incompatibilities, it makes more sense that *other* jobs just be stable.
    #astraluv #Python

  10. @hynek, maybe you’d have some key insight I'm missing here ? It seems you do use lockfiles but are also involved in libraries. Do you use the former when developing the latter ?

  11. @hynek, maybe you’d have some key insight I'm missing here ? It seems you do use lockfiles but are also involved in libraries. Do you use the former when developing the latter ?
    #astraluv #Python

  12. The thing with is I don't think I understand lock files, and how they’re supposed to be used/maintained. Maybe it's because I mainly develop and maintain libraries and it doesn't make as much sense in that space: I need to be able to test a range of versions of my dependencies (I have little control over my users’ environment), and lockfiles tend to add artificial restrictions to these ranges, to the benefit of (maybe ?) my immediate confort but to the detriment of my users.

  13. The thing with #astraluv is I don't think I understand lock files, and how they’re supposed to be used/maintained. Maybe it's because I mainly develop and maintain #Python libraries and it doesn't make as much sense in that space: I need to be able to test a range of versions of my dependencies (I have little control over my users’ environment), and lockfiles tend to add artificial restrictions to these ranges, to the benefit of (maybe ?) my immediate confort but to the detriment of my users.

  14. 📣 New #webdev related blog post here, introducing my take on what a #Django project template could be for an advanced usage. Obviously #astraluv is there, but also #justsystems , #esbuild , and... #SOPS 🔐

    It's very early stage so please tell me what do you think about it 🙏

    david.guillot.me/en/posts/tech

  15. 📣 New #webdev related blog post here, introducing my take on what a #Django project template could be for an advanced usage. Obviously #astraluv is there, but also #justsystems , #esbuild , and... #SOPS 🔐

    It's very early stage so please tell me what do you think about it 🙏

    david.guillot.me/en/posts/tech

  16. pipx run uv install uv 😄

    uv is a tool written in Rust that replaces as a 95% drop-in replacement pip, pipx, pip-tools and a few other things.

    So far it's looking pretty cool. It's faster, I guess, and the output is a bit neater and more "interactive" or "live".

    One great thing is that you can have a globally installed uv and it will operate correctly in whatever your current Python environment, whereas with pip-tools you always need to take care to run the one installed in the environment you're compiling the pinned dependencies for, or it will calculate python version wrong for the dependencies that are conditional on that.

    #uv #python
    #PythonUv #AstralUv #UvTool

  17. pipx run uv install uv 😄

    uv is a tool written in Rust that replaces as a 95% drop-in replacement pip, pipx, pip-tools and a few other things.

    So far it's looking pretty cool. It's faster, I guess, and the output is a bit neater and more "interactive" or "live".

    One great thing is that you can have a globally installed uv and it will operate correctly in whatever your current Python environment, whereas with pip-tools you always need to take care to run the one installed in the environment you're compiling the pinned dependencies for, or it will calculate python version wrong for the dependencies that are conditional on that.

    #uv #python
    #PythonUv #AstralUv #UvTool

  18. 🚀 I just converted my open source projects to use uv for installation, with the new setup-uv action ( github.com/astral-sh/setup-uv ) and tox-uv ( pypi.org/project/tox-uv/ ). (They already used uv’s 'pip compile' command to pin test dependencies.)

    For the smaller projects with fast test suites, I saw up to a 3x improvement, thanks to all the setup overhead shrinking (e.g. 1m40s -> 40s).

  19. 🚀 I just converted my open source projects to use uv for installation, with the new setup-uv action ( github.com/astral-sh/setup-uv ) and tox-uv ( pypi.org/project/tox-uv/ ). (They already used uv’s 'pip compile' command to pin test dependencies.)

    For the smaller projects with fast test suites, I saw up to a 3x improvement, thanks to all the setup overhead shrinking (e.g. 1m40s -> 40s).

    #astraluv #Python

  20. 0.2.15 is out and includes a new tool that I’ve wanted for so long: `uv pip tree` displays the whole dependency tree in your current virtualenv !

    pypi.org/project/deptree/ Already implemented this but it's much more convenient to have a version of this tool that doesn’t actively “pollute" the environment it’s meant to display.

    kudos to @charliermarsh and team 🎉

    github.com/astral-sh/uv/releas