quickie-runner 0.2.0__tar.gz → 0.2.2__tar.gz
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.
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/PKG-INFO +12 -10
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/README.md +11 -7
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/pyproject.toml +0 -3
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/_meta.py +1 -1
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/argparser.py +2 -2
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie_global/README.md +7 -6
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie_global/pyproject.toml +5 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_cli.py +4 -4
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/.editorconfig +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/.gitignore +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/.pre-commit-config.yaml +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/CHANGELOG.md +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/LICENSE +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/__main__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/_version.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/cli.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/completion/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/completion/_internal.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/completion/base.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/completion/python.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/config.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/context.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/errors.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/factories.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/loader.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/namespace.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/tasks.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/utils/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/utils/conditions/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/utils/conditions/base.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie/utils/imports.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/src/quickie_global/LICENSE +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/__quickie_test/__init__.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/__quickie_test/nested.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/conftest.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_completion.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_context.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_tasks.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_utils/test_conditions.py +0 -0
- {quickie_runner-0.2.0 → quickie_runner-0.2.2}/tests/test_utils/test_imports.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: quickie-runner
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: A CLI tool for quick tasks.
|
|
5
5
|
Project-URL: Homepage, https://github.com/adrianmrit/quickie
|
|
6
6
|
Project-URL: Repository, https://github.com/adrianmrit/quickie.git
|
|
@@ -47,8 +47,6 @@ Requires-Dist: mock; extra == 'dev'
|
|
|
47
47
|
Requires-Dist: pytest; extra == 'dev'
|
|
48
48
|
Requires-Dist: pytest-cov; extra == 'dev'
|
|
49
49
|
Requires-Dist: pytest-mock; extra == 'dev'
|
|
50
|
-
Provides-Extra: global
|
|
51
|
-
Requires-Dist: quickie-runner-global==0.2.0; extra == 'global'
|
|
52
50
|
Description-Content-Type: text/markdown
|
|
53
51
|
|
|
54
52
|
# Quickie - A CLI tool for quick tasks
|
|
@@ -70,20 +68,24 @@ For projects it is recommended to use a virtual environment and install via `pip
|
|
|
70
68
|
qck --help
|
|
71
69
|
```
|
|
72
70
|
|
|
73
|
-
For global installation, you can install
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
conflicts.
|
|
71
|
+
For global installation, you can install `quickie-runner-global` instead. It will add
|
|
72
|
+
`quickie-runner` as a dependency, but also add a `qckg` executable, which will run global
|
|
73
|
+
tasks by default. This allows us to run our global tasks from any project without conflicts.
|
|
77
74
|
|
|
78
|
-
For global installation it is recommended to use `pipx`, as it will install
|
|
75
|
+
For global installation it is recommended to use `pipx`, as it will install it in an isolated
|
|
79
76
|
environment:
|
|
80
77
|
|
|
81
78
|
```sh
|
|
82
|
-
pipx install quickie-runner
|
|
83
|
-
qck --help
|
|
79
|
+
pipx install quickie-runner-global
|
|
84
80
|
qckg --help
|
|
85
81
|
```
|
|
86
82
|
|
|
83
|
+
If you have any issues with the `quickie` package missing when running `qckg`, you can inject it manually:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
pipx inject quickie-runner-global quickie-runner
|
|
87
|
+
```
|
|
88
|
+
|
|
87
89
|
See the [pipx](https://pipx.pypa.io/stable/)
|
|
88
90
|
|
|
89
91
|
## Tab completion
|
|
@@ -17,20 +17,24 @@ For projects it is recommended to use a virtual environment and install via `pip
|
|
|
17
17
|
qck --help
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
For global installation, you can install
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
conflicts.
|
|
20
|
+
For global installation, you can install `quickie-runner-global` instead. It will add
|
|
21
|
+
`quickie-runner` as a dependency, but also add a `qckg` executable, which will run global
|
|
22
|
+
tasks by default. This allows us to run our global tasks from any project without conflicts.
|
|
24
23
|
|
|
25
|
-
For global installation it is recommended to use `pipx`, as it will install
|
|
24
|
+
For global installation it is recommended to use `pipx`, as it will install it in an isolated
|
|
26
25
|
environment:
|
|
27
26
|
|
|
28
27
|
```sh
|
|
29
|
-
pipx install quickie-runner
|
|
30
|
-
qck --help
|
|
28
|
+
pipx install quickie-runner-global
|
|
31
29
|
qckg --help
|
|
32
30
|
```
|
|
33
31
|
|
|
32
|
+
If you have any issues with the `quickie` package missing when running `qckg`, you can inject it manually:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pipx inject quickie-runner-global quickie-runner
|
|
36
|
+
```
|
|
37
|
+
|
|
34
38
|
See the [pipx](https://pipx.pypa.io/stable/)
|
|
35
39
|
|
|
36
40
|
## Tab completion
|
|
@@ -17,10 +17,10 @@ class ArgumentsParser(ArgumentParser):
|
|
|
17
17
|
super().__init__(description="A CLI tool for quick tasks.")
|
|
18
18
|
self.add_argument("-V", "--version", action="version", version=version)
|
|
19
19
|
self.add_argument("-l", "--list", action="store_true", help="List tasks")
|
|
20
|
-
self.add_argument
|
|
20
|
+
self.add_argument(
|
|
21
21
|
"-m", "--module", type=str, help="The module to load tasks from"
|
|
22
22
|
)
|
|
23
|
-
self.add_argument
|
|
23
|
+
self.add_argument(
|
|
24
24
|
"--autocomplete",
|
|
25
25
|
help="Suggest autocompletion for the shell",
|
|
26
26
|
dest="suggest_auto_completion",
|
|
@@ -4,14 +4,15 @@ This package provides a separate binary `qckg` that allows you to run global qui
|
|
|
4
4
|
|
|
5
5
|
## Installing
|
|
6
6
|
|
|
7
|
-
Do not install this package directly. Instead, install [quickie-runner](
|
|
8
|
-
https://pypi.org/project/quickie-runner/
|
|
9
|
-
) with the `global` option. This will install both `quickie-runner` and `quickie-runner-global`.
|
|
10
|
-
|
|
11
7
|
It is recommended to use `pipx` to install in an isolated environment:
|
|
12
8
|
|
|
13
9
|
```sh
|
|
14
|
-
pipx install quickie-runner
|
|
15
|
-
qck --help
|
|
10
|
+
pipx install quickie-runner-global
|
|
16
11
|
qckg --help
|
|
17
12
|
```
|
|
13
|
+
|
|
14
|
+
If you have any issues with the `quickie` package missing when running `qckg`, you can inject it manually:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
pipx inject quickie-runner-global quickie-runner
|
|
18
|
+
```
|
|
@@ -22,6 +22,11 @@ classifiers = [
|
|
|
22
22
|
]
|
|
23
23
|
requires-python = ">=3.12"
|
|
24
24
|
|
|
25
|
+
# TODO: Figure out how to specify the same version as the project
|
|
26
|
+
dependencies=[
|
|
27
|
+
"quickie-runner~=0.2",
|
|
28
|
+
]
|
|
29
|
+
|
|
25
30
|
[project.urls]
|
|
26
31
|
Homepage = "https://github.com/adrianmrit/quickie"
|
|
27
32
|
Repository = "https://github.com/adrianmrit/quickie.git"
|
|
@@ -96,7 +96,7 @@ def test_default(capsys):
|
|
|
96
96
|
# normalize spaces in out, as pytest might add extra spaces when running in vscode
|
|
97
97
|
out = re.sub(r"\s+", " ", out)
|
|
98
98
|
|
|
99
|
-
assert "[-h] [-V] [-l] [-m MODULE
|
|
99
|
+
assert "[-h] [-V] [-l] [-m MODULE] [--autocomplete {bash,zsh}]" in out
|
|
100
100
|
assert not err
|
|
101
101
|
|
|
102
102
|
|
|
@@ -116,7 +116,7 @@ def test_main_no_args(capsys):
|
|
|
116
116
|
out = out + err
|
|
117
117
|
# normalize spaces in out, as pytest might add extra spaces when running in vscode
|
|
118
118
|
out = re.sub(r"\s+", " ", out)
|
|
119
|
-
assert "[-h] [-V] [-l] [-m MODULE
|
|
119
|
+
assert "[-h] [-V] [-l] [-m MODULE] [--autocomplete {bash,zsh}]" in out
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
@mark.integration
|
|
@@ -150,7 +150,7 @@ def test_suggest_autocompletion_bash(capsys):
|
|
|
150
150
|
cli.main(["--autocomplete", "bash"])
|
|
151
151
|
assert exc_info.value.code == 0
|
|
152
152
|
out, err = capsys.readouterr()
|
|
153
|
-
assert 'eval "$(register-python-argcomplete
|
|
153
|
+
assert 'eval "$(register-python-argcomplete' in out
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
@mark.integration
|
|
@@ -159,7 +159,7 @@ def test_suggest_autocompletion_zsh(capsys):
|
|
|
159
159
|
cli.main(["--autocomplete", "zsh"])
|
|
160
160
|
assert exc_info.value.code == 0
|
|
161
161
|
out, err = capsys.readouterr()
|
|
162
|
-
assert 'eval "$(register-python-argcomplete
|
|
162
|
+
assert 'eval "$(register-python-argcomplete' in out
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
def test_stop_iteration(capsys):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|