From 4b6ba52fdee20c4469f99b6b8769e454279feea5 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 25 Jan 2024 11:54:03 +0800 Subject: [PATCH] chore: update project and lock files (#47) --- .github/workflows/ci.yml | 3 +- package.json | 2 +- pdm.lock | 94 ++++++++++++++++++---------------------- pyproject.toml | 16 ++----- test.py | 5 +-- 5 files changed, 49 insertions(+), 71 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0cee30..f726d69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ on: push: + branches: [main] pull_request: name: Test Action @@ -9,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: ["windows-latest", "ubuntu-latest", "macos-latest"] name: Test the action steps: diff --git a/package.json b/package.json index 302f428..38a3e87 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "esbuild src/setup-pdm.ts --bundle --platform=node --target=node20 --outfile=dist/setup-pdm.js && esbuild src/cache-save.ts --bundle --platform=node --target=node20 --outfile=dist/cache-save.js" }, - "packageManager": "pnpm@7.32.2", + "packageManager": "pnpm@8.14.3", "repository": { "type": "git", "url": "git+https://github.com/pdm-project/setup-pdm.git" diff --git a/pdm.lock b/pdm.lock index 05e8c68..0520ca6 100644 --- a/pdm.lock +++ b/pdm.lock @@ -1,79 +1,67 @@ # This file is @generated by PDM. # It is not intended for manual editing. +[metadata] +groups = ["default", "dev"] +strategy = ["cross_platform", "inherit_metadata"] +lock_version = "4.4.1" +content_hash = "sha256:eb061d39de14e94263f38ecb20461dfb8a9fc7d73a3f9ede85ded6085701598a" + [[package]] name = "certifi" -version = "2022.6.15" +version = "2023.11.17" requires_python = ">=3.6" summary = "Python package for providing Mozilla's CA Bundle." - -[[package]] -name = "chardet" -version = "5.0.0" -requires_python = ">=3.6" -summary = "Universal encoding detector for Python 3" - -[[package]] -name = "idna" -version = "3.3" -requires_python = ">=3.5" -summary = "Internationalized Domain Names in Applications (IDNA)" +groups = ["dev"] +marker = "python_version == \"3.9\"" +files = [ + {file = "certifi-2023.11.17-py3-none-any.whl", hash = "sha256:e036ab49d5b79556f99cfc2d9320b34cfbe5be05c5871b51de9329f0603b0474"}, + {file = "certifi-2023.11.17.tar.gz", hash = "sha256:9b469f3a900bf28dc19b8cfbf8019bf47f7fdd1a65a1d4ffb98fc14166beb4d1"}, +] [[package]] name = "pytz" -version = "2022.1" +version = "2023.3.post1" summary = "World timezone definitions, modern and historical" +groups = ["dev"] +marker = "python_version == \"3.10\"" +files = [ + {file = "pytz-2023.3.post1-py2.py3-none-any.whl", hash = "sha256:ce42d816b81b68506614c11e8937d3aa9e41007ceb50bfdcb0749b921bf646c7"}, + {file = "pytz-2023.3.post1.tar.gz", hash = "sha256:7b4fddbeb94a1eba4b557da24f19fdf9db575192544270a9101d8509f9f43d7b"}, +] [[package]] name = "setuptools" -version = "68.0.0" -requires_python = ">=3.7" +version = "69.0.3" +requires_python = ">=3.8" summary = "Easily download, build, install, upgrade, and uninstall Python packages" +groups = ["dev"] +marker = "python_version == \"3.11\"" +files = [ + {file = "setuptools-69.0.3-py3-none-any.whl", hash = "sha256:385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05"}, + {file = "setuptools-69.0.3.tar.gz", hash = "sha256:be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78"}, +] [[package]] name = "six" version = "1.16.0" requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" summary = "Python 2 and 3 compatibility utilities" +groups = ["dev"] +marker = "python_version == \"3.12\"" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] [[package]] name = "urllib3" -version = "1.26.10" -requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4" +version = "2.1.0" +requires_python = ">=3.8" summary = "HTTP library with thread-safe connection pooling, file post, and more." - -[metadata] -lock_version = "4.2" -cross_platform = true -groups = ["default", "dev"] -content_hash = "sha256:1c3bf31e6d80f6c468b7d8948c19a5eda9014342869911f0895691955e061357" - -[metadata.files] -"certifi 2022.6.15" = [ - {url = "https://files.pythonhosted.org/packages/cc/85/319a8a684e8ac6d87a1193090e06b6bbb302717496380e225ee10487c888/certifi-2022.6.15.tar.gz", hash = "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d"}, - {url = "https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl", hash = "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412"}, -] -"chardet 5.0.0" = [ - {url = "https://files.pythonhosted.org/packages/31/a2/12c090713b3d0e141f367236d3a8bdc3e5fca0d83ff3647af4892c16c205/chardet-5.0.0.tar.gz", hash = "sha256:0368df2bfd78b5fc20572bb4e9bb7fb53e2c094f60ae9993339e8671d0afb8aa"}, - {url = "https://files.pythonhosted.org/packages/4c/d1/1b96dd69fa42f20b70701b5cd42a75dd5f0c7a24dc0abfef35cc146210dc/chardet-5.0.0-py3-none-any.whl", hash = "sha256:d3e64f022d254183001eccc5db4040520c0f23b1a3f33d6413e099eb7f126557"}, -] -"idna 3.3" = [ - {url = "https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"}, - {url = "https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"}, -] -"pytz 2022.1" = [ - {url = "https://files.pythonhosted.org/packages/2f/5f/a0f653311adff905bbcaa6d3dfaf97edcf4d26138393c6ccd37a484851fb/pytz-2022.1.tar.gz", hash = "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7"}, - {url = "https://files.pythonhosted.org/packages/60/2e/dec1cc18c51b8df33c7c4d0a321b084cf38e1733b98f9d15018880fb4970/pytz-2022.1-py2.py3-none-any.whl", hash = "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c"}, -] -"setuptools 68.0.0" = [ - {url = "https://files.pythonhosted.org/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl", hash = "sha256:11e52c67415a381d10d6b462ced9cfb97066179f0e871399e006c4ab101fc85f"}, - {url = "https://files.pythonhosted.org/packages/dc/98/5f896af066c128669229ff1aa81553ac14cfb3e5e74b6b44594132b8540e/setuptools-68.0.0.tar.gz", hash = "sha256:baf1fdb41c6da4cd2eae722e135500da913332ab3f2f5c7d33af9b492acb5235"}, -] -"six 1.16.0" = [ - {url = "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, - {url = "https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, -] -"urllib3 1.26.10" = [ - {url = "https://files.pythonhosted.org/packages/25/36/f056e5f1389004cf886bb7a8514077f24224238a7534497c014a6b9ac770/urllib3-1.26.10.tar.gz", hash = "sha256:879ba4d1e89654d9769ce13121e0f94310ea32e8d2f8cf587b77c08bbcdb30d6"}, - {url = "https://files.pythonhosted.org/packages/68/47/93d3d28e97c7577f563903907912f4b3804054e4877a5ba6651f7182c53b/urllib3-1.26.10-py2.py3-none-any.whl", hash = "sha256:8298d6d56d39be0e3bc13c1c97d133f9b45d797169a0e11cdd0e0489d786f7ec"}, +groups = ["dev"] +marker = "python_version == \"3.8\"" +files = [ + {file = "urllib3-2.1.0-py3-none-any.whl", hash = "sha256:55901e917a5896a349ff771be919f8bd99aff50b79fe58fec595eb37bbc56bb3"}, + {file = "urllib3-2.1.0.tar.gz", hash = "sha256:df7aa8afb0148fa78488e7899b2c59b5f4ffcfa82e6c54ccb9dd37c1d7b52d54"}, ] diff --git a/pyproject.toml b/pyproject.toml index dd95639..56476e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,20 @@ [project] +name = "setup-pdm" +version = "0.0.0" authors = [ {name = "Frost Ming", email = "mianghong@gmail.com"}, ] -include = "test.py" -requires-python = ">=3.7" -dynamic = ["classifiers"] +requires-python = ">=3.8" license = {text = "MIT"} -[project.urls] -homepage = "" - -[tool] [tool.pdm] +distribution = false [tool.pdm.dev-dependencies] dev = [ - "chardet; python_version=='3.7'", "urllib3; python_version=='3.8'", "certifi; python_version=='3.9'", "pytz; python_version=='3.10'", "setuptools; python_version=='3.11'", "six; python_version=='3.12'", ] - -[build-system] -requires = ["pdm-pep517"] -build-backend = "pdm.pep517.api" diff --git a/test.py b/test.py index 48d373b..2c459d4 100644 --- a/test.py +++ b/test.py @@ -1,12 +1,9 @@ +import importlib import os import sys import unittest -import importlib - PACKAGE_MAP = { - "3.6": "idna", - "3.7": "chardet", "3.8": "urllib3", "3.9": "certifi", "3.10": "pytz",