Skip to content

Commit ddacbb6

Browse files
committed
add version to cli
1 parent 5a5488c commit ddacbb6

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ source_pkgs = [
172172
allow_dirty = false
173173
commit = true
174174
commit_args = "--no-verify"
175-
current_version = "0.26.6"
175+
current_version = "0.27.0a6"
176176
ignore_missing_files = false
177177
ignore_missing_version = false
178178
message = "Bump version: {current_version} → {new_version}"
@@ -192,3 +192,9 @@ tag_name = "v{new_version}"
192192
filename = "pyproject.toml"
193193
replace = 'version = "{new_version}"'
194194
search = 'version = "{current_version}"'
195+
196+
[[tool.bumpversion.files]]
197+
filename = "src/falco_cli/__main__.py"
198+
replace = 'version="{new_version}"'
199+
search = 'version="{current_version}"'
200+

src/falco_cli/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Falco:
1313

1414

1515
def main():
16-
cappa.invoke(Falco)
16+
cappa.invoke(Falco, version="0.27.0a6")
1717

1818

1919
if __name__ == "__main__":

tests/commands/test_start_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def test_start_project(tmp_path, blueprint: str, runner: CommandRunner):
1010
assert (tmp_path / "dotfm/dotfm/urls.py").exists()
1111
assert (tmp_path / "dotfm/dotfm/wsgi.py").exists()
1212

13+
1314
# def all_files_are_correctly_generated(project_name, project_dir: Path) -> bool:
1415
# required_files = [
1516
# "pyproject.toml",

0 commit comments

Comments
 (0)