From 438dce9faac60d8badb6b2eb8ce7d498262a33e5 Mon Sep 17 00:00:00 2001 From: Alexandre Possebom Date: Mon, 22 Sep 2014 17:16:38 -0300 Subject: [PATCH] Added PyPi package --- setup.py | 18 ++++++++++++++++++ twik => twik/__init__.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 setup.py rename twik => twik/__init__.py (99%) mode change 100755 => 100644 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d00233b --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +from setuptools import setup, find_packages +import sys, os + +version = '0.1' + +setup(name='twik', + version=version, + description="Twik is an application that makes it easier to generate secure and different passwords for each website.", + keywords='twik password hash', + author='Alexandre Possebom', + author_email='alexandrepossebom@gmail.com', + url='https://github.com/coxande/Twik', + license='GPLv3', + packages=['twik'], + entry_points = { + 'console_scripts': ['twik = twik:main'], + }, + ) diff --git a/twik b/twik/__init__.py old mode 100755 new mode 100644 similarity index 99% rename from twik rename to twik/__init__.py index b20aae7..dd784cd --- a/twik +++ b/twik/__init__.py @@ -126,7 +126,7 @@ def getpassword(tag, private_key, master_key, length, password_type): password = generatehash(hash, master_key, length, password_type) print "Your password is %s" % password -if __name__ == "__main__": +def main(): global PasswordType PasswordType = enum(ALPHANUMERIC_AND_SPECIAL_CHARS=1, ALPHANUMERIC=2, NUMERIC=3)