archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.82k stars 509 forks source link

Using VCS as `pyparted` version lock #2494

Closed Torxed closed 1 month ago

Torxed commented 1 month ago

Changing to use github archive as dependency-url for pyparted as there hasn't been an update on pypi.org for pyparted in almost 12 months.

Tracking issue: https://github.com/dcantrell/pyparted/issues/106

Instead of downgrading, I think it's a safe bet that we should stop hoping for upstream to listen. Or at least I need to get this out of my ever growing backlog - as it occupies mental realestate like crazy.

So.. In PEP 508 spirit - despite it being against red hats own bloody guidelines where @dcantrell seemingly work - let's use the github archive as a version lock.. at least for pip users. Because downgrading really isn't an option. We'll keep using VCS or pypi wherever possible, but for pip this is the only decent workaround.

renovate-bot appears to honor PEP508 - but I haven't tested it if truth be told.

This superseeds:

svartkanin commented 1 month ago

Nice I didn't even know that's possible

Torxed commented 1 month ago

Yeah it's not commonly used, as you're supposed to be able to grab packages from pypi.org or package them via package managers. But it gets the job done here I recon hehe.

You can do pip install git+https://github.com/dcantrell/pyparted.git --break-system-packages too, to get the latest version. But since we're locking and using renovate-bot I thought this would be a nice similar experience :D