How do you set versioning in your Python packages?

Asked 4 months ago

What's the best way to set up versioning in Python so that I can automatically fetch the latest version like this: "object.version"?

Beckham Miranda

Saturday, October 15, 2022

Consider creating a _version.py file where you can store version information. In the file, create a __version__ attribute that stores the version as a string.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?