tag#

Compare tags

Functions

all_equal(a, b)

Check if all dependencies in a have a version equal to those in b.

all_greater_equal(a, b)

Check if all dependencies in a have a version greater or equal than those in b.

any_has_uncommitted(deps)

Check if any of the dependencies in deps has an uncommitted change.

equal(a, b)

Check if version a is equal to b.

greater(a, b)

Check if a is a version greater than that in b.

greater_equal(a, b)

Check if a is a version greater or equal than that in b.

has_uncommitted(ver)

Check of a version string encoded that there were uncommitted changes.

less(a, b)

Check if a is a version less than that in b.

less_equal(a, b)

Check if a is a version less or equal than that in b.

Details

depinning_inertia_2024.tag.all_equal(a: list[str], b: list[str]) bool#

Check if all dependencies in a have a version equal to those in b. It is allowed to have dependencies in a or b that are not in the other list.

Parameters
  • a – List of versions formatted as [“name=versionstring”, …].

  • b – List of versions formatted as [“name=versionstring”, …].

Returns

True if all dependencies in a are equal to those in b

depinning_inertia_2024.tag.all_greater_equal(a: list[str], b: list[str]) bool#

Check if all dependencies in a have a version greater or equal than those in b. It is allowed to have dependencies in a or b that are not in the other list.

Parameters
  • a – List of versions formatted as [“name=versionstring”, …].

  • b – List of versions formatted as [“name=versionstring”, …].

Returns

True if all dependencies in a are greater or equal than those in b

depinning_inertia_2024.tag.any_has_uncommitted(deps: list[str]) bool#

Check if any of the dependencies in deps has an uncommitted change.

Parameters

deps – List of versions formatted as [“name=versionstring”, …].

Returns

True if any of the dependencies has an uncommitted change.

depinning_inertia_2024.tag.equal(a: str, b: str) bool#

Check if version a is equal to b.

Parameters
  • a – Version string.

  • b – Version string.

Returns

True if a == b

depinning_inertia_2024.tag.greater(a: str, b: str) bool#

Check if a is a version greater than that in b.

Parameters
  • a – Version string.

  • b – Version string.

Returns

True if a > b

depinning_inertia_2024.tag.greater_equal(a: str, b: str) bool#

Check if a is a version greater or equal than that in b.

Parameters
  • a – Version string.

  • b – Version string.

Returns

True if a >= b

depinning_inertia_2024.tag.has_uncommitted(ver: str)#

Check of a version string encoded that there were uncommitted changes.

Parameters

a – Version string.

Returns

True is there were uncommitted changes.

depinning_inertia_2024.tag.less(a: str, b: str) bool#

Check if a is a version less than that in b.

Parameters
  • a – Version string.

  • b – Version string.

Returns

True if a < b

depinning_inertia_2024.tag.less_equal(a: str, b: str) bool#

Check if a is a version less or equal than that in b.

Parameters
  • a – Version string.

  • b – Version string.

Returns

True if a <= b