Compare commits

..

1 Commits

Author SHA1 Message Date
8ea13f24b0 Bump typescript from 5.4.2 to 5.8.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.4.2...v5.8.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 21:20:29 +00:00
7 changed files with 1138 additions and 1064 deletions

View File

@ -45,9 +45,6 @@ jobs:
exclude: exclude:
- os: windows-latest - os: windows-latest
python-version: pypy-3.11-v7.x python-version: pypy-3.11-v7.x
- os: macos-latest
python-version: pypy-3.9-v7.x
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python
@ -186,8 +183,6 @@ jobs:
exclude: exclude:
- os: windows-latest - os: windows-latest
python-version: pypy-3.11-v7.x python-version: pypy-3.11-v7.x
- os: macos-latest
python-version: pypy-3.9-v7.x
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python

View File

@ -11,13 +11,6 @@ This action provides the following functionality for GitHub Actions users:
- Optionally caching dependencies for pip, pipenv and poetry - Optionally caching dependencies for pip, pipenv and poetry
- Registering problem matchers for error output - Registering problem matchers for error output
## Breaking changes in V6
- Upgraded action from node20 to node24
> Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. See [Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1)
For more details, see the full release notes on the [releases page](https://github.com/actions/setup-python/releases/tag/v6.0.0)
## Basic usage ## Basic usage
See [action.yml](action.yml) See [action.yml](action.yml)

View File

@ -8,5 +8,5 @@ packaging==20.7
pdf2image==1.12.1 pdf2image==1.12.1
Pygments==2.6.1 Pygments==2.6.1
requests==2.32.2 requests==2.32.2
urllib3==2.5.0 urllib3==1.26.19
xlrd==1.2.0 xlrd==1.2.0

View File

@ -42,6 +42,6 @@ pywin32-ctypes==0.2.0
requests==2.32.2 requests==2.32.2
urllib3==2.5.0 urllib3==1.26.19
xlrd==1.2.0 xlrd==1.2.0

View File

@ -87714,23 +87714,22 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || (function () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) { if (mod && mod.__esModule) return mod;
ownKeys = Object.getOwnPropertyNames || function (o) { var result = {};
var ar = []; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; __setModuleDefault(result, mod);
return ar; return result;
}; };
return ownKeys(o); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
}; function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return function (mod) { return new (P || (P = Promise))(function (resolve, reject) {
if (mod && mod.__esModule) return mod; function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
var result = {}; function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
__setModuleDefault(result, mod); step((generator = generator.apply(thisArg, _arguments || [])).next());
return result; });
}; };
})();
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.State = void 0; exports.State = void 0;
const cache = __importStar(__nccwpck_require__(5116)); const cache = __importStar(__nccwpck_require__(5116));
@ -87748,32 +87747,36 @@ class CacheDistributor {
this.cacheDependencyPath = cacheDependencyPath; this.cacheDependencyPath = cacheDependencyPath;
this.CACHE_KEY_PREFIX = 'setup-python'; this.CACHE_KEY_PREFIX = 'setup-python';
} }
async handleLoadedCache() { } handleLoadedCache() {
async restoreCache() { return __awaiter(this, void 0, void 0, function* () { });
const { primaryKey, restoreKey } = await this.computeKeys(); }
if (primaryKey.endsWith('-')) { restoreCache() {
const file = this.packageManager === 'pip' return __awaiter(this, void 0, void 0, function* () {
? `${this.cacheDependencyPath const { primaryKey, restoreKey } = yield this.computeKeys();
.split('\n') if (primaryKey.endsWith('-')) {
.join(',')} or ${constants_1.CACHE_DEPENDENCY_BACKUP_PATH}` const file = this.packageManager === 'pip'
: this.cacheDependencyPath.split('\n').join(','); ? `${this.cacheDependencyPath
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`); .split('\n')
} .join(',')} or ${constants_1.CACHE_DEPENDENCY_BACKUP_PATH}`
const cachePath = await this.getCacheGlobalDirectories(); : this.cacheDependencyPath.split('\n').join(',');
core.saveState(State.CACHE_PATHS, cachePath); throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`);
let matchedKey; }
try { const cachePath = yield this.getCacheGlobalDirectories();
matchedKey = await cache.restoreCache(cachePath, primaryKey, restoreKey); core.saveState(State.CACHE_PATHS, cachePath);
} let matchedKey;
catch (err) { try {
const message = err.message; matchedKey = yield cache.restoreCache(cachePath, primaryKey, restoreKey);
core.info(`[warning]${message}`); }
core.setOutput('cache-hit', false); catch (err) {
return; const message = err.message;
} core.info(`[warning]${message}`);
core.saveState(State.STATE_CACHE_PRIMARY_KEY, primaryKey); core.setOutput('cache-hit', false);
await this.handleLoadedCache(); return;
this.handleMatchResult(matchedKey, primaryKey); }
core.saveState(State.STATE_CACHE_PRIMARY_KEY, primaryKey);
yield this.handleLoadedCache();
this.handleMatchResult(matchedKey, primaryKey);
});
} }
handleMatchResult(matchedKey, primaryKey) { handleMatchResult(matchedKey, primaryKey) {
if (matchedKey) { if (matchedKey) {
@ -87824,28 +87827,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || (function () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) { if (mod && mod.__esModule) return mod;
ownKeys = Object.getOwnPropertyNames || function (o) { var result = {};
var ar = []; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; __setModuleDefault(result, mod);
return ar; return result;
}; };
return ownKeys(o); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
}; function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return function (mod) { return new (P || (P = Promise))(function (resolve, reject) {
if (mod && mod.__esModule) return mod; function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
var result = {}; function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
__setModuleDefault(result, mod); step((generator = generator.apply(thisArg, _arguments || [])).next());
return result; });
}; };
})();
var __importDefault = (this && this.__importDefault) || function (mod) { var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = run; exports.run = void 0;
const core = __importStar(__nccwpck_require__(7484)); const core = __importStar(__nccwpck_require__(7484));
const cache = __importStar(__nccwpck_require__(5116)); const cache = __importStar(__nccwpck_require__(5116));
const fs_1 = __importDefault(__nccwpck_require__(9896)); const fs_1 = __importDefault(__nccwpck_require__(9896));
@ -87853,57 +87855,62 @@ const cache_distributor_1 = __nccwpck_require__(2326);
// Added early exit to resolve issue with slow post action step: // Added early exit to resolve issue with slow post action step:
// - https://github.com/actions/setup-node/issues/878 // - https://github.com/actions/setup-node/issues/878
// https://github.com/actions/cache/pull/1217 // https://github.com/actions/cache/pull/1217
async function run(earlyExit) { function run(earlyExit) {
try { return __awaiter(this, void 0, void 0, function* () {
const cache = core.getInput('cache'); try {
if (cache) { const cache = core.getInput('cache');
await saveCache(cache); if (cache) {
if (earlyExit) { yield saveCache(cache);
process.exit(0); if (earlyExit) {
process.exit(0);
}
} }
} }
} catch (error) {
catch (error) { const err = error;
const err = error; core.setFailed(err.message);
core.setFailed(err.message); }
} });
} }
async function saveCache(packageManager) { exports.run = run;
const cachePathState = core.getState(cache_distributor_1.State.CACHE_PATHS); function saveCache(packageManager) {
if (!cachePathState) { return __awaiter(this, void 0, void 0, function* () {
core.warning('Cache paths are empty. Please check the previous logs and make sure that the python version is specified'); const cachePathState = core.getState(cache_distributor_1.State.CACHE_PATHS);
return; if (!cachePathState) {
} core.warning('Cache paths are empty. Please check the previous logs and make sure that the python version is specified');
const cachePaths = JSON.parse(cachePathState); return;
core.debug(`paths for caching are ${cachePaths.join(', ')}`); }
if (!isCacheDirectoryExists(cachePaths)) { const cachePaths = JSON.parse(cachePathState);
core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`); core.debug(`paths for caching are ${cachePaths.join(', ')}`);
return; if (!isCacheDirectoryExists(cachePaths)) {
} core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY); return;
const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY); }
if (!primaryKey) { const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY);
core.warning('Error retrieving key from state.'); const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY);
return; if (!primaryKey) {
} core.warning('Error retrieving key from state.');
else if (matchedKey === primaryKey) { return;
// no change in target directories }
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`); else if (matchedKey === primaryKey) {
return; // no change in target directories
} core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
let cacheId = 0; return;
try { }
cacheId = await cache.saveCache(cachePaths, primaryKey); let cacheId = 0;
} try {
catch (err) { cacheId = yield cache.saveCache(cachePaths, primaryKey);
const message = err.message; }
core.info(`[warning]${message}`); catch (err) {
return; const message = err.message;
} core.info(`[warning]${message}`);
if (cacheId == -1) { return;
return; }
} if (cacheId == -1) {
core.info(`Cache saved with the key: ${primaryKey}`); return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
});
} }
function isCacheDirectoryExists(cacheDirectory) { function isCacheDirectoryExists(cacheDirectory) {
const result = cacheDirectory.reduce((previousValue, currentValue) => { const result = cacheDirectory.reduce((previousValue, currentValue) => {

1959
dist/setup/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
"compilerOptions": { "compilerOptions": {
/* Basic Options */ /* Basic Options */
// "incremental": true, /* Enable incremental compilation */ // "incremental": true, /* Enable incremental compilation */
"target": "es2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */ // "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */ // "checkJs": true, /* Report errors in .js files. */