Skip to content

Commit

Permalink
prep for new release (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse authored Oct 1, 2020
1 parent f10688f commit 3f7d42d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Output/
*.pyc
.DS_Store

build/
/build/
# Setuptools distribution folder.
/dist/

Expand Down
29 changes: 22 additions & 7 deletions setup.py
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'],
Expand Down
3 changes: 1 addition & 2 deletions tell_me_your_secrets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python
version = '1.7'
__version__ = '2.0.0'

0 comments on commit 3f7d42d

Please sign in to comment.