Skip to content

Commit e479456

Browse files
committed
build: set version in config
1 parent 3fec299 commit e479456

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cloudbot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from pathlib import Path
55
from typing import Any, Dict, Optional
66

7-
version = (1, 4, 0)
8-
__version__ = ".".join(str(i) for i in version)
7+
__version__ = "1.4.0"
8+
version = tuple(__version__.split("."))
99

1010
__all__ = (
1111
"clients",

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ disallow_untyped_defs = true
124124
name = "cz_conventional_commits"
125125
tag_format = "v$version"
126126
version_scheme = "semver"
127-
version_provider = "scm"
128127
update_changelog_on_bump = true
129-
major_version_zero = true
128+
version_files = ["cloudbot/__init__.py:__version__"]
129+
version = "1.4.0"

0 commit comments

Comments
 (0)