forked from Yelp/detect-secrets
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
74 lines (65 loc) · 2.1 KB
/
setup.py
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
68
69
70
71
72
73
74
from pathlib import Path
from setuptools import find_packages
from setuptools import setup
def get_version():
"""Parse package __version__.py to get version."""
versionpy = (Path('detect_secrets') / '__version__.py').read_text()
return versionpy.split("'")[1]
VERSION = get_version()
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='bc-detect-secrets',
python_requires='>=3.8',
packages=find_packages(exclude=(['test*', 'tmp*'])),
version=VERSION,
description='Tool for detecting secrets in the codebase',
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='bridgecrew',
author_email='[email protected]',
url='https://github.com/bridgecrewio/detect-secrets',
keywords=['secret-management', 'pre-commit', 'security', 'entropy-checks'],
install_requires=[
'pyyaml',
'requests',
'unidiff',
],
include_package_data=True,
package_data={
'detect_secrets': [
'py.typed',
],
},
extras_require={
'word_list': [
'pyahocorasick',
],
'gibberish': [
'gibberish-detector',
],
},
entry_points={
'console_scripts': [
'detect-secrets = detect_secrets.main:main',
'detect-secrets-hook = detect_secrets.pre_commit_hook:main',
],
},
classifiers=[
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'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',
'Typing :: Typed',
],
)