ppqs 2.0.0__tar.gz → 2.0.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ppqs
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Python project quick scripts
5
5
  Author-email: Karl Wette <karl.wette@anu.edu.au>
6
6
  License-Expression: MIT
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["setuptools"]
2
+ requires = ["setuptools>=64.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ppqs"
7
- version = "2.0.0"
7
+ version = "2.0.1"
8
8
  description = "Python project quick scripts"
9
9
  authors = [
10
10
  { name = "Karl Wette", email = "karl.wette@anu.edu.au" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ppqs
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Python project quick scripts
5
5
  Author-email: Karl Wette <karl.wette@anu.edu.au>
6
6
  License-Expression: MIT
@@ -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.0"
15
+ __version__ = "2.0.1"
16
16
 
17
17
 
18
18
  class MissingPyProjectError(Exception):
@@ -210,17 +210,19 @@ def run_script(script, argv, cwd):
210
210
  for command in script["commands"]:
211
211
  cmd = []
212
212
 
213
- # Replace "..." in command with arguments
214
213
  for arg in command:
215
214
  if arg == "...":
215
+
216
+ # Replace "..." in command with arguments
216
217
  cmd.extend(argv)
218
+
217
219
  else:
218
220
  cmd.append(arg)
219
221
 
220
222
  # Print header
221
223
  if script["print-header"]:
222
224
  cmd_str = " ".join(cmd)
223
- print(f" ppqs: {cmd_str} ".center(col_width, "*"))
225
+ print(f" ppqs: {cmd_str} ".center(col_width, "*"), flush=True)
224
226
 
225
227
  # Run command
226
228
  retn = subprocess.run(cmd, stdin=subprocess.DEVNULL, shell=False, cwd=cwd)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes