[0-9]+(?:\\.[0-9]+)*) # release segment\n (?P # pre-release\n [-_\\.]?\n (?Palpha|a|beta|b|preview|pre|c|rc)\n [-_\\.]?\n (?P[0-9]+)?",
- "detail": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "documentation": {}
- },
- {
- "label": "VERSION_PATTERN",
- "kind": 5,
- "importPath": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "description": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "peekOfCode": "VERSION_PATTERN = _VERSION_PATTERN\n\"\"\"\nA string containing the regular expression used to match a valid version.\nThe pattern is not anchored at either end, and is intended for embedding in larger\nexpressions (for example, matching a version number as part of a file name). The\nregular expression should be compiled with the ``re.VERBOSE`` and ``re.IGNORECASE``\nflags set.\n:meta hide-value:\n\"\"\"\nclass Version(_BaseVersion):",
- "detail": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "documentation": {}
- },
- {
- "label": "_local_version_separators",
- "kind": 5,
- "importPath": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "description": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "peekOfCode": "_local_version_separators = re.compile(r\"[\\._-]\")\ndef _parse_local_version(local: Optional[str]) -> Optional[LocalType]:\n \"\"\"\n Takes a string like abc.1.twelve and turns it into (\"abc\", 1, \"twelve\").\n \"\"\"\n if local is not None:\n return tuple(\n part.lower() if not part.isdigit() else int(part)\n for part in _local_version_separators.split(local)\n )",
- "detail": "front.node_modules.node-gyp.gyp.pylib.packaging.version",
- "documentation": {}
- },
- {
- "label": "IsCygwin",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.gyp_main",
- "description": "front.node_modules.node-gyp.gyp.gyp_main",
- "peekOfCode": "def IsCygwin():\n # Function copied from pylib/gyp/common.py\n try:\n out = subprocess.Popen(\n \"uname\", stdout=subprocess.PIPE, stderr=subprocess.STDOUT\n )\n stdout, _ = out.communicate()\n return \"CYGWIN\" in stdout.decode(\"utf-8\")\n except Exception:\n return False",
- "detail": "front.node_modules.node-gyp.gyp.gyp_main",
- "documentation": {}
- },
- {
- "label": "UnixifyPath",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.gyp_main",
- "description": "front.node_modules.node-gyp.gyp.gyp_main",
- "peekOfCode": "def UnixifyPath(path):\n try:\n if not IsCygwin():\n return path\n out = subprocess.Popen(\n [\"cygpath\", \"-u\", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT\n )\n stdout, _ = out.communicate()\n return stdout.decode(\"utf-8\")\n except Exception:",
- "detail": "front.node_modules.node-gyp.gyp.gyp_main",
- "documentation": {}
- },
- {
- "label": "path",
- "kind": 5,
- "importPath": "front.node_modules.node-gyp.gyp.gyp_main",
- "description": "front.node_modules.node-gyp.gyp.gyp_main",
- "peekOfCode": "path = UnixifyPath(sys.argv[0])\nsys.path.insert(0, os.path.join(os.path.dirname(path), \"pylib\"))\nimport gyp # noqa: E402\nif __name__ == \"__main__\":\n sys.exit(gyp.script_main())",
- "detail": "front.node_modules.node-gyp.gyp.gyp_main",
- "documentation": {}
- },
- {
- "label": "Runner",
- "kind": 6,
- "importPath": "front.node_modules.node-gyp.gyp.test_gyp",
- "description": "front.node_modules.node-gyp.gyp.test_gyp",
- "peekOfCode": "class Runner:\n def __init__(self, formats, tests, gyp_options, verbose):\n self.formats = formats\n self.tests = tests\n self.verbose = verbose\n self.gyp_options = gyp_options\n self.failures = []\n self.num_tests = len(formats) * len(tests)\n num_digits = len(str(self.num_tests))\n self.fmt_str = \"[%%%dd/%%%dd] (%%s) %%s\" % (num_digits, num_digits)",
- "detail": "front.node_modules.node-gyp.gyp.test_gyp",
- "documentation": {}
- },
- {
- "label": "is_test_name",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.test_gyp",
- "description": "front.node_modules.node-gyp.gyp.test_gyp",
- "peekOfCode": "def is_test_name(f):\n return f.startswith(\"gyptest\") and f.endswith(\".py\")\ndef find_all_gyptest_files(directory):\n result = []\n for root, dirs, files in os.walk(directory):\n result.extend([os.path.join(root, f) for f in files if is_test_name(f)])\n result.sort()\n return result\ndef main(argv=None):\n if argv is None:",
- "detail": "front.node_modules.node-gyp.gyp.test_gyp",
- "documentation": {}
- },
- {
- "label": "find_all_gyptest_files",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.test_gyp",
- "description": "front.node_modules.node-gyp.gyp.test_gyp",
- "peekOfCode": "def find_all_gyptest_files(directory):\n result = []\n for root, dirs, files in os.walk(directory):\n result.extend([os.path.join(root, f) for f in files if is_test_name(f)])\n result.sort()\n return result\ndef main(argv=None):\n if argv is None:\n argv = sys.argv\n parser = argparse.ArgumentParser()",
- "detail": "front.node_modules.node-gyp.gyp.test_gyp",
- "documentation": {}
- },
- {
- "label": "main",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.test_gyp",
- "description": "front.node_modules.node-gyp.gyp.test_gyp",
- "peekOfCode": "def main(argv=None):\n if argv is None:\n argv = sys.argv\n parser = argparse.ArgumentParser()\n parser.add_argument(\"-a\", \"--all\", action=\"store_true\", help=\"run all tests\")\n parser.add_argument(\"-C\", \"--chdir\", action=\"store\", help=\"change to directory\")\n parser.add_argument(\n \"-f\",\n \"--format\",\n action=\"store\",",
- "detail": "front.node_modules.node-gyp.gyp.test_gyp",
- "documentation": {}
- },
- {
- "label": "print_configuration_info",
- "kind": 2,
- "importPath": "front.node_modules.node-gyp.gyp.test_gyp",
- "description": "front.node_modules.node-gyp.gyp.test_gyp",
- "peekOfCode": "def print_configuration_info():\n print(\"Test configuration:\")\n if sys.platform == \"darwin\":\n sys.path.append(os.path.abspath(\"test/lib\"))\n import TestMac\n print(f\" Mac {platform.mac_ver()[0]} {platform.mac_ver()[2]}\")\n print(f\" Xcode {TestMac.Xcode.Version()}\")\n elif sys.platform == \"win32\":\n sys.path.append(os.path.abspath(\"pylib\"))\n import gyp.MSVSVersion",
- "detail": "front.node_modules.node-gyp.gyp.test_gyp",
- "documentation": {}
- }
-]
\ No newline at end of file