Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (63 loc) · 2.2 KB
/
Copy pathsetup.py
File metadata and controls
67 lines (63 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import sys
if sys.version_info < (3, 10):
sys.exit(
'detect-secrets requires Python 3.10 or later. '
'Python 3.9 cannot install CVE-clean versions of requests (>=2.33) '
'or urllib3 (>=2.7.0). Use pyenv to manage multiple Python versions: '
'https://github.com/pyenv/pyenv',
)
from setuptools import find_packages
from setuptools import setup
from detect_secrets import VERSION
setup(
name='detect_secrets',
packages=find_packages(exclude=(['test*', 'tmp*'])),
version=VERSION,
description='Tool for detecting secrets in the codebase',
long_description=(
'Check out detect-secrets on `GitHub ' +
'<https://github.com/IBM/detect-secrets>`_!'
),
url='hhttps://github.com/IBM/detect-secrets',
keywords=['secret-management', 'pre-commit', 'security', 'entropy-checks'],
python_requires='>=3.10',
install_requires=[
# Minimum versions set to the secure versions validated during CVE remediation.
# Upper bounds set to next major to avoid silent breakage on major upgrades.
# Exact pins live in requirements-dev.txt for reproducible dev/CI environments.
'pyyaml>=6.0.3,<7',
'requests>=2.34.2,<3',
'urllib3>=2.7.0,<3',
'boxsdk[jwt]>=3.14.0,<4.0.0',
'packaging>=20.0',
'tabulate>=0.10.0,<0.11',
'binaryornot>=0.6.0,<0.7',
'chardet>=6.0.0,<8',
],
extras_require={
'word_list': [
'pyahocorasick',
],
'db2': [
'ibm_db',
],
},
entry_points={
'console_scripts': [
'detect-secrets = detect_secrets.main:main',
'detect-secrets-hook = detect_secrets.pre_commit_hook:main',
],
},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Utilities',
'Environment :: Console',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
],
)