Kilian Klugepragmaticnotes.hashnode.devยทMay 23, 2024Exposing the package version defined in the pyproject.toml as a __version__ variableBy convention, Python packages expose their version through a __version__ variable: >>> import package >>> package.__version__ 0.4.2 Ideally, the package version should be defined in one place only. Typical approaches include hardcoding it in the pa...344 readsCheat SheetshatchAdd a thoughtful commentNo comments yetBe the first to start the conversation.