ppqs 2.4.0__tar.gz → 2.5.0__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.4.0/src/ppqs.egg-info → ppqs-2.5.0}/PKG-INFO +2 -2
- {ppqs-2.4.0 → ppqs-2.5.0}/pyproject.toml +2 -2
- {ppqs-2.4.0 → ppqs-2.5.0/src/ppqs.egg-info}/PKG-INFO +2 -2
- {ppqs-2.4.0 → ppqs-2.5.0}/src/py_proj_quick_scripts/__init__.py +7 -1
- {ppqs-2.4.0 → ppqs-2.5.0}/LICENSES/MIT.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/README.md +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/setup.cfg +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/src/ppqs.egg-info/SOURCES.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/src/ppqs.egg-info/dependency_links.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/src/ppqs.egg-info/entry_points.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/src/ppqs.egg-info/requires.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/src/ppqs.egg-info/top_level.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/test/test_cli.py +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/test/test_find_pyproject.py +0 -0
- {ppqs-2.4.0 → ppqs-2.5.0}/test/test_parse_scripts.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ppqs
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Python project quick scripts
|
|
5
5
|
Author-email: Karl Wette <karl.wette@anu.edu.au>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,7 +8,7 @@ Project-URL: Homepage, https://github.com/kwwette/ppqs
|
|
|
8
8
|
Project-URL: Issues, https://github.com/kwwette/ppqs/issues
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSES/MIT.txt
|
|
14
14
|
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ppqs"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.5.0"
|
|
8
8
|
description = "Python project quick scripts"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Karl Wette", email = "karl.wette@anu.edu.au" },
|
|
11
11
|
]
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
13
|
dependencies = [
|
|
14
14
|
"tomli>=1.1.0; python_version<'3.11'"
|
|
15
15
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ppqs
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Python project quick scripts
|
|
5
5
|
Author-email: Karl Wette <karl.wette@anu.edu.au>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,7 +8,7 @@ Project-URL: Homepage, https://github.com/kwwette/ppqs
|
|
|
8
8
|
Project-URL: Issues, https://github.com/kwwette/ppqs/issues
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSES/MIT.txt
|
|
14
14
|
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
@@ -272,9 +272,15 @@ def run_script(scripts, script_name, argv, cwd, has_been_run):
|
|
|
272
272
|
|
|
273
273
|
elif cmd[0] == "python":
|
|
274
274
|
|
|
275
|
-
#
|
|
275
|
+
# By default, use same Python as ppqs to run Python scripts
|
|
276
276
|
cmd[0] = sys.executable
|
|
277
277
|
|
|
278
|
+
# If virtual environment is present, try to use its Python
|
|
279
|
+
if "VIRTUAL_ENV" in os.environ:
|
|
280
|
+
venv_python = Path(os.environ["VIRTUAL_ENV"]) / "bin" / "python"
|
|
281
|
+
if venv_python.exists() and os.access(venv_python, os.X_OK):
|
|
282
|
+
cmd[0] = str(venv_python)
|
|
283
|
+
|
|
278
284
|
# Print header
|
|
279
285
|
if script["print-header"]:
|
|
280
286
|
cmd_str = " ".join(cmd)
|
|
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
|