What is Nostr?
Matthew Martin β˜‘ βœ…πŸ“› /
npub1anj…k3c3
2024-02-06 01:43:19

Matthew Martin β˜‘ βœ…πŸ“› on Nostr: #python versions ``` def version_from_metadata(package: str) -> str: return ...

#python versions

```
def version_from_metadata(package: str) -> str:
return metadata.version(package)
```

This works great until you switch lock files to `COPY src/* /app` in your dockerfile and now you are back to manually updating the `__version__` string by hand again.

Wait, did I write something to solve this recently?

https://pypi.org/project/metametameta/
Author Public Key
npub1anj34n7xep997cj6w4d7mysld6kx48d2d7ggzuz8jqwmuq332ghs5tk3c3