@task
def set_version(ctx, version):
    'Set project version in `src/robot/version.py`` file.\n\n    Args:\n        version: Project version to set or ``dev`` to set development version.\n\n    Following PEP-440 compatible version numbers are supported:\n    - Final version like 3.0 or 3.1.2.\n    - Alpha, beta or release candidate with ``a``, ``b`` or ``rc`` postfix,\n      respectively, and an incremented number like 3.0a1 or 3.0.1rc1.\n    - Development version with ``.dev`` postix and an incremented number like\n      3.0.dev1 or 3.1a1.dev2.\n\n    When the given version is ``dev``, the existing version number is updated\n    to the next suitable development version. For example, 3.0 -> 3.0.1.dev1,\n    3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2.\n    '
    version = Version(version, VERSION_PATH, VERSION_PATTERN)
    version.write()
    pom = Version(str(version), POM_PATH, POM_VERSION_PATTERN)
    pom.write()
    print(version)
Set project version in `src/robot/version.py`` file.

Args:
    version: Project version to set or ``dev`` to set development version.

Following PEP-440 compatible version numbers are supported:
- Final version like 3.0 or 3.1.2.
- Alpha, beta or release candidate with ``a``, ``b`` or ``rc`` postfix,
  respectively, and an incremented number like 3.0a1 or 3.0.1rc1.
- Development version with ``.dev`` postix and an incremented number like
  3.0.dev1 or 3.1a1.dev2.

When the given version is ``dev``, the existing version number is updated
to the next suitable development version. For example, 3.0 -> 3.0.1.dev1,
3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2.
@task
def set_version(ctx, version):
    'Set project version in `src/robot/version.py`` file.\n\n    Args:\n        version: Project version to set or ``dev`` to set development version.\n\n    Following PEP-440 compatible version numbers are supported:\n    - Final version like 3.0 or 3.1.2.\n    - Alpha, beta or release candidate with ``a``, ``b`` or ``rc`` postfix,\n      respectively, and an incremented number like 3.0a1 or 3.0.1rc1.\n    - Development version with ``.dev`` postix and an incremented number like\n      3.0.dev1 or 3.1a1.dev2.\n\n    When the given version is ``dev``, the existing version number is updated\n    to the next suitable development version. For example, 3.0 -> 3.0.1.dev1,\n    3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2.\n    '
    version = Version(version, VERSION_PATH, VERSION_PATTERN)
    version.write()
    pom = Version(str(version), POM_PATH, POM_VERSION_PATTERN)
    pom.write()
    print(version)