• Unsealed9041@lemmy.ca
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

    They kind of lost me at piping a script to sh. Is this the official way? Get your shit packaged into the popular distros. DevOps isn’t that hard.

  • beeng@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    3 days ago

    Using the UV hashbang and a few doc strings for dependencies so you can run full on python scripts as executables is fucking crack.

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      wreck can. It’s venv aware. Takes full advantage of hierarchical requirement files. Is intuitive. The learning curve is minimal. Written in Python.

      [[tool.wreck.venvs]]
      venv_base_path = '.venv'
      reqs = [
          'requirements/pip',
          'requirements/pip-tools',
          'requirements/prod',
          'requirements/dev',
          'requirements/manage',
          'requirements/kit',
          'requirements/mypy',
          'requirements/tox',
      ]
      [[tool.wreck.venvs]]
      venv_base_path = '.doc/.venv'
      reqs = [
          'docs/requirements',
          'docs/pip-tools',
      ]
      
      [tool.setuptools.dynamic]
      dependencies = { file = ['requirements/prod.unlock'] }
      optional-dependencies.pip = { file = ['requirements/pip.lock'] }
      optional-dependencies.pip_tools = { file = ['requirements/pip-tools.lock'] }
      optional-dependencies.dev = { file = ['requirements/dev.lock'] }
      optional-dependencies.manage = { file = ['requirements/manage.lock'] }
      optional-dependencies.docs = { file = ['docs/requirements.lock'] }
      

      reqs fix --venv-relpath='.venv'

      reqs fix --venv-relpath='.doc/.venv'

      From *.in requirements files would produce *.unlock and *.lock files for venv .venv. Package versions are sync’ed within all requirements files within that venv.

    • _stranger_@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      UV has a shitload of features. I’ve only ever really used it for making virtualemvs for easier cross platform compatibility, but even just for that, there’s tons of options related to which packages, from where, etc.

      tl:dr probably, although differentiating between “deploy” and “dev” installs is the task of the package config which UV doesn’t (to my knowledge) replace in any way.