chore: build package

This commit is contained in:
Simon BRICHE 2025-11-18 11:25:41 +01:00
parent c7d4148a08
commit 24edd63336
3 changed files with 90018 additions and 1 deletions

89950
dist/post-python/index.js vendored Normal file

File diff suppressed because one or more lines are too long

67
dist/setup/index.js vendored
View File

@ -96694,6 +96694,68 @@ class PoetryCache extends cache_distributor_1.default {
exports["default"] = PoetryCache;
/***/ }),
/***/ 8106:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.cleanPipPackages = cleanPipPackages;
const core = __importStar(__nccwpck_require__(7484));
const exec_1 = __nccwpck_require__(5236);
// Shared helper to uninstall all pip packages in the current environment.
async function cleanPipPackages() {
core.info('Cleaning up pip packages');
try {
// uninstall all currently installed packages (if any)
// Use a shell so we can pipe the output of pip freeze into xargs
await (0, exec_1.exec)('bash', [
'-c',
'test $(python3 -m pip freeze | wc -l) -gt 0 && python3 -m pip freeze | xargs python3 -m pip uninstall -y'
]);
core.info('Successfully cleaned up pip packages');
}
catch (error) {
core.setFailed('Failed to clean up pip packages.');
}
}
/***/ }),
/***/ 1663:
@ -97906,6 +97968,7 @@ const fs_1 = __importDefault(__nccwpck_require__(9896));
const cache_factory_1 = __nccwpck_require__(665);
const utils_1 = __nccwpck_require__(1798);
const exec_1 = __nccwpck_require__(5236);
const clean_pip_1 = __nccwpck_require__(8106);
function isPyPyVersion(versionSpec) {
return versionSpec.startsWith('pypy');
}
@ -98007,6 +98070,10 @@ async function run() {
if (cache && (0, utils_1.isCacheFeatureAvailable)()) {
await cacheDependencies(cache, pythonVersion);
}
const precleanPip = core.getBooleanInput('preclean');
if (precleanPip) {
await (0, clean_pip_1.cleanPipPackages)();
}
const pipInstall = core.getInput('pip-install');
if (pipInstall) {
await installPipPackages(pipInstall);

View File

@ -163,7 +163,7 @@ async function run() {
const precleanPip = core.getBooleanInput('preclean');
if (precleanPip) {
await cleanPipPackages();
}
}
const pipInstall = core.getInput('pip-install');
if (pipInstall) {
await installPipPackages(pipInstall);