forked from Yelp/detect-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (59 loc) · 1.88 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
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='detect_secrets',
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='Copyright Yelp, Inc. 2020',
author='Aaron Loo',
author_email='[email protected]',
url='https://github.com/Yelp/detect-secrets',
download_url='https://github.com/Yelp/detect-secrets/archive/{}.tar.gz'.format(VERSION),
keywords=['secret-management', 'pre-commit', 'security', 'entropy-checks'],
install_requires=[
'pyyaml',
'requests',
],
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',
'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',
],
)