"""passlib setup script""" #========================================================= #init script env #========================================================= import os root_dir = os.path.abspath(os.path.join(__file__,"..")) os.chdir(root_dir) #========================================================= #imports #========================================================= import re from setuptools import setup, find_packages #========================================================= #version string #========================================================= vh = file(os.path.join(root_dir, "passlib", "__init__.py")) VERSION = re.search(r'^__version__\s*=\s*"(.*?)"\s*$', vh.read(), re.M).group(1) vh.close() #========================================================= #setup #========================================================= DESCRIPTION = "comprehensive password hashing framework supporting over 20 schemes" LONG_DESCRIPTION = """\ PassLib is a password hash library, which provides cross-platform implementations of over 20 password hashing algorithms; as well as a framework for managing and migrating existing password hashes. It's designed to be useful for any task from quickly verifying a hash found in /etc/shadow, to providing full-strength password hashing for multi-user applications. """ KEYWORDS = "password secret hash security crypt md5-crypt sha256-crypt sha512-crypt bcrypt htpasswd htdigest pbkdf2" setup( #package info packages = find_packages(), package_data = { "passlib": ["*.cfg"] }, zip_safe=True, # metadata name = "passlib", version = VERSION, author = "Eli Collins", author_email = "elic@assurancetechnologies.com", license = "BSD", url = "http://code.google.com/p/passlib/", #er, is download url for the sdist, or for the project? ## download_url = "http://code.google.com/p/passlib/downloads/list", description = DESCRIPTION, long_description = LONG_DESCRIPTION, keywords = KEYWORDS, classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries", ], test_suite = 'nose.collector', ) #========================================================= #EOF #=========================================================