From 6b5400ac7cd051c26cfb1b9f137c7bb2b94491b5 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Thu, 18 Jan 2024 23:42:55 +0800 Subject: [PATCH] :hammer: chore(pyproject.toml): Update pdm dev dependencies - Removed "pre-commit" and added "pytest" as a dev dependency in the pdm configuration file. --- pdm.lock | 18 +++++++++--------- pyproject.toml | 12 +++++------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/pdm.lock b/pdm.lock index 90c7825..6470f44 100644 --- a/pdm.lock +++ b/pdm.lock @@ -2,10 +2,10 @@ # It is not intended for manual editing. [metadata] -groups = ["default", "dev", "testing"] +groups = ["default", "dev"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:d68a922a7ecbfed8395edac0015ad8be02e99ddde17f07879911d0d7b6b3294d" +content_hash = "sha256:d822b9cb9c00f101a91ca70accb8ff26dae4643880ecd730a5a16c443f0b470d" [[package]] name = "cfgv" @@ -34,7 +34,7 @@ name = "colorama" version = "0.4.6" requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" summary = "Cross-platform colored terminal text." -groups = ["default", "testing"] +groups = ["default", "dev"] marker = "sys_platform == \"win32\"" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, @@ -56,7 +56,7 @@ name = "exceptiongroup" version = "1.2.0" requires_python = ">=3.7" summary = "Backport of PEP 654 (exception groups)" -groups = ["testing"] +groups = ["dev"] marker = "python_version < \"3.11\"" files = [ {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, @@ -90,7 +90,7 @@ name = "iniconfig" version = "2.0.0" requires_python = ">=3.7" summary = "brain-dead simple config-ini parsing" -groups = ["testing"] +groups = ["dev"] files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, @@ -130,7 +130,7 @@ name = "packaging" version = "23.2" requires_python = ">=3.7" summary = "Core utilities for Python packages" -groups = ["testing"] +groups = ["dev"] files = [ {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, @@ -162,7 +162,7 @@ name = "pluggy" version = "1.3.0" requires_python = ">=3.8" summary = "plugin and hook calling mechanisms for python" -groups = ["testing"] +groups = ["dev"] files = [ {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, @@ -214,7 +214,7 @@ name = "pytest" version = "7.4.4" requires_python = ">=3.7" summary = "pytest: simple powerful testing with Python" -groups = ["testing"] +groups = ["dev"] dependencies = [ "colorama; sys_platform == \"win32\"", "exceptiongroup>=1.0.0rc8; python_version < \"3.11\"", @@ -298,7 +298,7 @@ name = "tomli" version = "2.0.1" requires_python = ">=3.7" summary = "A lil' TOML parser" -groups = ["testing"] +groups = ["dev"] marker = "python_version < \"3.11\"" files = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, diff --git a/pyproject.toml b/pyproject.toml index 611f378..d43ef2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,20 +18,18 @@ requires-python = ">=3.8,<3.12" readme = "README.md" license = { text = "MIT" } +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + [tool.pdm] package-type = "library" -[tool.pdm.build] -includes = ["subtitle_utils"] - [tool.pdm.dev-dependencies] dev = [ "pre-commit>=3.5.0", + "pytest>=7.4.4", ] -[build-system] -requires = ["pdm-backend"] -build-backend = "pdm.backend" - [project.urls] repository = "https://github.com/sudoskys/subtitle_utils"