ppqs 2.0.1__tar.gz → 2.0.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.
- {ppqs-2.0.1/src/ppqs.egg-info → ppqs-2.0.2}/PKG-INFO +3 -3
- {ppqs-2.0.1 → ppqs-2.0.2}/README.md +2 -2
- {ppqs-2.0.1 → ppqs-2.0.2}/pyproject.toml +1 -1
- {ppqs-2.0.1 → ppqs-2.0.2/src/ppqs.egg-info}/PKG-INFO +3 -3
- {ppqs-2.0.1 → ppqs-2.0.2}/src/py_proj_quick_scripts/__init__.py +4 -4
- {ppqs-2.0.1 → ppqs-2.0.2}/LICENSE +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/setup.cfg +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/src/ppqs.egg-info/SOURCES.txt +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/src/ppqs.egg-info/dependency_links.txt +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/src/ppqs.egg-info/entry_points.txt +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/src/ppqs.egg-info/requires.txt +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/src/ppqs.egg-info/top_level.txt +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/test/test_cli.py +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/test/test_find_pyproject.py +0 -0
- {ppqs-2.0.1 → ppqs-2.0.2}/test/test_parse_scripts.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ppqs
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Python project quick scripts
|
|
5
5
|
Author-email: Karl Wette <karl.wette@anu.edu.au>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -135,8 +135,8 @@ where:
|
|
|
135
135
|
--help`. Default is `Run {name} script` where `name` is the script name.
|
|
136
136
|
|
|
137
137
|
* `print-header` *(optional)*: If true, print a header before running each
|
|
138
|
-
command in the script. The header consists of the
|
|
139
|
-
on the console and padded with `*`s. Default is false.
|
|
138
|
+
command in the script. The header consists of the script name and the command
|
|
139
|
+
to be run, centred on the console and padded with `*`s. Default is false.
|
|
140
140
|
|
|
141
141
|
The default value of some options may be overridden in the
|
|
142
142
|
`[tool.ppqs.defaults]` section, e.g.
|
|
@@ -119,8 +119,8 @@ where:
|
|
|
119
119
|
--help`. Default is `Run {name} script` where `name` is the script name.
|
|
120
120
|
|
|
121
121
|
* `print-header` *(optional)*: If true, print a header before running each
|
|
122
|
-
command in the script. The header consists of the
|
|
123
|
-
on the console and padded with `*`s. Default is false.
|
|
122
|
+
command in the script. The header consists of the script name and the command
|
|
123
|
+
to be run, centred on the console and padded with `*`s. Default is false.
|
|
124
124
|
|
|
125
125
|
The default value of some options may be overridden in the
|
|
126
126
|
`[tool.ppqs.defaults]` section, e.g.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ppqs
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Python project quick scripts
|
|
5
5
|
Author-email: Karl Wette <karl.wette@anu.edu.au>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -135,8 +135,8 @@ where:
|
|
|
135
135
|
--help`. Default is `Run {name} script` where `name` is the script name.
|
|
136
136
|
|
|
137
137
|
* `print-header` *(optional)*: If true, print a header before running each
|
|
138
|
-
command in the script. The header consists of the
|
|
139
|
-
on the console and padded with `*`s. Default is false.
|
|
138
|
+
command in the script. The header consists of the script name and the command
|
|
139
|
+
to be run, centred on the console and padded with `*`s. Default is false.
|
|
140
140
|
|
|
141
141
|
The default value of some options may be overridden in the
|
|
142
142
|
`[tool.ppqs.defaults]` section, e.g.
|
|
@@ -12,7 +12,7 @@ else: # pragma: no cover
|
|
|
12
12
|
import tomli as tomllib
|
|
13
13
|
|
|
14
14
|
__author__ = "Karl Wette"
|
|
15
|
-
__version__ = "2.0.
|
|
15
|
+
__version__ = "2.0.2"
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class MissingPyProjectError(Exception):
|
|
@@ -202,7 +202,7 @@ def print_help(project_name, scripts):
|
|
|
202
202
|
)
|
|
203
203
|
|
|
204
204
|
|
|
205
|
-
def run_script(script, argv, cwd):
|
|
205
|
+
def run_script(script_name, script, argv, cwd):
|
|
206
206
|
"""
|
|
207
207
|
Run a script.
|
|
208
208
|
"""
|
|
@@ -222,7 +222,7 @@ def run_script(script, argv, cwd):
|
|
|
222
222
|
# Print header
|
|
223
223
|
if script["print-header"]:
|
|
224
224
|
cmd_str = " ".join(cmd)
|
|
225
|
-
print(f" ppqs: {cmd_str} ".center(col_width, "*"), flush=True)
|
|
225
|
+
print(f" ppqs {script_name}: {cmd_str} ".center(col_width, "*"), flush=True)
|
|
226
226
|
|
|
227
227
|
# Run command
|
|
228
228
|
retn = subprocess.run(cmd, stdin=subprocess.DEVNULL, shell=False, cwd=cwd)
|
|
@@ -248,7 +248,7 @@ def regular_cli(argv):
|
|
|
248
248
|
raise InvalidScriptError(pyproject_path, msg)
|
|
249
249
|
else:
|
|
250
250
|
cwd = pyproject_path.parent
|
|
251
|
-
run_script(scripts[argv[0]], argv[1:], cwd)
|
|
251
|
+
run_script(argv[0], scripts[argv[0]], argv[1:], cwd)
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
def cli(*argv):
|
|
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
|