Lines Matching refs:manifest
1 """Check the stable ABI manifest or generate files from it
7 (relative to the manifest file, as they appear in the CPython codebase).
51 # The stable ABI manifest (Misc/stable_abi.toml) exists only to fill the
69 """Yield selected items of the manifest
93 """Yield lines to recreate the manifest file (sans comments/newlines)"""
150 manifest = Manifest()
158 manifest.add(item)
163 return manifest
167 # manifest. (Checking works by generating a temp file & comparing.)
183 def gen_python3dll(manifest, args, outfile):
207 item.name for item in manifest.select({'feature_macro'}) if item.windows
210 manifest.select(
220 manifest.select(
237 def gen_doc_annotations(manifest, args, outfile):
244 for item in manifest.select(REST_ROLES.keys(), include_abi_only=False):
246 ifdef_note = manifest.contents[item.ifdef].doc
265 def gen_ctypes_test(manifest, args, outfile):
306 items = manifest.select(
330 feature_macros = list(manifest.select({'feature_macro'}))
339 def gen_testcapi_feature_macros(manifest, args, outfile):
346 for macro in manifest.select({'feature_macro'}):
359 def generate_or_check(manifest, args, path, func):
366 func(manifest, args, outfile)
386 def do_unixy_check(manifest, args):
393 feature_macros = set(m.name for m in manifest.select({'feature_macro'}))
398 item.name for item in manifest.select({'macro'})
406 expected_symbols = set(item.name for item in manifest.select(
416 manifest, LIBRARY, expected_symbols, dynamic=False)
423 manifest, LDLIBRARY, expected_symbols, dynamic=False)
426 expected_defs = set(item.name for item in manifest.select(
491 def binutils_check_library(manifest, library, expected_symbols, dynamic):
593 def check_private_names(manifest):
598 for name, item in manifest.contents.items():
604 def check_dump(manifest, filename):
605 """Check that manifest.dump() corresponds to the data.
609 dumped = tomllib.loads('\n'.join(manifest.dump()))
633 help="file with the stable abi manifest",
654 help="dump the manifest contents (used for debugging the parser)",
697 manifest = parse_manifest(file)
699 check_private_names(manifest)
707 for line in manifest.dump():
709 results['dump'] = check_dump(manifest, args.file)
718 results[gen.var_name] = generate_or_check(manifest, args, filename, gen)
721 results['unixy_check'] = do_unixy_check(manifest, args)
736 ABI manifest the were not regenerated.
741 The stable ABI manifest is at: {args.file}