Home
last modified time | relevance | path

Searched +full:python +full:- +full:pathlib (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/aosp_15_r20/external/python/cpython3/Tools/wasm/
Dwasm_build.py2 """Build script for Python on WebAssembly platforms.
4 $ ./Tools/wasm/wasm_builder.py emscripten-browser build repl
5 $ ./Tools/wasm/wasm_builder.py emscripten-node-dl build test
8 Primary build targets are "emscripten-node-dl" (NodeJS, dynamic linking),
9 "emscripten-browser", and "wasi".
16 and falls back to /opt/wasi-sdk.
18 The 'build' Python interpreter must be rebuilt every time Python's byte code
21 ./Tools/wasm/wasm_builder.py --clean build build
29 import pathlib
42 # for Python 3.8
[all …]
Dwasm_assets.py1 #!/usr/bin/env python
4 The WASM asset bundles are pre-loaded by the final WASM build. The bundle
7 - a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip
8 - os.py as marker module {PREFIX}/lib/python3.11/os.py
9 - empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/li…
13 import pathlib
20 SRCDIR = pathlib.Path(__file__).parent.parent.parent.absolute()
25 WASM_LIB = pathlib.PurePath("lib")
27 WASM_LIB / f"python{sys.version_info.major}{sys.version_info.minor}.zip"
30 WASM_LIB / f"python{sys.version_info.major}.{sys.version_info.minor}"
[all …]
/aosp_15_r20/external/python/pyfakefs/
DCHANGES.md7 * removed support for Python 3.7 (end of life)
13 ## [Version 5.2.3](https://pypi.python.org/pypi/pyfakefs/5.2.3) (2023-08-18)
21 ## [Version 5.2.3](https://pypi.python.org/pypi/pyfakefs/5.2.3) (2023-07-10)
22 Adds compatibility with PyPy 3.10 and Python 3.12.
25 * Re-create temp directory if it had been created before on resetting file system
27 * Exclude pytest `pathlib` modules from patching to avoid mixup of patched/unpatched
29 * Adapt to changes in Python 3.12 beta1 (only working partially,
31 * Adapt to changes in `shutil` in Python 3.12 beta2 (see [#814](../../issues/814)).
35 * Added a note regarding the incompatibility of the built-in `sqlite3` module with
39 * Added pytype check for non-test modules in CI (see [#599](../../issues/599)).
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_internal/locations/
D__init__.py4 import pathlib
46 def _should_use_sysconfig() -> bool:
49 By default, pip uses sysconfig on Python 3.10+.
50 But Python distributors can override this decision by setting:
76 def _looks_like_bpo_44860() -> bool:
77 """The resolution to bpo-44860 will change this incorrect platlib.
79 See <https://bugs.python.org/issue44860>.
90 def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
101 def _looks_like_red_hat_lib() -> bool:
104 This is the only way I can see to tell a Red Hat-patched Python.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_internal/locations/
D__init__.py4 import pathlib
46 def _should_use_sysconfig() -> bool:
49 By default, pip uses sysconfig on Python 3.10+.
50 But Python distributors can override this decision by setting:
76 def _looks_like_bpo_44860() -> bool:
77 """The resolution to bpo-44860 will change this incorrect platlib.
79 See <https://bugs.python.org/issue44860>.
90 def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
101 def _looks_like_red_hat_lib() -> bool:
104 This is the only way I can see to tell a Red Hat-patched Python.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_internal/locations/
D__init__.py4 import pathlib
46 def _should_use_sysconfig() -> bool:
49 By default, pip uses sysconfig on Python 3.10+.
50 But Python distributors can override this decision by setting:
76 def _looks_like_bpo_44860() -> bool:
77 """The resolution to bpo-44860 will change this incorrect platlib.
79 See <https://bugs.python.org/issue44860>.
90 def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
101 def _looks_like_red_hat_lib() -> bool:
104 This is the only way I can see to tell a Red Hat-patched Python.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_internal/locations/
D__init__.py4 import pathlib
46 def _should_use_sysconfig() -> bool:
49 By default, pip uses sysconfig on Python 3.10+.
50 But Python distributors can override this decision by setting:
76 def _looks_like_bpo_44860() -> bool:
77 """The resolution to bpo-44860 will change this incorrect platlib.
79 See <https://bugs.python.org/issue44860>.
90 def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
101 def _looks_like_red_hat_lib() -> bool:
104 This is the only way I can see to tell a Red Hat-patched Python.
[all …]
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/
Dfake_pathlib_test.py6 # http://www.apache.org/licenses/LICENSE-2.0
19 python docs.
24 import pathlib
55 self.pathlib = pathlib
56 self.path = pathlib.Path
69 self.assertTrue(isinstance(path, self.pathlib.WindowsPath))
70 self.assertTrue(isinstance(path, self.pathlib.PureWindowsPath))
71 self.assertTrue(self.pathlib.PurePosixPath())
75 self.pathlib.PosixPath()
77 self.assertTrue(self.pathlib.PosixPath())
[all …]
/aosp_15_r20/tools/asuite/
H A Dpreupload_hook_script.py8 # http://www.apache.org/licenses/LICENSE-2.0
21 import pathlib
26 ASUITE_HOME = pathlib.Path(__file__).resolve().parent
29 def _filter_python_files(files: list[pathlib.Path]) -> list[pathlib.Path]:
30 """Filter a list of files and return a new list of python files only."""
34 def _check_run_shell_command(cmd: str, cwd: str = None) -> None:
41 def _run_python_lint(lint_bin: str, files: list[pathlib.Path]) -> None:
42 """Run python lint binary on python files."""
66 def _run_pylint(files: list[pathlib.Path]) -> None:
67 """Run pylint on python files."""
[all …]
/aosp_15_r20/external/python/pyfakefs/pyfakefs/
Dfake_pathlib.py5 # http://www.apache.org/licenses/LICENSE-2.0
13 """A fake implementation for pathlib working with FakeFilesystem.
19 If using fake_filesystem_unittest.TestCase, pathlib gets replaced
22 * Stand-alone with FakeFilesystem:
37 import pathlib
41 from pathlib import PurePath
55 # pylint: disable=protected-access
61 # in Python 3.12, the flavour is no longer an own class,
62 # but points to the os-specific path module (posixpath/ntpath)
94 accessor = pathlib._Accessor # type: ignore[attr-defined]
[all …]
/aosp_15_r20/platform_testing/tests/automotive/
H A Dpreupload_hook_script.py8 # http://www.apache.org/licenses/LICENSE-2.0
16 """Preupload hook to perform necessary checks and formatting on python files."""
21 import pathlib
27 def _filter_python_files(files: list[pathlib.Path]) -> list[pathlib.Path]:
28 """Filter a list of files and return a new list of python files only."""
32 def _check_run_shell_command(cmd: str, cwd: str = None) -> None:
39 def _run_python_lint(lint_bin: str, files: list[pathlib.Path]) -> None:
40 """Run python lint binary on python files."""
64 def _run_pylint(files: list[pathlib.Path]) -> None:
65 """Run pylint on python files."""
[all …]
/aosp_15_r20/external/python/pyfakefs/docs/
Dusage.rst5 --------------
18 .. code:: python
27 (invalid-name)``,
31 .. code:: python
34 def fake_filesystem(fs): # pylint:disable=invalid-name
40 Class-, module- and session-scoped fixtures
42 For convenience, class-, module- and session-scoped fixtures with the same
54 If you are using the Python ``unittest`` package, the easiest approach is to
61 .. code:: python
82 .. code:: python
[all …]
/aosp_15_r20/tools/asuite/atest/integration_tests/
H A Dsplit_build_test_script.py9 # http://www.apache.org/licenses/LICENSE-2.0
35 import pathlib
62 snapshot_storage_path: pathlib.Path = None
63 snapshot_storage_tar_path: pathlib.Path = None
64 workspace_path: pathlib.Path = None
77 def get_device_serial_args_or_empty(self) -> str:
79 # TODO: b/336839543 - Remove this method when we deprecate the support to
80 # run the integration test directly through 'python **.py' command.
82 return ' -s ' + self._config.device_serial
92 def get_device_serial(self) -> str:
[all …]
/aosp_15_r20/external/pigweed/pw_doctor/py/pw_doctor/
H A Ddoctor.py8 # https://www.apache.org/licenses/LICENSE-2.0
22 import pathlib
37 return proc.stdout.decode('utf-8')
66 except: # pylint: disable=bare-except
100 except: # pylint: disable=bare-except
147 ) -> bool:
150 # Support `mac-arm64` through Rosetta until `mac-arm64` binaries are ready
165 env_root = pathlib.Path(os.environ['_PW_ACTUAL_ENVIRONMENT_ROOT'])
199 root = pathlib.Path(os.environ['PW_ROOT']).resolve()
209 git_root = pathlib.Path(
[all …]
/aosp_15_r20/external/bazelbuild-rules_python/python/private/
H A Dpy_console_script_gen.py7 # http://www.apache.org/licenses/LICENSE-2.0
18 For Python versions earlier than 3.11 and for earlier bazel versions than 7.0 we need to workaround…
23 In affected bazel and Python versions we see in programs such as `flake8`, `pylint` or `pytest` err…
39 import pathlib
49 # See @rules_python//python/private:py_console_script_gen.py for explanation
51 # We are running on Python 3.11 and we don't need this workaround
72 See https://packaging.python.org/en/latest/specifications/entry-points/
78 def _guess_entry_point(guess: str, console_scripts: dict[string, string]) -> str | None:
86 entry_points: pathlib.Path,
87 out: pathlib.Path,
[all …]
/aosp_15_r20/external/python/cpython3/Doc/whatsnew/
D3.5.rst2 What's New In Python 3.5
36 sufficient; the e-mail address isn't necessary.
47 This article explains the new features in Python 3.5, compared to 3.4.
48 Python 3.5 was released on September 13, 2015.  See the
49 `changelog <https://docs.python.org/3.5/whatsnew/changelog.html>`_ for a full
54 :pep:`478` - Python 3.5 Release Schedule
57 Summary -- Release highlights
62 * :ref:`PEP 492 <whatsnew-pep-492>`, coroutines with async and await syntax.
63 * :ref:`PEP 465 <whatsnew-pep-465>`, a new matrix multiplication operator: ``a @ b``.
64 * :ref:`PEP 448 <whatsnew-pep-448>`, additional unpacking generalizations.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_internal/metadata/
Dbase.py6 import pathlib
52 InfoPath = Union[str, pathlib.PurePath]
59 def name(self) -> str:
63 def value(self) -> str:
67 def group(self) -> str:
74 ) -> str:
75 """Convert a legacy installed-files.txt path into modern RECORD path.
79 site-packages directory.
81 :param entry: Path parts of the installed-files.txt entry.
82 :param info: Path parts of the egg-info directory relative to package root.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_internal/metadata/
Dbase.py6 import pathlib
52 InfoPath = Union[str, pathlib.PurePath]
59 def name(self) -> str:
63 def value(self) -> str:
67 def group(self) -> str:
74 ) -> str:
75 """Convert a legacy installed-files.txt path into modern RECORD path.
79 site-packages directory.
81 :param entry: Path parts of the installed-files.txt entry.
82 :param info: Path parts of the egg-info directory relative to package root.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_internal/metadata/
Dbase.py6 import pathlib
52 InfoPath = Union[str, pathlib.PurePath]
59 def name(self) -> str:
63 def value(self) -> str:
67 def group(self) -> str:
74 ) -> str:
75 """Convert a legacy installed-files.txt path into modern RECORD path.
79 site-packages directory.
81 :param entry: Path parts of the installed-files.txt entry.
82 :param info: Path parts of the egg-info directory relative to package root.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_internal/metadata/
Dbase.py6 import pathlib
52 InfoPath = Union[str, pathlib.PurePath]
59 def name(self) -> str:
63 def value(self) -> str:
67 def group(self) -> str:
74 ) -> str:
75 """Convert a legacy installed-files.txt path into modern RECORD path.
79 site-packages directory.
81 :param entry: Path parts of the installed-files.txt entry.
82 :param info: Path parts of the egg-info directory relative to package root.
[all …]
/aosp_15_r20/external/python/parse_type/tasks/
D_tasklet_cleanup.py1 # -*- coding: UTF-8 -*-
6 PYTHON PACKAGE REQUIREMENTS:
7 * path.py >= 8.2.1 (as path-object abstraction)
8 * pathlib (for ant-like wildcard patterns; since: python > 3.5)
9 * pycmd (required-by: clean_python())
12 -------------------------------------------------------------------------------
17 .. code-block:: yaml
19 # -- FILE: invoke.yaml
23 - **/tmp/
25 - **/*.log
[all …]
/aosp_15_r20/external/bazelbuild-rules_python/tests/entry_points/
H A Dpy_console_script_gen_test.py8 # http://www.apache.org/licenses/LICENSE-2.0
16 import pathlib
21 from python.private.py_console_script_gen import run
30 tmpdir = pathlib.Path(tmpdir)
59 tmpdir = pathlib.Path(tmpdir)
78 console_script_guess="bar-baz",
82 …"Tried to guess that you wanted 'bar-baz', but could not find it. Please select one of the followi…
88 tmpdir = pathlib.Path(tmpdir)
118 tmpdir = pathlib.Path(tmpdir)
145 # See @rules_python//python/private:py_console_script_gen.py for explanation
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/tools/docs/
H A Dgenerate2.py7 # http://www.apache.org/licenses/LICENSE-2.0
18 python generate2.py --output_dir=/tmp/out
29 import pathlib
47 from tensorflow.python.framework import ops
48 from tensorflow.python.util import tf_export
49 from tensorflow.python.util import tf_inspect
54 # pylint: disable=g-import-not-at-top
56 from tensorflow.python.types import doc_typealias
61 # pylint: enable=g-import-not-at-top
90 "Include meta-data search hints at the top of each file.")
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
Dpathlib.py27 _WINERROR_INVALID_NAME = 123 # fix for bpo-35306
30 # EBADF - guard against macOS `stat` throwing EBADF
50 """A flavour implements a particular (platform-specific) set of path
107 # Second path is non-anchored (common case)
114 # http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx
165 if index != -1:
170 if index2 == -1:
215 name = parts[-1].partition('.')[0].partition(':')[0].rstrip(' ')
219 # Under Windows, file URIs use the UTF-8 encoding.
225 drive, urlquote_from_bytes(rest.encode('utf-8')))
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/
Dpathlib.py27 _WINERROR_INVALID_NAME = 123 # fix for bpo-35306
30 # EBADF - guard against macOS `stat` throwing EBADF
50 """A flavour implements a particular (platform-specific) set of path
107 # Second path is non-anchored (common case)
114 # http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx
165 if index != -1:
170 if index2 == -1:
215 name = parts[-1].partition('.')[0].partition(':')[0].rstrip(' ')
219 # Under Windows, file URIs use the UTF-8 encoding.
225 drive, urlquote_from_bytes(rest.encode('utf-8')))
[all …]

12345678910>>...27