Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Still hardcoding version numbers in 2021? Why not use setupmeta


Probably because setupmeta seems to only supports setup.py, which this guide doesn’t use (and isn’t generally recommended for most use cases).


I maintain over 50 public packages with setup.py and most of them have setupmeta, it's great and I would recommend it for all use cases.


Sure, and that’s fine. My statement was based off https://packaging.python.org/tutorials/packaging-projects/

> dynamic metadata [(setup.py)] should be used only as an escape hatch when absolutely necessary.


Dynamic version numbers based on git tags are absolutely necessary to me, to ease my continuous integration practice, that's also what openstack/pbr does amongst probably other things




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: