Dynamic Fashions Pvt Ltd

Dynamic Fashions Pvt Ltd. However, if you want the version to be available in the variable __version__ in the __init__.py file of your module, you need to dynamically update the value of this variable when. See the dedicated versioning section.

Dynamic Fashions Pvt Ltd

If you need to reference it. Project metadata is stored in a pyproject.toml file located at the root of a project's tree and is based entirely on the standard. Many build backends can read the version from a __version__ attribute in your code, a git tag, or similar.

To Do This, You Need To Leave The Version Field Out From Your Pyproject.toml And Add Version To The List Of Project.dynamic:


Then use importlib.metadata.version to get the version number. Many build backends can read the version from a __version__ attribute in your code, a git tag, or similar. See the dedicated versioning section.

Currently The Following Fields Can Be Listed As Dynamic:


However, if you want the version to be available in the variable __version__ in the __init__.py file of your module, you need to dynamically update the value of this variable when. The name of the project. Setting the project verion dynamically can be done by changing up the following to your pyproject.toml.

When These Fields Are Expected To Be Provided By.


If you need to reference it.

Images References :

Project Metadata Is Stored In A Pyproject.toml File Located At The Root Of A Project's Tree And Is Based Entirely On The Standard.


In such cases, you should mark the field as. For setuptools, there is an easier way to get. However, if you want the version to be available in the variable __version__ in the __init__.py file of your module, you need to dynamically update the value of this variable when.

Currently The Following Fields Can Be Listed As Dynamic:


The name of the project. If you need to reference it. When these fields are expected to be provided by.

I've Read Through The Dynamic Metadata Section Of The Docs.


Many build backends can read the version from a __version__ attribute in your code, a git tag, or similar. Hatch only accepts a path to store your version. To do this, you need to leave the version field out from your pyproject.toml and add version to the list of project.dynamic:

Then Use Importlib.metadata.version To Get The Version Number.


3 dynamic versioning works differently on different build backends. Setting the project verion dynamically can be done by changing up the following to your pyproject.toml. Judging by [tool.setuptools.dynamic], you're using setuptools.

See The Dedicated Versioning Section.