build: remove versioningit build-req from sdist#5632
Conversation
- Replace `tool.versioningit.onbuild` hook with a custom implementation which replaces the entire `streamlink._version` module (similar to before) and which additionally removes `versioningit` from the `build-system.requires` field in `pyproject.toml` and which sets a static version string in `setup.py` - Rewrite `streamlink._version` module - Add and update comments - Update docs - Add tests
|
And for good measure, I also tested building using the PKGBUILD from the Arch Linux repos... My initial plan was to override the The current solution should be good enough. I don't care that it modifies |
tool.versioningit.onbuildhook with a custom implementation which replaces the entirestreamlink._versionmodule (similar to before) and which additionally removesversioningitfrom thebuild-system.requiresfield inpyproject.tomland which sets a static version string insetup.pystreamlink._versionmoduleFollow-up of #5625
sdist and bdist build just fine...
pyproject.toml and setup.py changes in sdist:
streamlink._versionmodulewheel metadata
Installing from the sdist ✔️
Installing from the wheel ✔️
Installing from git ✔️
Installing in editable mode ✔️
Building wheel from sdist ✔️