pyproject-api 1.7.2__tar.gz → 1.8.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.
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/PKG-INFO +1 -1
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_backend.py +5 -7
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_version.py +2 -2
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tox.ini +1 -1
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/dependabot.yml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/release.yml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/workflows/check.yaml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/workflows/release.yaml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.gitignore +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.pre-commit-config.yaml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.readthedocs.yml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/CODE_OF_CONDUCT.md +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/LICENSE +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/README.md +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/api.rst +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/conf.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/index.rst +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/pyproject.toml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/__init__.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/__main__.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_backend.pyi +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_frontend.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_util.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_via_fresh_subprocess.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/py.typed +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/_build_sdist.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/demo_pkg_inline/build.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/demo_pkg_inline/pyproject.toml +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_backend.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_frontend.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_frontend_setuptools.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_main.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_util.py +0 -0
- {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pyproject-api
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.8.0
|
|
4
4
|
Summary: API to interact with the python pyproject.toml based projects
|
|
5
5
|
Project-URL: Changelog, https://github.com/tox-dev/pyproject-api/releases
|
|
6
6
|
Project-URL: Homepage, https://pyproject-api.readthedocs.io
|
|
@@ -5,8 +5,6 @@ Please keep this file Python 2.7 compatible.
|
|
|
5
5
|
See https://tox.readthedocs.io/en/rewrite/development.html#code-style-guide
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from __future__ import print_function
|
|
9
|
-
|
|
10
8
|
import importlib
|
|
11
9
|
import json
|
|
12
10
|
import locale
|
|
@@ -31,12 +29,12 @@ class BackendProxy:
|
|
|
31
29
|
def __call__(self, name, *args, **kwargs):
|
|
32
30
|
on_object = self if name.startswith("_") else self.backend
|
|
33
31
|
if not hasattr(on_object, name):
|
|
34
|
-
msg = "{!r} has no attribute {!r}"
|
|
32
|
+
msg = f"{on_object!r} has no attribute {name!r}"
|
|
35
33
|
raise MissingCommand(msg)
|
|
36
34
|
return getattr(on_object, name)(*args, **kwargs)
|
|
37
35
|
|
|
38
36
|
def __str__(self):
|
|
39
|
-
return "{}(backend={
|
|
37
|
+
return f"{self.__class__.__name__}(backend={self.backend})"
|
|
40
38
|
|
|
41
39
|
def _exit(self): # noqa: PLR6301
|
|
42
40
|
return 0
|
|
@@ -69,7 +67,7 @@ def run(argv): # noqa: C901, PLR0912, PLR0915
|
|
|
69
67
|
print("failed to start backend", file=sys.stderr)
|
|
70
68
|
raise
|
|
71
69
|
else:
|
|
72
|
-
print("started backend {}"
|
|
70
|
+
print(f"started backend {backend_proxy}", file=sys.stdout)
|
|
73
71
|
finally:
|
|
74
72
|
flush() # pragma: no branch
|
|
75
73
|
while True:
|
|
@@ -85,7 +83,7 @@ def run(argv): # noqa: C901, PLR0912, PLR0915
|
|
|
85
83
|
result_file = parsed_message["result"]
|
|
86
84
|
except Exception: # noqa: BLE001
|
|
87
85
|
# ignore messages that are not valid JSON and contain a valid result path
|
|
88
|
-
print("Backend: incorrect request to backend: {}"
|
|
86
|
+
print(f"Backend: incorrect request to backend: {content}", file=sys.stderr)
|
|
89
87
|
flush()
|
|
90
88
|
else:
|
|
91
89
|
result = {}
|
|
@@ -111,7 +109,7 @@ def run(argv): # noqa: C901, PLR0912, PLR0915
|
|
|
111
109
|
traceback.print_exc()
|
|
112
110
|
finally:
|
|
113
111
|
# used as done marker by frontend
|
|
114
|
-
print("Backend: Wrote response {} to {}"
|
|
112
|
+
print(f"Backend: Wrote response {result} to {result_file}")
|
|
115
113
|
flush() # pragma: no branch
|
|
116
114
|
if reuse_process is False: # pragma: no branch # no test for reuse process in root test env
|
|
117
115
|
break
|
|
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
|