nbproject.dev.set_version

nbproject.dev.set_version(version=None, stored_version=None)

(Auto-) set version.

If version is None, returns the stored version. Otherwise sets the version to the passed version.

Parameters:
  • version (str | None, default: None) – Version string.

  • stored_version (str | None, default: None) – Mock stored version for testing purposes.