cgse 0.11.4__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bump.py
CHANGED
|
@@ -16,7 +16,7 @@ Note:
|
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
# /// script
|
|
19
|
-
# requires-python = ">=3.
|
|
19
|
+
# requires-python = ">=3.10"
|
|
20
20
|
# dependencies = [
|
|
21
21
|
# "tomlkit",
|
|
22
22
|
# "rich",
|
|
@@ -33,17 +33,17 @@ import tomlkit.exceptions
|
|
|
33
33
|
import typer
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
def bump_version(version, part=
|
|
37
|
-
major, minor, patch = map(int, version.split(
|
|
36
|
+
def bump_version(version, part="patch"):
|
|
37
|
+
major, minor, patch = map(int, version.split("."))
|
|
38
38
|
|
|
39
|
-
if part ==
|
|
39
|
+
if part == "major":
|
|
40
40
|
major += 1
|
|
41
41
|
minor = 0
|
|
42
42
|
patch = 0
|
|
43
|
-
elif part ==
|
|
43
|
+
elif part == "minor":
|
|
44
44
|
minor += 1
|
|
45
45
|
patch = 0
|
|
46
|
-
elif part ==
|
|
46
|
+
elif part == "patch":
|
|
47
47
|
patch += 1
|
|
48
48
|
else:
|
|
49
49
|
raise ValueError("Part must be 'major', 'minor', or 'patch'")
|
|
@@ -77,7 +77,7 @@ def update_project_version(project_dir, new_version):
|
|
|
77
77
|
tomlkit.dump(data, file)
|
|
78
78
|
|
|
79
79
|
except tomlkit.exceptions.NonExistentKey:
|
|
80
|
-
rich.print(
|
|
80
|
+
rich.print(rf"[red]\[project.version] is not defined in pyproject.toml in {project_dir}[/]")
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
def update_all_projects_in_monorepo(root_dir: pathlib.Path, part: str, dry_run: bool = False, verbose: bool = True):
|
|
@@ -117,7 +117,6 @@ app = typer.Typer()
|
|
|
117
117
|
|
|
118
118
|
@app.command()
|
|
119
119
|
def main(part: str, dry_run: bool = False, verbose: bool = True):
|
|
120
|
-
|
|
121
120
|
monorepo_root = pathlib.Path(__file__).parent.resolve()
|
|
122
121
|
|
|
123
122
|
cwd = os.getcwd()
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cgse
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: Generic Common-EGSE: Commanding and monitoring lab equipment
|
|
5
5
|
Author: IvS KU Leuven
|
|
6
6
|
Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
|
|
7
7
|
License: MIT
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
9
|
Requires-Dist: cgse-common
|
|
10
10
|
Requires-Dist: cgse-core
|
|
11
11
|
Requires-Dist: cgse-tools
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
README.md,sha256=28UcAw5TthkCiGxxiSJKVt-M76gLtHI_6FtqkNGV7Qs,1666
|
|
2
|
+
bump.py,sha256=RqoWyTRGyZF0GTJn5KL-WQJVFOHBiLivG3quI4629UA,3884
|
|
3
|
+
cgse-0.12.0.dist-info/METADATA,sha256=AGDP4cjxOv_rFjbY3k8nJuDe5XoE4Iquh6A_d_kRlqM,2115
|
|
4
|
+
cgse-0.12.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
+
cgse-0.12.0.dist-info/RECORD,,
|
cgse-0.11.4.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
README.md,sha256=28UcAw5TthkCiGxxiSJKVt-M76gLtHI_6FtqkNGV7Qs,1666
|
|
2
|
-
bump.py,sha256=0tuYgd0QtYXYCteDgjbmlzcBl-ZBQr4XKHanZg-encs,3883
|
|
3
|
-
cgse-0.11.4.dist-info/METADATA,sha256=UgKhmU96GftGwki3lChSYh8cgUcRvQBYZv9Dso28OXY,2114
|
|
4
|
-
cgse-0.11.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
-
cgse-0.11.4.dist-info/RECORD,,
|
|
File without changes
|