Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion detect_secrets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.13.1+ibm.62.dss'
VERSION = '0.13.1+ibm.63.dss'
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' +
Expand Down