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.
Files changed (34) hide show
  1. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/PKG-INFO +1 -1
  2. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_backend.py +5 -7
  3. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_version.py +2 -2
  4. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tox.ini +1 -1
  5. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/dependabot.yml +0 -0
  6. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/release.yml +0 -0
  7. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/workflows/check.yaml +0 -0
  8. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.github/workflows/release.yaml +0 -0
  9. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.gitignore +0 -0
  10. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.pre-commit-config.yaml +0 -0
  11. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/.readthedocs.yml +0 -0
  12. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/CODE_OF_CONDUCT.md +0 -0
  13. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/LICENSE +0 -0
  14. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/README.md +0 -0
  15. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/api.rst +0 -0
  16. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/conf.py +0 -0
  17. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/docs/index.rst +0 -0
  18. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/pyproject.toml +0 -0
  19. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/__init__.py +0 -0
  20. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/__main__.py +0 -0
  21. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_backend.pyi +0 -0
  22. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_frontend.py +0 -0
  23. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_util.py +0 -0
  24. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/_via_fresh_subprocess.py +0 -0
  25. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/src/pyproject_api/py.typed +0 -0
  26. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/_build_sdist.py +0 -0
  27. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/demo_pkg_inline/build.py +0 -0
  28. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/demo_pkg_inline/pyproject.toml +0 -0
  29. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_backend.py +0 -0
  30. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_frontend.py +0 -0
  31. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_frontend_setuptools.py +0 -0
  32. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_main.py +0 -0
  33. {pyproject_api-1.7.2 → pyproject_api-1.8.0}/tests/test_util.py +0 -0
  34. {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.7.2
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}".format(on_object, name)
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={})".format(self.__class__.__name__, self.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 {}".format(backend_proxy), file=sys.stdout)
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: {}".format(content), file=sys.stderr)
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 {}".format(result, result_file))
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
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.7.2'
16
- __version_tuple__ = version_tuple = (1, 7, 2)
15
+ __version__ = version = '1.8.0'
16
+ __version_tuple__ = version_tuple = (1, 8, 0)
@@ -23,7 +23,7 @@ extras =
23
23
  testing
24
24
  pass_env =
25
25
  DIFF_AGAINST
26
- PYTES_*
26
+ PYTEST_*
27
27
  set_env =
28
28
  COVERAGE_FILE = {work_dir}/.coverage.{env_name}
29
29
  COVERAGE_PROCESS_START = {tox_root}/pyproject.toml
File without changes
File without changes
File without changes