| 1 | """Shim for jupyter packaging migration.""" |
| 2 | import osscip-python python python-stdlib 3.11 os/__init__: |
| 3 | import sysscip-python python python-stdlib 3.11 sys/__init__: |
| 4 | from pathlibscip-python python python-stdlib 3.11 pathlib/__init__: import Pathscip-python python python-stdlib 3.11 pathlib/Path# |
| 5 | |
| 6 | import tomli |
| 7 | import tomli_w |
| 8 | |
| 9 | __this_shimscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__this_shim. = sysscip-python python python-stdlib 3.11 sys/__init__:.modulesscip-python python python-stdlib 3.11 sys/modules.modules..popscip-python python python-stdlib 3.11 builtins/dict#pop().("jupyter_packaging") |
| 10 | __current_directoryscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__current_directory. = sysscip-python python python-stdlib 3.11 sys/__init__:.pathscip-python python python-stdlib 3.11 sys/path.path..popscip-python python python-stdlib 3.11 builtins/list#pop().(0) |
| 11 | |
| 12 | import jupyter_packagingscip-python python hatch-jupyter-builder 0.8.3 jupyter_packaging/__init__: as __real_jupyter_packaging # type:ignore |
| 13 | |
| 14 | sysscip-python python python-stdlib 3.11 sys/__init__:.pathscip-python python python-stdlib 3.11 sys/path.path..insertscip-python python python-stdlib 3.11 builtins/list#insert().(0, __current_directoryscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__current_directory.) |
| 15 | sysscip-python python python-stdlib 3.11 sys/__init__:.modulesscip-python python python-stdlib 3.11 sys/modules.modules.["jupyter_packaging"] = __this_shimscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__this_shim. |
| 16 | |
| 17 | |
| 18 | def _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().(pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().(path), datascip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().(data)): |
| 19 | pyproject = Pathscip-python python python-stdlib 3.11 pathlib/Path#("pyproject.toml") |
| 20 | top = tomli.loads(pyproject.read_textscip-python python python-stdlib 3.11 pathlib/Path#read_text().(encodingscip-python python python-stdlib 3.11 pathlib/Path#read_text().(encoding)="utf-8")) |
| 21 | current = top |
| 22 | parts = pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().(path).split(".") |
| 23 | for part in parts[:-1]: |
| 24 | if part in current: |
| 25 | current = current[part] |
| 26 | else: |
| 27 | current[part] = current = {} |
| 28 | if parts[-1] in current: |
| 29 | existing = current[parts[-1]] |
| 30 | else: |
| 31 | existing = current[parts[-1]] = {} |
| 32 | existing.updatescip-python python python-stdlib 3.11 typing/MutableMapping#update().(datascip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().(data)) |
| 33 | pyproject.write_textscip-python python python-stdlib 3.11 pathlib/Path#write_text().(tomli_w.dumps(top), encodingscip-python python python-stdlib 3.11 pathlib/Path#write_text().(encoding)="utf-8") |
| 34 | |
| 35 | |
| 36 | _npm_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_npm_kwargs. = ["path", "build_dir", "source_dir", "build_cmd", "npm"] |
| 37 | |
| 38 | |
| 39 | def _normalize_pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path)): |
| 40 | pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path) = strscip-python python python-stdlib 3.11 builtins/str#(pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path)) |
| 41 | cwd = osscip-python python python-stdlib 3.11 os/__init__:.getcwdscip-python python python-stdlib 3.11 os/getcwd().() |
| 42 | if pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path).startswithscip-python python python-stdlib 3.11 builtins/str#startswith().(cwd): |
| 43 | return osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..relpathscip-python python python-stdlib 3.11 posixpath/abspath().(pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path), cwd) |
| 44 | return pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(path) |
| 45 | |
| 46 | |
| 47 | def _get_build_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(**kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(kwargs)): |
| 48 | build_kwargs = {} |
| 49 | for name in _npm_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_npm_kwargs.: |
| 50 | value = kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(kwargs)[name] |
| 51 | if value is not None: |
| 52 | if name in ["path", "build_dir", "source_dir"]: |
| 53 | value = _normalize_pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(value) |
| 54 | build_kwargs[name] = value |
| 55 | if kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(kwargs).getscip-python python python-stdlib 3.11 builtins/dict#get().("force"): |
| 56 | build_kwargs["force"] = True |
| 57 | return build_kwargs |
| 58 | |
| 59 | |
| 60 | def skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(pathsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(paths), *argsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(args)): |
| 61 | """Shim for skip if exists""" |
| 62 | if pathsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(paths): |
| 63 | data = {"skip-if-exists": [_normalize_pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(p) for p in pathsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(paths)]} |
| 64 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder", data) |
| 65 | return __real_jupyter_packaging.skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(pathsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(paths), *argsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/skip_if_exists().(args)) |
| 66 | |
| 67 | |
| 68 | def ensure_targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targets)): |
| 69 | """Shim for ensure targets""" |
| 70 | if targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targets): |
| 71 | data = {"ensured-targets": [_normalize_pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(t) for t in targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targets)]} |
| 72 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder", data) |
| 73 | return __real_jupyter_packaging.ensure_targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/ensure_targets().(targets)) |
| 74 | |
| 75 | |
| 76 | def wrap_installersscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().( |
| 77 | pre_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_develop)=None, |
| 78 | pre_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_dist)=None, |
| 79 | post_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_develop)=None, |
| 80 | post_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_dist)=None, |
| 81 | ensured_targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(ensured_targets)=None, |
| 82 | skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(skip_if_exists)=None, |
| 83 | ): |
| 84 | """Shim for wrap_installers.""" |
| 85 | if pre_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_develop) or post_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_develop): |
| 86 | func = pre_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_develop) or post_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_develop) |
| 87 | build_kwargs = _get_build_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(**func.__kwargs) |
| 88 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs", build_kwargs) |
| 89 | |
| 90 | if pre_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_dist) or post_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_dist): |
| 91 | func = pre_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_dist) or post_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_dist) |
| 92 | build_kwargs = _get_build_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(**func.__kwargs) |
| 93 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder.build-kwargs", build_kwargs) |
| 94 | |
| 95 | if skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(skip_if_exists): |
| 96 | data = {"skip-if-exists": [_normalize_pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_normalize_path().(p) for p in skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(skip_if_exists)]} |
| 97 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder", data) |
| 98 | |
| 99 | return __real_jupyter_packaging.wrap_installersscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().( |
| 100 | pre_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_develop)=pre_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_develop), |
| 101 | pre_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_dist)=pre_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(pre_dist), |
| 102 | post_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_develop)=post_developscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_develop), |
| 103 | post_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_dist)=post_distscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(post_dist), |
| 104 | ensured_targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(ensured_targets)=ensured_targetsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(ensured_targets), |
| 105 | skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(skip_if_exists)=skip_if_existsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/wrap_installers().(skip_if_exists), |
| 106 | ) |
| 107 | |
| 108 | |
| 109 | def create_cmdclassscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().( |
| 110 | prerelease_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(prerelease_cmd)=None, package_data_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(package_data_spec)=None, data_files_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(data_files_spec)=None, excludescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(exclude)=None |
| 111 | ): |
| 112 | """Shim for create_cmdclass.""" |
| 113 | shared_data = {} |
| 114 | if data_files_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(data_files_spec) is not None: |
| 115 | for path, dname, pattern in data_files_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(data_files_spec): |
| 116 | if osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..isabsscip-python python python-stdlib 3.11 posixpath/abspath().(dname): |
| 117 | dname = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..relpathscip-python python python-stdlib 3.11 posixpath/abspath().(dname, osscip-python python python-stdlib 3.11 os/__init__:.getcwdscip-python python python-stdlib 3.11 os/getcwd().()) # noqa |
| 118 | if pattern == "**": |
| 119 | shared_data[dname] = path |
| 120 | else: |
| 121 | shared_data[f"{dname}/{pattern}"] = f"{path}/{pattern}" |
| 122 | |
| 123 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.targets.wheel.shared-data", shared_data) |
| 124 | |
| 125 | return __real_jupyter_packaging.create_cmdclassscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().( |
| 126 | prerelease_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(prerelease_cmd)=prerelease_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(prerelease_cmd), |
| 127 | package_data_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(package_data_spec)=package_data_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(package_data_spec), |
| 128 | data_files_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(data_files_spec)=data_files_specscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(data_files_spec), |
| 129 | excludescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(exclude)=excludescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/create_cmdclass().(exclude), |
| 130 | ) |
| 131 | |
| 132 | |
| 133 | def install_npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().( |
| 134 | pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(path)=None, build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_dir)=None, source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(source_dir)=None, build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_cmd)="build", forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(force)=False, npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(npm)=None |
| 135 | ): |
| 136 | """Shim for install_npm.""" |
| 137 | build_kwargs = _get_build_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_get_build_kwargs().(**locals()) |
| 138 | if build_kwargs: |
| 139 | _write_configscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_write_config().("tool.hatch.build.hooks.jupyter-builder.build-kwargs", build_kwargs) |
| 140 | |
| 141 | return __real_jupyter_packaging.install_npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().( |
| 142 | pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(path)=pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(path), |
| 143 | build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_dir)=build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_dir), |
| 144 | source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(source_dir)=source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(source_dir), |
| 145 | build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_cmd)=build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(build_cmd), |
| 146 | forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(force)=forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(force), |
| 147 | npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(npm)=npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/install_npm().(npm), |
| 148 | ) |
| 149 | |
| 150 | |
| 151 | def npm_builderscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().( |
| 152 | pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(path)=None, build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_dir)=None, source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(source_dir)=None, build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_cmd)="build", forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(force)=False, npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(npm)=None |
| 153 | ): |
| 154 | """Shim for npm_builder.""" |
| 155 | func = __real_jupyter_packaging.npm_builderscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().( |
| 156 | pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(path)=pathscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(path), |
| 157 | build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_dir)=build_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_dir), |
| 158 | source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(source_dir)=source_dirscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(source_dir), |
| 159 | build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_cmd)=build_cmdscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(build_cmd), |
| 160 | forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(force)=forcescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(force), |
| 161 | npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(npm)=npmscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/npm_builder().(npm), |
| 162 | ) |
| 163 | func.__kwargs = {} |
| 164 | for name in [*_npm_kwargsscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/_npm_kwargs., "force"]: |
| 165 | func.__kwargs[name] = locals()[name] |
| 166 | return func |
| 167 | |
| 168 | |
| 169 | def __getattr__scip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__getattr__().(namescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__getattr__().(name)): |
| 170 | """Defer to the original for all others.""" |
| 171 | return getattrscip-python python python-stdlib 3.11 builtins/getattr().(__real_jupyter_packaging, namescip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__getattr__().(name)) |
| 172 | |
| 173 | |
| 174 | del __this_shimscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__this_shim. |
| 175 | del __current_directoryscip-python python hatch-jupyter-builder 0.8.3 `hatch_jupyter_builder.migrate.jupyter_packaging`/__current_directory. |