diff --git a/__tests__/fixtures/pyproject-toml-project/pyproject.toml b/__tests__/fixtures/pyproject-toml-project/pyproject.toml index 55ad9ab..5bacb75 100644 --- a/__tests__/fixtures/pyproject-toml-project/pyproject.toml +++ b/__tests__/fixtures/pyproject-toml-project/pyproject.toml @@ -6,5 +6,14 @@ readme = "README.md" requires-python = ">=3.11" dependencies = [] +[dependency-groups] +dev = [ + "reuse==5.0.2", + {include-group = "lint"}, +] +lint = [ + "flake8==4.0.1", +] + [tool.uv] required-version = "==0.5.14" diff --git a/dist/save-cache/index.js b/dist/save-cache/index.js index 5f7403d..098a2d6 100644 Binary files a/dist/save-cache/index.js and b/dist/save-cache/index.js differ diff --git a/dist/setup/index.js b/dist/setup/index.js index f22218c..64098a3 100644 Binary files a/dist/setup/index.js and b/dist/setup/index.js differ diff --git a/dist/update-known-checksums/index.js b/dist/update-known-checksums/index.js index 743ec4a..92d2f32 100644 Binary files a/dist/update-known-checksums/index.js and b/dist/update-known-checksums/index.js differ diff --git a/package-lock.json b/package-lock.json index e080175..3fe0623 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@actions/glob": "^0.5.0", "@actions/io": "^1.1.3", "@actions/tool-cache": "^2.0.1", - "@iarna/toml": "^2.2.5", - "@octokit/rest": "^21.1.0" + "@octokit/rest": "^21.1.0", + "smol-toml": "^1.3.1" }, "devDependencies": { "@biomejs/biome": "1.9.4", @@ -1105,11 +1105,6 @@ "node": ">=14" } }, - "node_modules/@iarna/toml": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", - "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -4577,6 +4572,17 @@ "node": ">=8" } }, + "node_modules/smol-toml": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz", + "integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -5940,11 +5946,6 @@ "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==" }, - "@iarna/toml": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", - "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" - }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -8607,6 +8608,11 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, + "smol-toml": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz", + "integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==" + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", diff --git a/package.json b/package.json index b146b49..09f6bd2 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@actions/io": "^1.1.3", "@actions/tool-cache": "^2.0.1", "@octokit/rest": "^21.1.0", - "@iarna/toml": "^2.2.5" + "smol-toml": "^1.3.1" }, "devDependencies": { "@biomejs/biome": "1.9.4", diff --git a/src/utils/pyproject.ts b/src/utils/pyproject.ts index c727855..dca27e4 100644 --- a/src/utils/pyproject.ts +++ b/src/utils/pyproject.ts @@ -1,6 +1,6 @@ import fs from "node:fs"; import * as core from "@actions/core"; -import * as toml from "@iarna/toml"; +import * as toml from "smol-toml"; export function getUvVersionFromConfigFile( filePath: string, diff --git a/tsconfig.json b/tsconfig.json index 4a6c661..d8d5291 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, + "target": "ES2022" /* 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'. */, "outDir": "./lib" /* Redirect output structure to the directory. */, "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,