From 14337a9328dcbe664fcc9b2620ec0371c82d9364 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 8 May 2012 10:33:07 -0400 Subject: [PATCH] setup.py --- setup.py | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d0dbbce --- /dev/null +++ b/setup.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +""" +env.py +~~~~~~ + +Mapping environment variables can be a bit of a pain. + +Now you can replace this boilerplate:: + + ZENDESK_URL = os.environ['ZENDESK_URL'] + ZENDESK_USER = os.environ['ZENDESK_USER'] + ZENDESK_PASS = os.environ['ZENDESK_PASS'] + ZENDESK_VIEW = os.environ['ZENDESK_VIEW'] + +With a simple call:: + + >>> import env + +:: + + >>> zendesk = env.prefix('zendesk_') + >>> zendesk + {'user': ..., 'pass': ..., 'url': ..., 'view': ...} + +Or have a bit more control:: + + >>> env.map(user='zendesk_user') + {'user': ...} + + +""" + +from setuptools import setup + +setup( + name='env', + version='0.1.0', + url='https://github.com/kennethreitz/env', + license='BSD', + author='Kenneth Reitz', + author_email='me@kennethreitz.com', + description='Environment Variables for Humans', + long_description=__doc__, + py_modules=['env'], + zip_safe=False, + include_package_data=True, + platforms='any', + classifiers=[ + 'Environment :: Web Environment', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + 'Topic :: Software Development :: Libraries :: Python Modules' + ] +)