-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Output/ | |
*.pyc | ||
.DS_Store | ||
|
||
build/ | ||
/build/ | ||
# Setuptools distribution folder. | ||
/dist/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
import os | ||
from typing import List | ||
|
||
import setuptools | ||
|
||
with open('Readme.md') as fh: | ||
long_description = fh.read() | ||
|
||
with open('requirements.txt') as f: | ||
required = f.read().splitlines() | ||
def get_long_description() -> str: | ||
with open('README.md') as fh: | ||
return fh.read() | ||
|
||
|
||
def get_required() -> List[str]: | ||
with open('requirements.txt') as fh: | ||
return fh.read().splitlines() | ||
|
||
|
||
def get_version(): | ||
with open(os.path.join('tell_me_your_secrets', '__init__.py')) as fh: | ||
for line in fh: | ||
if line.startswith('__version__ = '): | ||
return line.split()[-1].strip().strip("'") | ||
|
||
|
||
setuptools.setup( | ||
name='tell_me_your_secrets', | ||
packages=setuptools.find_packages(), | ||
version='1.78', | ||
version=get_version(), | ||
license='MIT', | ||
description='A simple module which finds files with different secrets keys present inside a directory.' | ||
'Secrets derived from 120 different signatures.', | ||
author='Valay Dave', | ||
include_package_data=True, | ||
author_email='[email protected]', | ||
url='https://github.com/valayDave/tell-me-your-secrets', | ||
long_description=long_description, | ||
long_description=get_long_description(), | ||
long_description_content_type='text/markdown', | ||
keywords=['Security', 'SSH', 'Secret Keys', 'SysAdmin'], | ||
install_requires=required, | ||
install_requires=get_required(), | ||
python_requires='>=3.6', | ||
entry_points={ | ||
'console_scripts': ['tell-me-your-secrets=tell_me_your_secrets.__main__:run_service'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
#!/usr/bin/env python | ||
version = '1.7' | ||
__version__ = '2.0.0' |