@pnpm/exe 11.0.0-dev.1005 → 11.0.0-rc.1
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.
- package/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/@gar/promise-retry/LICENSE +20 -0
- package/dist/node_modules/@gar/promise-retry/lib/index.js +62 -0
- package/dist/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/dist/node_modules/@gar/promise-retry/package.json +45 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
- package/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
- package/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/dist/node_modules/@npmcli/agent/package.json +60 -0
- package/dist/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/dist/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/dist/node_modules/@npmcli/fs/package.json +54 -0
- package/dist/node_modules/@npmcli/redact/LICENSE +21 -0
- package/dist/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/dist/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/dist/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/dist/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/dist/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/dist/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/dist/node_modules/@npmcli/redact/package.json +52 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +41 -0
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/index.js +178 -0
- package/dist/node_modules/agent-base/package.json +46 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/dist/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/dist/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/dist/node_modules/balanced-match/package.json +68 -0
- package/dist/node_modules/brace-expansion/LICENSE +23 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +201 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js +197 -0
- package/dist/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/dist/node_modules/brace-expansion/package.json +64 -0
- package/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/dist/node_modules/cacache/lib/content/read.js +165 -0
- package/dist/node_modules/cacache/lib/content/rm.js +18 -0
- package/dist/node_modules/cacache/lib/content/write.js +206 -0
- package/dist/node_modules/cacache/lib/entry-index.js +336 -0
- package/dist/node_modules/cacache/lib/get.js +170 -0
- package/dist/node_modules/cacache/lib/index.js +42 -0
- package/dist/node_modules/cacache/lib/memoization.js +72 -0
- package/dist/node_modules/cacache/lib/put.js +80 -0
- package/dist/node_modules/cacache/lib/rm.js +31 -0
- package/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +32 -0
- package/dist/node_modules/cacache/lib/verify.js +258 -0
- package/dist/node_modules/cacache/package.json +81 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/env-paths/index.js +74 -0
- package/dist/node_modules/env-paths/license +9 -0
- package/dist/node_modules/env-paths/package.json +45 -0
- package/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/esm/glob.js +244 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/index.min.js +4 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +219 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/package.json +98 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/http-cache-semantics/LICENSE +9 -0
- package/dist/node_modules/http-cache-semantics/index.js +928 -0
- package/dist/node_modules/http-cache-semantics/package.json +22 -0
- package/dist/node_modules/http-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/dist/node_modules/http-proxy-agent/package.json +47 -0
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/dist/node_modules/https-proxy-agent/package.json +50 -0
- package/dist/node_modules/iconv-lite/LICENSE +21 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/dist/node_modules/iconv-lite/encodings/index.js +23 -0
- package/dist/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/dist/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/dist/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/dist/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/dist/node_modules/iconv-lite/lib/index.js +182 -0
- package/dist/node_modules/iconv-lite/lib/streams.js +105 -0
- package/dist/node_modules/iconv-lite/package.json +70 -0
- package/dist/node_modules/ip-address/LICENSE +19 -0
- package/dist/node_modules/ip-address/dist/address-error.js +12 -0
- package/dist/node_modules/ip-address/dist/common.js +46 -0
- package/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/dist/node_modules/ip-address/dist/ipv4.js +360 -0
- package/dist/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/dist/node_modules/ip-address/package.json +78 -0
- package/dist/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +10 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1692 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +7 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +126 -0
- package/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/dist/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/dist/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +134 -0
- package/dist/node_modules/make-fetch-happen/package.json +75 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/dist/node_modules/minimatch/package.json +73 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1020 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +77 -0
- package/dist/node_modules/minipass-collect/LICENSE +15 -0
- package/dist/node_modules/minipass-collect/index.js +71 -0
- package/dist/node_modules/minipass-collect/package.json +30 -0
- package/dist/node_modules/minipass-fetch/LICENSE +28 -0
- package/dist/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/dist/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/dist/node_modules/minipass-fetch/lib/body.js +360 -0
- package/dist/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/dist/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/dist/node_modules/minipass-fetch/lib/index.js +376 -0
- package/dist/node_modules/minipass-fetch/lib/request.js +282 -0
- package/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/dist/node_modules/minipass-fetch/package.json +70 -0
- package/dist/node_modules/minipass-flush/index.js +39 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-flush/package.json +42 -0
- package/dist/node_modules/minipass-pipeline/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/index.js +128 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-pipeline/package.json +29 -0
- package/dist/node_modules/minipass-sized/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
- package/dist/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/dist/node_modules/minipass-sized/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass-sized/package.json +69 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/ms/index.js +162 -0
- package/dist/node_modules/ms/package.json +38 -0
- package/dist/node_modules/negotiator/LICENSE +24 -0
- package/dist/node_modules/negotiator/index.js +83 -0
- package/dist/node_modules/negotiator/lib/charset.js +169 -0
- package/dist/node_modules/negotiator/lib/encoding.js +205 -0
- package/dist/node_modules/negotiator/lib/language.js +179 -0
- package/dist/node_modules/negotiator/lib/mediaType.js +294 -0
- package/dist/node_modules/negotiator/package.json +43 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/LICENSE +24 -0
- package/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +145 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +599 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2956 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +114 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +304 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +146 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/p-map/index.js +283 -0
- package/dist/node_modules/p-map/license +9 -0
- package/dist/node_modules/p-map/package.json +57 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/package.json +72 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/node_modules/picomatch/lib/parse.js +1386 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +349 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +82 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +158 -0
- package/dist/node_modules/proc-log/package.json +46 -0
- package/dist/node_modules/safer-buffer/LICENSE +21 -0
- package/dist/node_modules/safer-buffer/dangerous.js +58 -0
- package/dist/node_modules/safer-buffer/package.json +34 -0
- package/dist/node_modules/safer-buffer/safer.js +77 -0
- package/dist/node_modules/safer-buffer/tests.js +406 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +191 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +557 -0
- package/dist/node_modules/semver/classes/semver.js +333 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +91 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/dist/node_modules/smart-buffer/LICENSE +20 -0
- package/dist/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/dist/node_modules/smart-buffer/build/utils.js +108 -0
- package/dist/node_modules/smart-buffer/package.json +79 -0
- package/dist/node_modules/socks/.eslintrc.cjs +11 -0
- package/dist/node_modules/socks/.prettierrc.yaml +7 -0
- package/dist/node_modules/socks/LICENSE +20 -0
- package/dist/node_modules/socks/build/client/socksclient.js +793 -0
- package/dist/node_modules/socks/build/common/constants.js +108 -0
- package/dist/node_modules/socks/build/common/helpers.js +167 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/dist/node_modules/socks/build/common/util.js +25 -0
- package/dist/node_modules/socks/build/index.js +18 -0
- package/dist/node_modules/socks/package.json +58 -0
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/dist/node_modules/socks-proxy-agent/package.json +142 -0
- package/dist/node_modules/ssri/lib/index.js +550 -0
- package/dist/node_modules/ssri/package.json +66 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +312 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +511 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +50 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/dist/node_modules/tar/dist/esm/header.js +275 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +105 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +469 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +606 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +154 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +45 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +297 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/dist/node_modules/tinyglobby/package.json +73 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- package/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/dist/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/which/package.json +52 -0
- package/dist/node_modules/yallist/LICENSE +15 -0
- package/dist/node_modules/yallist/iterator.js +8 -0
- package/dist/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/yallist/yallist.js +426 -0
- package/dist/pnpm.mjs +267218 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/dist/worker.js +10958 -0
- package/package.json +34 -11
- package/pn +2 -0
- package/pn.cmd +2 -0
- package/pn.ps1 +1 -0
- package/pnpx +2 -0
- package/pnpx.cmd +2 -0
- package/pnpx.ps1 +1 -0
- package/pnx +2 -0
- package/pnx.cmd +2 -0
- package/pnx.ps1 +1 -0
- package/prepare.js +26 -3
- package/setup.js +22 -11
- package/CHANGELOG.md +0 -15
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
# This file is dual licensed under the terms of the Apache License, Version
|
|
2
|
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
|
3
|
+
# for complete details.
|
|
4
|
+
"""
|
|
5
|
+
.. testsetup::
|
|
6
|
+
|
|
7
|
+
from packaging.version import parse, Version
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import itertools
|
|
11
|
+
import re
|
|
12
|
+
from typing import Any, Callable, NamedTuple, Optional, SupportsInt, Tuple, Union
|
|
13
|
+
|
|
14
|
+
from ._structures import Infinity, InfinityType, NegativeInfinity, NegativeInfinityType
|
|
15
|
+
|
|
16
|
+
__all__ = ["VERSION_PATTERN", "parse", "Version", "InvalidVersion"]
|
|
17
|
+
|
|
18
|
+
LocalType = Tuple[Union[int, str], ...]
|
|
19
|
+
|
|
20
|
+
CmpPrePostDevType = Union[InfinityType, NegativeInfinityType, Tuple[str, int]]
|
|
21
|
+
CmpLocalType = Union[
|
|
22
|
+
NegativeInfinityType,
|
|
23
|
+
Tuple[Union[Tuple[int, str], Tuple[NegativeInfinityType, Union[int, str]]], ...],
|
|
24
|
+
]
|
|
25
|
+
CmpKey = Tuple[
|
|
26
|
+
int,
|
|
27
|
+
Tuple[int, ...],
|
|
28
|
+
CmpPrePostDevType,
|
|
29
|
+
CmpPrePostDevType,
|
|
30
|
+
CmpPrePostDevType,
|
|
31
|
+
CmpLocalType,
|
|
32
|
+
]
|
|
33
|
+
VersionComparisonMethod = Callable[[CmpKey, CmpKey], bool]
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class _Version(NamedTuple):
|
|
37
|
+
epoch: int
|
|
38
|
+
release: Tuple[int, ...]
|
|
39
|
+
dev: Optional[Tuple[str, int]]
|
|
40
|
+
pre: Optional[Tuple[str, int]]
|
|
41
|
+
post: Optional[Tuple[str, int]]
|
|
42
|
+
local: Optional[LocalType]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def parse(version: str) -> "Version":
|
|
46
|
+
"""Parse the given version string.
|
|
47
|
+
|
|
48
|
+
>>> parse('1.0.dev1')
|
|
49
|
+
<Version('1.0.dev1')>
|
|
50
|
+
|
|
51
|
+
:param version: The version string to parse.
|
|
52
|
+
:raises InvalidVersion: When the version string is not a valid version.
|
|
53
|
+
"""
|
|
54
|
+
return Version(version)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class InvalidVersion(ValueError):
|
|
58
|
+
"""Raised when a version string is not a valid version.
|
|
59
|
+
|
|
60
|
+
>>> Version("invalid")
|
|
61
|
+
Traceback (most recent call last):
|
|
62
|
+
...
|
|
63
|
+
packaging.version.InvalidVersion: Invalid version: 'invalid'
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class _BaseVersion:
|
|
68
|
+
_key: Tuple[Any, ...]
|
|
69
|
+
|
|
70
|
+
def __hash__(self) -> int:
|
|
71
|
+
return hash(self._key)
|
|
72
|
+
|
|
73
|
+
# Please keep the duplicated `isinstance` check
|
|
74
|
+
# in the six comparisons hereunder
|
|
75
|
+
# unless you find a way to avoid adding overhead function calls.
|
|
76
|
+
def __lt__(self, other: "_BaseVersion") -> bool:
|
|
77
|
+
if not isinstance(other, _BaseVersion):
|
|
78
|
+
return NotImplemented
|
|
79
|
+
|
|
80
|
+
return self._key < other._key
|
|
81
|
+
|
|
82
|
+
def __le__(self, other: "_BaseVersion") -> bool:
|
|
83
|
+
if not isinstance(other, _BaseVersion):
|
|
84
|
+
return NotImplemented
|
|
85
|
+
|
|
86
|
+
return self._key <= other._key
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: object) -> bool:
|
|
89
|
+
if not isinstance(other, _BaseVersion):
|
|
90
|
+
return NotImplemented
|
|
91
|
+
|
|
92
|
+
return self._key == other._key
|
|
93
|
+
|
|
94
|
+
def __ge__(self, other: "_BaseVersion") -> bool:
|
|
95
|
+
if not isinstance(other, _BaseVersion):
|
|
96
|
+
return NotImplemented
|
|
97
|
+
|
|
98
|
+
return self._key >= other._key
|
|
99
|
+
|
|
100
|
+
def __gt__(self, other: "_BaseVersion") -> bool:
|
|
101
|
+
if not isinstance(other, _BaseVersion):
|
|
102
|
+
return NotImplemented
|
|
103
|
+
|
|
104
|
+
return self._key > other._key
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other: object) -> bool:
|
|
107
|
+
if not isinstance(other, _BaseVersion):
|
|
108
|
+
return NotImplemented
|
|
109
|
+
|
|
110
|
+
return self._key != other._key
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# Deliberately not anchored to the start and end of the string, to make it
|
|
114
|
+
# easier for 3rd party code to reuse
|
|
115
|
+
_VERSION_PATTERN = r"""
|
|
116
|
+
v?
|
|
117
|
+
(?:
|
|
118
|
+
(?:(?P<epoch>[0-9]+)!)? # epoch
|
|
119
|
+
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
|
|
120
|
+
(?P<pre> # pre-release
|
|
121
|
+
[-_\.]?
|
|
122
|
+
(?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
|
|
123
|
+
[-_\.]?
|
|
124
|
+
(?P<pre_n>[0-9]+)?
|
|
125
|
+
)?
|
|
126
|
+
(?P<post> # post release
|
|
127
|
+
(?:-(?P<post_n1>[0-9]+))
|
|
128
|
+
|
|
|
129
|
+
(?:
|
|
130
|
+
[-_\.]?
|
|
131
|
+
(?P<post_l>post|rev|r)
|
|
132
|
+
[-_\.]?
|
|
133
|
+
(?P<post_n2>[0-9]+)?
|
|
134
|
+
)
|
|
135
|
+
)?
|
|
136
|
+
(?P<dev> # dev release
|
|
137
|
+
[-_\.]?
|
|
138
|
+
(?P<dev_l>dev)
|
|
139
|
+
[-_\.]?
|
|
140
|
+
(?P<dev_n>[0-9]+)?
|
|
141
|
+
)?
|
|
142
|
+
)
|
|
143
|
+
(?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))? # local version
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
VERSION_PATTERN = _VERSION_PATTERN
|
|
147
|
+
"""
|
|
148
|
+
A string containing the regular expression used to match a valid version.
|
|
149
|
+
|
|
150
|
+
The pattern is not anchored at either end, and is intended for embedding in larger
|
|
151
|
+
expressions (for example, matching a version number as part of a file name). The
|
|
152
|
+
regular expression should be compiled with the ``re.VERBOSE`` and ``re.IGNORECASE``
|
|
153
|
+
flags set.
|
|
154
|
+
|
|
155
|
+
:meta hide-value:
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class Version(_BaseVersion):
|
|
160
|
+
"""This class abstracts handling of a project's versions.
|
|
161
|
+
|
|
162
|
+
A :class:`Version` instance is comparison aware and can be compared and
|
|
163
|
+
sorted using the standard Python interfaces.
|
|
164
|
+
|
|
165
|
+
>>> v1 = Version("1.0a5")
|
|
166
|
+
>>> v2 = Version("1.0")
|
|
167
|
+
>>> v1
|
|
168
|
+
<Version('1.0a5')>
|
|
169
|
+
>>> v2
|
|
170
|
+
<Version('1.0')>
|
|
171
|
+
>>> v1 < v2
|
|
172
|
+
True
|
|
173
|
+
>>> v1 == v2
|
|
174
|
+
False
|
|
175
|
+
>>> v1 > v2
|
|
176
|
+
False
|
|
177
|
+
>>> v1 >= v2
|
|
178
|
+
False
|
|
179
|
+
>>> v1 <= v2
|
|
180
|
+
True
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
_regex = re.compile(r"^\s*" + VERSION_PATTERN + r"\s*$", re.VERBOSE | re.IGNORECASE)
|
|
184
|
+
_key: CmpKey
|
|
185
|
+
|
|
186
|
+
def __init__(self, version: str) -> None:
|
|
187
|
+
"""Initialize a Version object.
|
|
188
|
+
|
|
189
|
+
:param version:
|
|
190
|
+
The string representation of a version which will be parsed and normalized
|
|
191
|
+
before use.
|
|
192
|
+
:raises InvalidVersion:
|
|
193
|
+
If the ``version`` does not conform to PEP 440 in any way then this
|
|
194
|
+
exception will be raised.
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
# Validate the version and parse it into pieces
|
|
198
|
+
match = self._regex.search(version)
|
|
199
|
+
if not match:
|
|
200
|
+
raise InvalidVersion(f"Invalid version: '{version}'")
|
|
201
|
+
|
|
202
|
+
# Store the parsed out pieces of the version
|
|
203
|
+
self._version = _Version(
|
|
204
|
+
epoch=int(match.group("epoch")) if match.group("epoch") else 0,
|
|
205
|
+
release=tuple(int(i) for i in match.group("release").split(".")),
|
|
206
|
+
pre=_parse_letter_version(match.group("pre_l"), match.group("pre_n")),
|
|
207
|
+
post=_parse_letter_version(
|
|
208
|
+
match.group("post_l"), match.group("post_n1") or match.group("post_n2")
|
|
209
|
+
),
|
|
210
|
+
dev=_parse_letter_version(match.group("dev_l"), match.group("dev_n")),
|
|
211
|
+
local=_parse_local_version(match.group("local")),
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
# Generate a key which will be used for sorting
|
|
215
|
+
self._key = _cmpkey(
|
|
216
|
+
self._version.epoch,
|
|
217
|
+
self._version.release,
|
|
218
|
+
self._version.pre,
|
|
219
|
+
self._version.post,
|
|
220
|
+
self._version.dev,
|
|
221
|
+
self._version.local,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
def __repr__(self) -> str:
|
|
225
|
+
"""A representation of the Version that shows all internal state.
|
|
226
|
+
|
|
227
|
+
>>> Version('1.0.0')
|
|
228
|
+
<Version('1.0.0')>
|
|
229
|
+
"""
|
|
230
|
+
return f"<Version('{self}')>"
|
|
231
|
+
|
|
232
|
+
def __str__(self) -> str:
|
|
233
|
+
"""A string representation of the version that can be rounded-tripped.
|
|
234
|
+
|
|
235
|
+
>>> str(Version("1.0a5"))
|
|
236
|
+
'1.0a5'
|
|
237
|
+
"""
|
|
238
|
+
parts = []
|
|
239
|
+
|
|
240
|
+
# Epoch
|
|
241
|
+
if self.epoch != 0:
|
|
242
|
+
parts.append(f"{self.epoch}!")
|
|
243
|
+
|
|
244
|
+
# Release segment
|
|
245
|
+
parts.append(".".join(str(x) for x in self.release))
|
|
246
|
+
|
|
247
|
+
# Pre-release
|
|
248
|
+
if self.pre is not None:
|
|
249
|
+
parts.append("".join(str(x) for x in self.pre))
|
|
250
|
+
|
|
251
|
+
# Post-release
|
|
252
|
+
if self.post is not None:
|
|
253
|
+
parts.append(f".post{self.post}")
|
|
254
|
+
|
|
255
|
+
# Development release
|
|
256
|
+
if self.dev is not None:
|
|
257
|
+
parts.append(f".dev{self.dev}")
|
|
258
|
+
|
|
259
|
+
# Local version segment
|
|
260
|
+
if self.local is not None:
|
|
261
|
+
parts.append(f"+{self.local}")
|
|
262
|
+
|
|
263
|
+
return "".join(parts)
|
|
264
|
+
|
|
265
|
+
@property
|
|
266
|
+
def epoch(self) -> int:
|
|
267
|
+
"""The epoch of the version.
|
|
268
|
+
|
|
269
|
+
>>> Version("2.0.0").epoch
|
|
270
|
+
0
|
|
271
|
+
>>> Version("1!2.0.0").epoch
|
|
272
|
+
1
|
|
273
|
+
"""
|
|
274
|
+
return self._version.epoch
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def release(self) -> Tuple[int, ...]:
|
|
278
|
+
"""The components of the "release" segment of the version.
|
|
279
|
+
|
|
280
|
+
>>> Version("1.2.3").release
|
|
281
|
+
(1, 2, 3)
|
|
282
|
+
>>> Version("2.0.0").release
|
|
283
|
+
(2, 0, 0)
|
|
284
|
+
>>> Version("1!2.0.0.post0").release
|
|
285
|
+
(2, 0, 0)
|
|
286
|
+
|
|
287
|
+
Includes trailing zeroes but not the epoch or any pre-release / development /
|
|
288
|
+
post-release suffixes.
|
|
289
|
+
"""
|
|
290
|
+
return self._version.release
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def pre(self) -> Optional[Tuple[str, int]]:
|
|
294
|
+
"""The pre-release segment of the version.
|
|
295
|
+
|
|
296
|
+
>>> print(Version("1.2.3").pre)
|
|
297
|
+
None
|
|
298
|
+
>>> Version("1.2.3a1").pre
|
|
299
|
+
('a', 1)
|
|
300
|
+
>>> Version("1.2.3b1").pre
|
|
301
|
+
('b', 1)
|
|
302
|
+
>>> Version("1.2.3rc1").pre
|
|
303
|
+
('rc', 1)
|
|
304
|
+
"""
|
|
305
|
+
return self._version.pre
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
def post(self) -> Optional[int]:
|
|
309
|
+
"""The post-release number of the version.
|
|
310
|
+
|
|
311
|
+
>>> print(Version("1.2.3").post)
|
|
312
|
+
None
|
|
313
|
+
>>> Version("1.2.3.post1").post
|
|
314
|
+
1
|
|
315
|
+
"""
|
|
316
|
+
return self._version.post[1] if self._version.post else None
|
|
317
|
+
|
|
318
|
+
@property
|
|
319
|
+
def dev(self) -> Optional[int]:
|
|
320
|
+
"""The development number of the version.
|
|
321
|
+
|
|
322
|
+
>>> print(Version("1.2.3").dev)
|
|
323
|
+
None
|
|
324
|
+
>>> Version("1.2.3.dev1").dev
|
|
325
|
+
1
|
|
326
|
+
"""
|
|
327
|
+
return self._version.dev[1] if self._version.dev else None
|
|
328
|
+
|
|
329
|
+
@property
|
|
330
|
+
def local(self) -> Optional[str]:
|
|
331
|
+
"""The local version segment of the version.
|
|
332
|
+
|
|
333
|
+
>>> print(Version("1.2.3").local)
|
|
334
|
+
None
|
|
335
|
+
>>> Version("1.2.3+abc").local
|
|
336
|
+
'abc'
|
|
337
|
+
"""
|
|
338
|
+
if self._version.local:
|
|
339
|
+
return ".".join(str(x) for x in self._version.local)
|
|
340
|
+
else:
|
|
341
|
+
return None
|
|
342
|
+
|
|
343
|
+
@property
|
|
344
|
+
def public(self) -> str:
|
|
345
|
+
"""The public portion of the version.
|
|
346
|
+
|
|
347
|
+
>>> Version("1.2.3").public
|
|
348
|
+
'1.2.3'
|
|
349
|
+
>>> Version("1.2.3+abc").public
|
|
350
|
+
'1.2.3'
|
|
351
|
+
>>> Version("1.2.3+abc.dev1").public
|
|
352
|
+
'1.2.3'
|
|
353
|
+
"""
|
|
354
|
+
return str(self).split("+", 1)[0]
|
|
355
|
+
|
|
356
|
+
@property
|
|
357
|
+
def base_version(self) -> str:
|
|
358
|
+
"""The "base version" of the version.
|
|
359
|
+
|
|
360
|
+
>>> Version("1.2.3").base_version
|
|
361
|
+
'1.2.3'
|
|
362
|
+
>>> Version("1.2.3+abc").base_version
|
|
363
|
+
'1.2.3'
|
|
364
|
+
>>> Version("1!1.2.3+abc.dev1").base_version
|
|
365
|
+
'1!1.2.3'
|
|
366
|
+
|
|
367
|
+
The "base version" is the public version of the project without any pre or post
|
|
368
|
+
release markers.
|
|
369
|
+
"""
|
|
370
|
+
parts = []
|
|
371
|
+
|
|
372
|
+
# Epoch
|
|
373
|
+
if self.epoch != 0:
|
|
374
|
+
parts.append(f"{self.epoch}!")
|
|
375
|
+
|
|
376
|
+
# Release segment
|
|
377
|
+
parts.append(".".join(str(x) for x in self.release))
|
|
378
|
+
|
|
379
|
+
return "".join(parts)
|
|
380
|
+
|
|
381
|
+
@property
|
|
382
|
+
def is_prerelease(self) -> bool:
|
|
383
|
+
"""Whether this version is a pre-release.
|
|
384
|
+
|
|
385
|
+
>>> Version("1.2.3").is_prerelease
|
|
386
|
+
False
|
|
387
|
+
>>> Version("1.2.3a1").is_prerelease
|
|
388
|
+
True
|
|
389
|
+
>>> Version("1.2.3b1").is_prerelease
|
|
390
|
+
True
|
|
391
|
+
>>> Version("1.2.3rc1").is_prerelease
|
|
392
|
+
True
|
|
393
|
+
>>> Version("1.2.3dev1").is_prerelease
|
|
394
|
+
True
|
|
395
|
+
"""
|
|
396
|
+
return self.dev is not None or self.pre is not None
|
|
397
|
+
|
|
398
|
+
@property
|
|
399
|
+
def is_postrelease(self) -> bool:
|
|
400
|
+
"""Whether this version is a post-release.
|
|
401
|
+
|
|
402
|
+
>>> Version("1.2.3").is_postrelease
|
|
403
|
+
False
|
|
404
|
+
>>> Version("1.2.3.post1").is_postrelease
|
|
405
|
+
True
|
|
406
|
+
"""
|
|
407
|
+
return self.post is not None
|
|
408
|
+
|
|
409
|
+
@property
|
|
410
|
+
def is_devrelease(self) -> bool:
|
|
411
|
+
"""Whether this version is a development release.
|
|
412
|
+
|
|
413
|
+
>>> Version("1.2.3").is_devrelease
|
|
414
|
+
False
|
|
415
|
+
>>> Version("1.2.3.dev1").is_devrelease
|
|
416
|
+
True
|
|
417
|
+
"""
|
|
418
|
+
return self.dev is not None
|
|
419
|
+
|
|
420
|
+
@property
|
|
421
|
+
def major(self) -> int:
|
|
422
|
+
"""The first item of :attr:`release` or ``0`` if unavailable.
|
|
423
|
+
|
|
424
|
+
>>> Version("1.2.3").major
|
|
425
|
+
1
|
|
426
|
+
"""
|
|
427
|
+
return self.release[0] if len(self.release) >= 1 else 0
|
|
428
|
+
|
|
429
|
+
@property
|
|
430
|
+
def minor(self) -> int:
|
|
431
|
+
"""The second item of :attr:`release` or ``0`` if unavailable.
|
|
432
|
+
|
|
433
|
+
>>> Version("1.2.3").minor
|
|
434
|
+
2
|
|
435
|
+
>>> Version("1").minor
|
|
436
|
+
0
|
|
437
|
+
"""
|
|
438
|
+
return self.release[1] if len(self.release) >= 2 else 0
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
def micro(self) -> int:
|
|
442
|
+
"""The third item of :attr:`release` or ``0`` if unavailable.
|
|
443
|
+
|
|
444
|
+
>>> Version("1.2.3").micro
|
|
445
|
+
3
|
|
446
|
+
>>> Version("1").micro
|
|
447
|
+
0
|
|
448
|
+
"""
|
|
449
|
+
return self.release[2] if len(self.release) >= 3 else 0
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
def _parse_letter_version(
|
|
453
|
+
letter: Optional[str], number: Union[str, bytes, SupportsInt, None]
|
|
454
|
+
) -> Optional[Tuple[str, int]]:
|
|
455
|
+
|
|
456
|
+
if letter:
|
|
457
|
+
# We consider there to be an implicit 0 in a pre-release if there is
|
|
458
|
+
# not a numeral associated with it.
|
|
459
|
+
if number is None:
|
|
460
|
+
number = 0
|
|
461
|
+
|
|
462
|
+
# We normalize any letters to their lower case form
|
|
463
|
+
letter = letter.lower()
|
|
464
|
+
|
|
465
|
+
# We consider some words to be alternate spellings of other words and
|
|
466
|
+
# in those cases we want to normalize the spellings to our preferred
|
|
467
|
+
# spelling.
|
|
468
|
+
if letter == "alpha":
|
|
469
|
+
letter = "a"
|
|
470
|
+
elif letter == "beta":
|
|
471
|
+
letter = "b"
|
|
472
|
+
elif letter in ["c", "pre", "preview"]:
|
|
473
|
+
letter = "rc"
|
|
474
|
+
elif letter in ["rev", "r"]:
|
|
475
|
+
letter = "post"
|
|
476
|
+
|
|
477
|
+
return letter, int(number)
|
|
478
|
+
if not letter and number:
|
|
479
|
+
# We assume if we are given a number, but we are not given a letter
|
|
480
|
+
# then this is using the implicit post release syntax (e.g. 1.0-1)
|
|
481
|
+
letter = "post"
|
|
482
|
+
|
|
483
|
+
return letter, int(number)
|
|
484
|
+
|
|
485
|
+
return None
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
_local_version_separators = re.compile(r"[\._-]")
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _parse_local_version(local: Optional[str]) -> Optional[LocalType]:
|
|
492
|
+
"""
|
|
493
|
+
Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
|
|
494
|
+
"""
|
|
495
|
+
if local is not None:
|
|
496
|
+
return tuple(
|
|
497
|
+
part.lower() if not part.isdigit() else int(part)
|
|
498
|
+
for part in _local_version_separators.split(local)
|
|
499
|
+
)
|
|
500
|
+
return None
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def _cmpkey(
|
|
504
|
+
epoch: int,
|
|
505
|
+
release: Tuple[int, ...],
|
|
506
|
+
pre: Optional[Tuple[str, int]],
|
|
507
|
+
post: Optional[Tuple[str, int]],
|
|
508
|
+
dev: Optional[Tuple[str, int]],
|
|
509
|
+
local: Optional[LocalType],
|
|
510
|
+
) -> CmpKey:
|
|
511
|
+
|
|
512
|
+
# When we compare a release version, we want to compare it with all of the
|
|
513
|
+
# trailing zeros removed. So we'll use a reverse the list, drop all the now
|
|
514
|
+
# leading zeros until we come to something non zero, then take the rest
|
|
515
|
+
# re-reverse it back into the correct order and make it a tuple and use
|
|
516
|
+
# that for our sorting key.
|
|
517
|
+
_release = tuple(
|
|
518
|
+
reversed(list(itertools.dropwhile(lambda x: x == 0, reversed(release))))
|
|
519
|
+
)
|
|
520
|
+
|
|
521
|
+
# We need to "trick" the sorting algorithm to put 1.0.dev0 before 1.0a0.
|
|
522
|
+
# We'll do this by abusing the pre segment, but we _only_ want to do this
|
|
523
|
+
# if there is not a pre or a post segment. If we have one of those then
|
|
524
|
+
# the normal sorting rules will handle this case correctly.
|
|
525
|
+
if pre is None and post is None and dev is not None:
|
|
526
|
+
_pre: CmpPrePostDevType = NegativeInfinity
|
|
527
|
+
# Versions without a pre-release (except as noted above) should sort after
|
|
528
|
+
# those with one.
|
|
529
|
+
elif pre is None:
|
|
530
|
+
_pre = Infinity
|
|
531
|
+
else:
|
|
532
|
+
_pre = pre
|
|
533
|
+
|
|
534
|
+
# Versions without a post segment should sort before those with one.
|
|
535
|
+
if post is None:
|
|
536
|
+
_post: CmpPrePostDevType = NegativeInfinity
|
|
537
|
+
|
|
538
|
+
else:
|
|
539
|
+
_post = post
|
|
540
|
+
|
|
541
|
+
# Versions without a development segment should sort after those with one.
|
|
542
|
+
if dev is None:
|
|
543
|
+
_dev: CmpPrePostDevType = Infinity
|
|
544
|
+
|
|
545
|
+
else:
|
|
546
|
+
_dev = dev
|
|
547
|
+
|
|
548
|
+
if local is None:
|
|
549
|
+
# Versions without a local segment should sort before those with one.
|
|
550
|
+
_local: CmpLocalType = NegativeInfinity
|
|
551
|
+
else:
|
|
552
|
+
# Versions with a local segment need that segment parsed to implement
|
|
553
|
+
# the sorting rules in PEP440.
|
|
554
|
+
# - Alpha numeric segments sort before numeric segments
|
|
555
|
+
# - Alpha numeric segments sort lexicographically
|
|
556
|
+
# - Numeric segments sort numerically
|
|
557
|
+
# - Shorter versions sort before longer versions when the prefixes
|
|
558
|
+
# match exactly
|
|
559
|
+
_local = tuple(
|
|
560
|
+
(i, "") if isinstance(i, int) else (NegativeInfinity, i) for i in local
|
|
561
|
+
)
|
|
562
|
+
|
|
563
|
+
return epoch, _release, _pre, _post, _dev, _local
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "gyp-next"
|
|
7
|
+
version = "0.21.1"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Node.js contributors", email="ryzokuken@disroot.org" },
|
|
10
|
+
]
|
|
11
|
+
description = "A fork of the GYP build system for use in the Node.js projects"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = { file="LICENSE" }
|
|
14
|
+
requires-python = ">=3.8"
|
|
15
|
+
dependencies = ["packaging>=24.0", "setuptools>=69.5.1"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: BSD License",
|
|
21
|
+
"Natural Language :: English",
|
|
22
|
+
"Programming Language :: Python",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3.8",
|
|
25
|
+
"Programming Language :: Python :: 3.9",
|
|
26
|
+
"Programming Language :: Python :: 3.10",
|
|
27
|
+
"Programming Language :: Python :: 3.11",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
dev = ["pytest", "ruff"]
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
gyp = "gyp:script_main"
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
"Homepage" = "https://github.com/nodejs/gyp-next"
|
|
38
|
+
|
|
39
|
+
[tool.ruff]
|
|
40
|
+
extend-exclude = ["pylib/packaging"]
|
|
41
|
+
line-length = 88
|
|
42
|
+
|
|
43
|
+
[tool.ruff.lint]
|
|
44
|
+
select = [
|
|
45
|
+
"C4", # flake8-comprehensions
|
|
46
|
+
"C90", # McCabe cyclomatic complexity
|
|
47
|
+
"DTZ", # flake8-datetimez
|
|
48
|
+
"E", # pycodestyle
|
|
49
|
+
"F", # Pyflakes
|
|
50
|
+
"G", # flake8-logging-format
|
|
51
|
+
"ICN", # flake8-import-conventions
|
|
52
|
+
"INT", # flake8-gettext
|
|
53
|
+
"PL", # Pylint
|
|
54
|
+
"PYI", # flake8-pyi
|
|
55
|
+
"RSE", # flake8-raise
|
|
56
|
+
"RUF", # Ruff-specific rules
|
|
57
|
+
"T10", # flake8-debugger
|
|
58
|
+
"TCH", # flake8-type-checking
|
|
59
|
+
"TID", # flake8-tidy-imports
|
|
60
|
+
"UP", # pyupgrade
|
|
61
|
+
"W", # pycodestyle
|
|
62
|
+
"YTT", # flake8-2020
|
|
63
|
+
# "A", # flake8-builtins
|
|
64
|
+
# "ANN", # flake8-annotations
|
|
65
|
+
# "ARG", # flake8-unused-arguments
|
|
66
|
+
# "B", # flake8-bugbear
|
|
67
|
+
# "BLE", # flake8-blind-except
|
|
68
|
+
# "COM", # flake8-commas
|
|
69
|
+
# "D", # pydocstyle
|
|
70
|
+
# "DJ", # flake8-django
|
|
71
|
+
# "EM", # flake8-errmsg
|
|
72
|
+
# "ERA", # eradicate
|
|
73
|
+
# "EXE", # flake8-executable
|
|
74
|
+
# "FBT", # flake8-boolean-trap
|
|
75
|
+
# "I", # isort
|
|
76
|
+
# "INP", # flake8-no-pep420
|
|
77
|
+
# "ISC", # flake8-implicit-str-concat
|
|
78
|
+
# "N", # pep8-naming
|
|
79
|
+
# "NPY", # NumPy-specific rules
|
|
80
|
+
# "PD", # pandas-vet
|
|
81
|
+
# "PGH", # pygrep-hooks
|
|
82
|
+
# "PIE", # flake8-pie
|
|
83
|
+
# "PT", # flake8-pytest-style
|
|
84
|
+
# "PTH", # flake8-use-pathlib
|
|
85
|
+
# "Q", # flake8-quotes
|
|
86
|
+
# "RET", # flake8-return
|
|
87
|
+
# "S", # flake8-bandit
|
|
88
|
+
# "SIM", # flake8-simplify
|
|
89
|
+
# "SLF", # flake8-self
|
|
90
|
+
# "T20", # flake8-print
|
|
91
|
+
# "TRY", # tryceratops
|
|
92
|
+
]
|
|
93
|
+
ignore = [
|
|
94
|
+
"PLR1714",
|
|
95
|
+
"PLW0603",
|
|
96
|
+
"PLW2901",
|
|
97
|
+
"RUF005",
|
|
98
|
+
"RUF012",
|
|
99
|
+
"UP031",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
[tool.ruff.lint.mccabe]
|
|
103
|
+
max-complexity = 101
|
|
104
|
+
|
|
105
|
+
[tool.ruff.lint.pylint]
|
|
106
|
+
allow-magic-value-types = ["float", "int", "str"]
|
|
107
|
+
max-args = 11
|
|
108
|
+
max-branches = 108
|
|
109
|
+
max-returns = 10
|
|
110
|
+
max-statements = 286
|
|
111
|
+
|
|
112
|
+
[tool.setuptools]
|
|
113
|
+
package-dir = {"" = "pylib"}
|
|
114
|
+
packages = ["gyp", "gyp.generator"]
|