Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
1337shadow
on April 8, 2021
|
parent
|
context
|
favorite
| on:
How to make a Python package in 2021
Still hardcoding version numbers in 2021? Why not use setupmeta
amarshall
on April 8, 2021
[–]
Probably because setupmeta seems to only supports setup.py, which this guide doesn’t use (and isn’t generally recommended for most use cases).
1337shadow
on April 8, 2021
|
parent
[–]
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.
amarshall
on April 8, 2021
|
root
|
parent
[–]
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.
1337shadow
on April 8, 2021
|
root
|
parent
[–]
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: