versioning
VersionInputs
¶
Bases: BaseModel
Container with information to generate a version.
Attributes:
Name | Type | Description |
---|---|---|
version_prefix |
str
|
... |
version |
str
|
... |
run_id |
str | None
|
... |
sha |
str
|
... |
pr_number |
int | None
|
... |
branch |
str
|
... |
is_release |
bool
|
... |
is_release_pr |
bool
|
... |
is_hotfix_pr |
bool
|
... |
Source code in m/ci/versioning.py
build_m_tag(ver_input, config)
¶
Build an valid "M_TAG".
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ver_input |
VersionInputs
|
The inputs to create the tag. |
required |
config |
Config
|
The m configuration. |
required |
Returns:
Type | Description |
---|---|
str
|
An m tag that can be used to version npm and docker packages. |
Source code in m/ci/versioning.py
build_py_tag(ver_input, config)
¶
Build a valid python version.
The configuration object is provided since python does not accept using names of branches in the versions. For this reason we will map
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ver_input |
VersionInputs
|
The inputs to create the version. |
required |
config |
Config
|
The m configuration. |
required |
Returns:
Type | Description |
---|---|
str
|
A valid python tag. |