ppqs 2.4.0__tar.gz → 2.5.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.
- {ppqs-2.4.0/src/ppqs.egg-info → ppqs-2.5.1}/PKG-INFO +2 -2
- {ppqs-2.4.0 → ppqs-2.5.1}/pyproject.toml +5 -2
- {ppqs-2.4.0 → ppqs-2.5.1/src/ppqs.egg-info}/PKG-INFO +2 -2
- {ppqs-2.4.0 → ppqs-2.5.1}/src/py_proj_quick_scripts/__init__.py +9 -1
- {ppqs-2.4.0 → ppqs-2.5.1}/LICENSES/MIT.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/README.md +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/setup.cfg +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/src/ppqs.egg-info/SOURCES.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/src/ppqs.egg-info/dependency_links.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/src/ppqs.egg-info/entry_points.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/src/ppqs.egg-info/requires.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/src/ppqs.egg-info/top_level.txt +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/test/test_cli.py +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/test/test_find_pyproject.py +0 -0
- {ppqs-2.4.0 → ppqs-2.5.1}/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.1
|
|
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,11 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ppqs"
|
|
7
|
-
version = "2.4.0"
|
|
8
7
|
description = "Python project quick scripts"
|
|
9
8
|
authors = [
|
|
10
9
|
{ name = "Karl Wette", email = "karl.wette@anu.edu.au" },
|
|
11
10
|
]
|
|
12
|
-
requires-python = ">=3.
|
|
11
|
+
requires-python = ">=3.10"
|
|
13
12
|
dependencies = [
|
|
14
13
|
"tomli>=1.1.0; python_version<'3.11'"
|
|
15
14
|
]
|
|
@@ -20,6 +19,7 @@ classifiers = [
|
|
|
20
19
|
"Programming Language :: Python :: 3",
|
|
21
20
|
"Operating System :: OS Independent",
|
|
22
21
|
]
|
|
22
|
+
dynamic = ["version"]
|
|
23
23
|
|
|
24
24
|
[project.urls]
|
|
25
25
|
Homepage = "https://github.com/kwwette/ppqs"
|
|
@@ -28,6 +28,9 @@ Issues = "https://github.com/kwwette/ppqs/issues"
|
|
|
28
28
|
[project.scripts]
|
|
29
29
|
ppqs = "py_proj_quick_scripts:cli"
|
|
30
30
|
|
|
31
|
+
[tool.setuptools.dynamic]
|
|
32
|
+
version = {attr = "py_proj_quick_scripts.__version__"}
|
|
33
|
+
|
|
31
34
|
[tool.ruff]
|
|
32
35
|
fix = true
|
|
33
36
|
show-fixes = true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ppqs
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.1
|
|
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"
|
|
@@ -19,6 +19,7 @@ else: # pragma: no cover
|
|
|
19
19
|
import tomli as tomllib
|
|
20
20
|
|
|
21
21
|
__author__ = "Karl Wette"
|
|
22
|
+
__version__ = "2.5.1"
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
class MissingPyProjectError(Exception):
|
|
@@ -228,6 +229,7 @@ def print_help(project_name, scripts):
|
|
|
228
229
|
"""
|
|
229
230
|
)
|
|
230
231
|
+ list_of_scripts
|
|
232
|
+
+ f"\n\nppqs version: {__version__}"
|
|
231
233
|
)
|
|
232
234
|
|
|
233
235
|
|
|
@@ -272,9 +274,15 @@ def run_script(scripts, script_name, argv, cwd, has_been_run):
|
|
|
272
274
|
|
|
273
275
|
elif cmd[0] == "python":
|
|
274
276
|
|
|
275
|
-
#
|
|
277
|
+
# By default, use same Python as ppqs to run Python scripts
|
|
276
278
|
cmd[0] = sys.executable
|
|
277
279
|
|
|
280
|
+
# If virtual environment is present, try to use its Python
|
|
281
|
+
if "VIRTUAL_ENV" in os.environ:
|
|
282
|
+
venv_python = Path(os.environ["VIRTUAL_ENV"]) / "bin" / "python"
|
|
283
|
+
if venv_python.exists() and os.access(venv_python, os.X_OK):
|
|
284
|
+
cmd[0] = str(venv_python)
|
|
285
|
+
|
|
278
286
|
# Print header
|
|
279
287
|
if script["print-header"]:
|
|
280
288
|
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
|