What is the standard way to embed a version into a Python package?

Asked 2 years ago

I'm trying to make sure that my project follows convention. Help. Thanks in advance.

Sergio Calhoun

Sunday, July 24, 2022

There is no one standard way to embed a version into a Python package. However, many Python developers follow the convention of using a version control system, such as Git, and tagging each release with a version number. This allows developers to easily track and rollback to previous versions, if necessary. Other developers may choose to hard-code version numbers into their source code, which can be helpful if the package will be distributed without a version control system.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?