• ertai@programming.dev
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    12 hours ago

    Yet another python packager............... insane that such a popular language still doesn’t have this basic problem solved.

  • dinckel@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    15 hours ago

    It’s a really bold claim. Every time a new package manager and/or dependency resolver comes around, we have the exact same headline

    • BitSound@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      13 hours ago

      It is a bold claim, but based on their success with ruff, I’m optimistic that it might pan out.

      • monogram@feddit.nl
        link
        fedilink
        English
        arrow-up
        8
        ·
        14 hours ago

        pipx, poetry, pipsi, fades, pae, pactivate, pyenv, virtualenv, pipenv

        Let’s hope this next one will be the true standard.

          • dallen@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            11 hours ago

            I’ve been mostly a poetry guy but have tested out uv a bit lately. Two main advantages I see are being able to install Python (I relied on pyenv before) and it’s waaay faster at solving/installing dependencies.

            • sugar_in_your_tea@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              10 hours ago

              Yeah, it certainly looks nice, but my problems are:

              • everything runs in a docker container locally, so I don’t think the caching is going to be a huge win
              • we have a half-dozen teams and a dozen repositories or so, across three time zones, so big changes require a fair amount of effort
              • we just got through porting to poetry to split into dependency groups, and going back to not having that is a tough sell

              So for me, it needs to at least have feature parity w/ poetry to seriously consider.

      • gigachad@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        12 hours ago

        We do geodata science and rely on some pretty specific C++ libraries that are only distributed via conda. While on unix-based systems it’s possible to get some of them from other channels or even building them from source, we mostly have Windows machines in production where we are not that flexible. Docker is unfortunately no solution due to security concerns.

        If you are asking why I hate it: It’s bloated, uses more space than needed and it’s rare I can reproduce an environment from the environment file without running into errors. Using it feels unintuitive, I still google command after years. It was very slow until recently, when the libmamba solver was finally integrated. Last but not least licensing is a pain in the ass.

        • Eager Eagle@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 hours ago

          I share the same frustration trying to replicate an environment. I’m glad I can avoid it these days, the community needs a way out of the conda lock-in.

        • db0@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          10 hours ago

          Interesting. We use conda via micromamba for my own project, as it makes the install for end-users much easier when they can just run a shell script, to install python, cuda, and all the dependencies needed.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      13 hours ago

      Looks like it has basic support:

      • required-python = "..."
      • dependencies = [ ... ]

      Once it gets dependency groups, I’ll try it out. I’m currently using poetry, which works, but I’m always interested in better perf.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        8 hours ago

        it already has dep groups; e.g.

        uv add --optional staging pytest

        then

        uv sync --extra staging

        to install / uninstall packages accordingly.

        They have a --dev shorthand for dev dependencies, but it seems the dependency group PEP is not final, so there isn’t a standardized way of doing this yet.

        • beeng@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          Private PyPI too?

          We’re coming from poetry but it’s slow and needs its own .venv, so a UV binary would be very nice.