From e6b5c5b273dee3a196b34f91126e821d98e4ce61 Mon Sep 17 00:00:00 2001 From: Saquib Saifee Date: Fri, 1 Aug 2025 14:17:07 -0700 Subject: [PATCH 1/3] Add pyproject.toml for PEP 517 build This file defines the PEP 517 build system for detect-secrets using setuptools. Adding pyproject.toml allows pip to build detect-secrets via the standardized PEP 517 interface instead of the legacy setup.py build. This avoids the deprecation warning shown during installation with pip 25. Signed-off-by: Saquib Saifee --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..2f2101195 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=40.8.0", "wheel"] +build-backend = "setuptools.build_meta" From 88aa14b2ea90bdb183559581f61cdd7c081732e6 Mon Sep 17 00:00:00 2001 From: Saquib Saifee Date: Fri, 1 Aug 2025 17:54:32 -0400 Subject: [PATCH 2/3] Update setup.py Signed-off-by: Saquib Saifee --- setup.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 20648bedd..a08a4b693 100644 --- a/setup.py +++ b/setup.py @@ -8,13 +8,20 @@ from setuptools import find_packages from setuptools import setup -from detect_secrets import VERSION +import re +from pathlib import Path + +def get_version(): + init_path = Path(__file__).parent / "detect_secrets" / "__init__.py" + content = init_path.read_text() + match = re.search(r"^VERSION\s*=\s*['\"]([^'\"]+)['\"]", content, re.MULTILINE) + return match.group(1) setup( name='detect_secrets', packages=find_packages(exclude=(['test*', 'tmp*'])), - version=VERSION, + version=get_version(), description='Tool for detecting secrets in the codebase', long_description=( 'Check out detect-secrets on `GitHub ' + From 4b715054d86fdb82735246fcedf13757096e72c6 Mon Sep 17 00:00:00 2001 From: Saquib Saifee Date: Fri, 1 Aug 2025 17:55:59 -0400 Subject: [PATCH 3/3] Update __init__.py Signed-off-by: Saquib Saifee --- detect_secrets/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect_secrets/__init__.py b/detect_secrets/__init__.py index d654b7290..f5eee76e3 100644 --- a/detect_secrets/__init__.py +++ b/detect_secrets/__init__.py @@ -1 +1 @@ -VERSION = '0.13.1+ibm.62.dss' +VERSION = '0.13.1+ibm.63.dss'