pax_global_header00006660000000000000000000000064134072715040014515gustar00rootroot0000000000000052 comment=c83dc312fccaf02ed5abebafa1fab87c5c67444b python-envs-1.2.6/000077500000000000000000000000001340727150400140155ustar00rootroot00000000000000python-envs-1.2.6/.bumpversion.cfg000066400000000000000000000001351340727150400171240ustar00rootroot00000000000000[bumpversion] current_version = 0.3.0 commit = True tag = True [bumpversion:file:setup.py] python-envs-1.2.6/.travis.yml000066400000000000000000000004311340727150400161240ustar00rootroot00000000000000language: python python: - "2.7" - "3.2" - "3.3" - "3.4" - "3.5" - "3.5-dev" # 3.5 development branch - "nightly" # currently points to 3.6-dev # command to install dependencies install: "pip install -r test-requirements.txt" # command to run tests script: nosetests python-envs-1.2.6/HISTORY.md000066400000000000000000000005111340727150400154750ustar00rootroot00000000000000#Changes ## 1.2.4 Added Decimals variable type ## 0.3.0 Removed the need for string defaults, you can now use real objects as the default Refactored most of the code and test (still 100% coverage and no only 47 LOC) ## 0.2.0 Updated test for 100% coverage Converted env from a function to a class ## 0.1.2 Initial release python-envs-1.2.6/LICENSE000066400000000000000000000261351340727150400150310ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright {yyyy} {name of copyright owner} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. python-envs-1.2.6/MANIFEST.in000066400000000000000000000001321340727150400155470ustar00rootroot00000000000000include LICENSE include README.md include requirements_cli.txt recursive-include envs/ * python-envs-1.2.6/README.md000066400000000000000000000104171340727150400152770ustar00rootroot00000000000000# envs Easy access of environment variables from Python with support for booleans, strings, lists, tuples, integers, floats, and dicts. ## Use Case If you need environment variables for your settings but need an easy way of using Python objects instead of just strings. For example, if you need a list of strings. ## Features - CLI to convert settings - CLI to list and check environment variables - Use strings, lists, tuples, integers, floats or dicts. **IMPORTANT:** When setting the variables in your environmenet (ex. in .env file) wrap them in single or double quotes (ex. `"['some','list']"`) [![Build Status](https://travis-ci.org/capless/envs.svg?branch=master)](https://travis-ci.org/capless/envs) ## Quick Start ### Install #### Install without CLI Requirements ```commandline pip install envs ``` #### Install with CLI Requirements ```commandline pip install envs["cli"] ``` ### Run Convert Settings **IMPORTANT:** Don't name this file the same as the original module (you have added the imports back yet). ```commandline envs convert_settings --settings-file your.settings.module ``` ### Copy and Paste the Imports and Logic Code From Original File Envs does not copy and paste your imports from your original code, so you have to do this manually. ### Run List Envs This tells you what envs have default v ```commandline envs list_envs --settings-file your.settings.module ``` ## General API ```python from envs import env env('SOMEVAR','default value for that var',var_type='string',allow_none=True) ``` ### Strings **Environment Variable Example:** SECRET_KEY='adfadfadfafasf' ```python >>>from envs import env >>>env('SECRET_KEY','default secret key here') 'adfadfadfafasf' ``` ### Lists **Environment Variable Example:** SERVER_NAMES="['coastal','inland','western']" ```python >>>from envs import env >>>env('SERVER_NAMES',var_type='list') ['coastal','inland','western'] ``` ### Tuples **Environment Variable Example:** SERVER_NAMES="('coastal','inland','western')" ```python >>>from envs import env >>>env('SERVER_NAMES',var_type='tuple') ('coastal','inland','western') ``` ### Dicts **Environment Variable Example:** DATABASE="{'USER':'name','PASSWORD':'password'}" ```python >>>from envs import env >>>env('DATABASE',var_type='dict') {'USER':'name','PASSWORD':'password'} ``` ### Integers **Environment Variable Example:** NO_SERVERS=12 ```python >>>from envs import env >>>env('NO_SERVERS',var_type='integer') 12 ``` ### Floats **Environment Variable Example:** INDEX_WEIGHT=0.9 ```python >>>from envs import env >>>env('INDEX_WEIGHT',var_type='float') 0.9 ``` ### Booleans **Environment Variable Example:** USE_PROFILE=false ```python >>>from envs import env >>>env('USE_PROFILE',var_type='boolean') False ``` ### Decimals **Environment Variable Example:** HALF_SEVEN=3.5 ```python >>> from envs import env >>> env('HALF_SEVEN', var_type='decimal') Decimal('3.5') ``` ## Command Line Utils **IMPORTANT:** All of the command arguments will fallback to becoming prompts if not set when calling the commands. ### Convert Module (convert_module) Converts an existing settings file so it uses envs. **IMPORTANT:** This command does not copy your **import** stataements to the new module. #### Arguments - **settings-file:** - Dot notated import string for settings file ```commandline envs convert_module --settings-file your.settings ``` ### List Envs (list_envs) Shows a list of env instances set in a settings file. - **settings-file:** - Dot notated import string for settings file - **keep-result:** - Keep the .env_results file generated by this command (**default:** False) ```commandline envs list_envs --settings-file your.settings --keep-result False ``` ### Check Envs (check_envs) Make sure that the defined envs with no default value have a value set in the environment. This command will raise an **EnvsValueException** if there is environment variable that should be set that is not. This command is meant for use with a CI/CD tool as a way to halt the build if there isn't a value for an environment variable. - **settings-file:** - Dot notated import string for settings file ```commandline envs check_envs --settings-file your.settings ``` ### Author **Twitter:**:[@brianjinwright](https://twitter.com/brianjinwright) **Github:** [bjinwright](https://github.com/bjinwright) python-envs-1.2.6/envs/000077500000000000000000000000001340727150400147705ustar00rootroot00000000000000python-envs-1.2.6/envs/__init__.py000066400000000000000000000033661340727150400171110ustar00rootroot00000000000000import ast import json import os import sys from decimal import Decimal from .exceptions import EnvsValueException _envs_list = [] def validate_boolean(value): true_vals = ('True', 'true', 1, '1') false_vals = ('False', 'false', 0, '0') if value in true_vals: value = True elif value in false_vals: value = False else: raise ValueError('This value is not a boolean value.') return value class Env(object): valid_types = { 'string': None, 'boolean': validate_boolean, 'list': list, 'tuple': tuple, 'integer': int, 'float': float, 'dict': dict, 'decimal': Decimal } def __call__(self, key, default=None, var_type='string', allow_none=True): if 'list_envs' in sys.argv or 'check_envs' in sys.argv: with open('.envs_result', 'a') as f: json.dump({'key': key, 'var_type': var_type, 'default': default, 'value': os.getenv(key)}, f) f.write(',') value = os.getenv(key, default) if not value and not allow_none: raise EnvsValueException('{}: Environment Variable Not Set'.format(key)) if not var_type in self.valid_types.keys(): raise ValueError( 'The var_type argument should be one of the following {0}'.format( ','.join(self.valid_types.keys()))) return self.validate_type(value, self.valid_types[var_type], key) def validate_type(self, value, klass, key): if not klass: return value if klass in (validate_boolean, Decimal): return klass(value) if isinstance(value, klass): return value return klass(ast.literal_eval(value)) env = Env() python-envs-1.2.6/envs/cli.py000066400000000000000000000046501340727150400161160ustar00rootroot00000000000000import os import click import jinja2 from terminaltables import AsciiTable from envs.exceptions import EnvsValueException from . import env from .util import convert_module, import_mod, list_envs_module, raw_input SETTINGS_TEMPLATE = jinja2.Environment(loader=jinja2.PackageLoader( 'envs', 'templates')).get_template('settings.jinja2') @click.group() def envs(): pass @envs.command(help='Converts an existing settings file so it uses envs.') @click.option('--settings-file', prompt=True, help='Settings Module? ex. settings or yourapp.settings') def convert_settings(settings_file): attr_list = convert_module(import_mod(settings_file)) template = SETTINGS_TEMPLATE.render(attr_list=attr_list) new_settings_filename = raw_input( 'What should we name this new settings file? (DO NOT NAME IT THE SAME AS THE ORIGINAL BECAUSE THERE ARE NO IMPORTS): ') if not new_settings_filename: raise ValueError('Settings filename is required.') with open(new_settings_filename, 'w+') as f: f.write(template) click.echo(click.style('Your new settings file {}'.format(new_settings_filename), fg='green')) @envs.command(help='Shows a list of env instances set in a settings file.') @click.option('--settings-file', prompt=True, help='Settings Module? ex. settings or yourapp.settings') @click.option('--keep-result', prompt=True, help='Keep the result file (.envs_result)?', default=False) def list_envs(settings_file, keep_result): envs_result = list_envs_module(settings_file) table_data = [ ['Env Var', 'Var Type', 'Has Default', 'Environment Value'], ] table_data.extend( [[row.get('key'), row.get('var_type'), bool(row.get('default')), row.get('value')] for row in envs_result]) click.echo(AsciiTable(table_data).table) if not keep_result: os.remove('.envs_result') @envs.command(help='Make sure that the defined envs with no default value have a value set in the environment.') @click.option('--settings-file', prompt=True, help='Settings Module? ex. settings or yourapp.settings') def check_envs(settings_file): envs_result = list_envs_module(settings_file) for row in envs_result: value = env(row.get('key'), row.get('default'), var_type=row.get('var_type')) if not value: raise EnvsValueException('{}: Environment Variable Not Set'.format(row.get('key'))) os.remove('.envs_result') python-envs-1.2.6/envs/exceptions.py000066400000000000000000000000561340727150400175240ustar00rootroot00000000000000class EnvsValueException(Exception): pass python-envs-1.2.6/envs/templates/000077500000000000000000000000001340727150400167665ustar00rootroot00000000000000python-envs-1.2.6/envs/templates/settings.jinja2000066400000000000000000000006161340727150400217300ustar00rootroot00000000000000from envs import env {% for obj in attr_list %} {{ obj.name }} = {% if not obj.convert %}{% if obj.var_type == 'string' %}"{% endif %}{{ obj.default_val }}{% if obj.var_type == 'string' %}"{% endif %}{% else %}env('{{ obj.name }}',{% if obj.var_type == 'string' %}"{% endif %}{{ obj.default_val }}{% if obj.var_type == 'string' %}"{% endif %},var_type='{{ obj.var_type }}'){% endif %} {% endfor %}python-envs-1.2.6/envs/test_settings.py000066400000000000000000000002371340727150400202430ustar00rootroot00000000000000from envs import env DATABASE_URL = env('DATABASE_URL') DEBUG = env('DEBUG', False, var_type='boolean') MIDDLEWARE = env('MIDDLEWARE', [], var_type='list') python-envs-1.2.6/envs/tests.py000066400000000000000000000077551340727150400165220ustar00rootroot00000000000000import os import unittest from decimal import Decimal, InvalidOperation from envs import env class EnvTestCase(unittest.TestCase): def setUp(self): # Integer os.environ.setdefault('VALID_INTEGER', '1') os.environ.setdefault('INVALID_INTEGER', '["seven"]') # String os.environ.setdefault('VALID_STRING', 'seven') # Boolean os.environ.setdefault('VALID_BOOLEAN', 'True') os.environ.setdefault('VALID_BOOLEAN_FALSE', 'false') os.environ.setdefault('INVALID_BOOLEAN', 'seven') # List os.environ.setdefault('VALID_LIST', "['1','2','3']") os.environ.setdefault('INVALID_LIST', "1") # Tuple os.environ.setdefault('VALID_TUPLE', "('True','FALSE')") os.environ.setdefault('INVALID_TUPLE', '1') # Dict os.environ.setdefault('VALID_DICT', "{'first_name':'Suge'}") os.environ.setdefault('INVALID_DICT', 'Aaron Rogers') # Float os.environ.setdefault('VALID_FLOAT', "5.0") os.environ.setdefault('INVALID_FLOAT', '[5.0]') # Decimal os.environ.setdefault('VALID_DECIMAL', "2.39") os.environ.setdefault('INVALID_DECIMAL', "FOOBAR") def test_integer_valid(self): self.assertEqual(1, env('VALID_INTEGER', var_type='integer')) def test_integer_invalid(self): with self.assertRaises(TypeError) as vm: env('INVALID_INTEGER', var_type='integer') def test_wrong_var_type(self): with self.assertRaises(ValueError) as vm: env('INVALID_INTEGER', var_type='set') def test_string_valid(self): self.assertEqual('seven', env('VALID_STRING')) def test_boolean_valid(self): self.assertEqual(True, env('VALID_BOOLEAN', var_type='boolean')) def test_boolean_valid_false(self): self.assertEqual(False, env('VALID_BOOLEAN_FALSE', var_type='boolean')) def test_boolean_invalid(self): with self.assertRaises(ValueError) as vm: env('INVALID_BOOLEAN', var_type='boolean') def test_list_valid(self): self.assertEqual(['1', '2', '3'], env('VALID_LIST', var_type='list')) def test_list_invalid(self): with self.assertRaises(TypeError) as vm: env('INVALID_LIST', var_type='list') def test_tuple_valid(self): self.assertEqual(('True', 'FALSE'), env('VALID_TUPLE', var_type='tuple')) def test_tuple_invalid(self): with self.assertRaises(TypeError) as vm: env('INVALID_TUPLE', var_type='tuple') def test_dict_valid(self): self.assertEqual({'first_name': 'Suge'}, env('VALID_DICT', var_type='dict')) def test_dict_invalid(self): with self.assertRaises(SyntaxError) as vm: env('INVALID_DICT', var_type='dict') def test_float_valid(self): self.assertEqual(5.0, env('VALID_FLOAT', var_type='float')) def test_float_invalid(self): with self.assertRaises(TypeError) as vm: env('INVALID_FLOAT', var_type='float') def test_decimal_valid(self): self.assertEqual(Decimal('2.39'), env('VALID_DECIMAL', var_type='decimal')) def test_decimal_invalid(self): with self.assertRaises(ArithmeticError) as vm: env('INVALID_DECIMAL', var_type='decimal') def test_defaults(self): self.assertEqual(env('HELLO', 5, var_type='integer'), 5) self.assertEqual(env('HELLO', 5.0, var_type='float'), 5.0) self.assertEqual(env('HELLO', [], var_type='list'), []) self.assertEqual(env('HELLO', {}, var_type='dict'), {}) self.assertEqual(env('HELLO', (), var_type='tuple'), ()) self.assertEqual(env('HELLO', 'world'), 'world') self.assertEqual(env('HELLO', False, var_type='boolean'), False) self.assertEqual(env('HELLO', 'False', var_type='boolean'), False) self.assertEqual(env('HELLO', 'true', var_type='boolean'), True) self.assertEqual(env('HELLO', Decimal('3.14'), var_type='decimal'), Decimal('3.14')) if __name__ == '__main__': unittest.main() python-envs-1.2.6/envs/util.py000066400000000000000000000042621340727150400163230ustar00rootroot00000000000000import ast import importlib import json import os import sys from click._compat import raw_input from . import Env VAR_TYPES = Env.valid_types.keys() def import_util(imp): """ Lazily imports a utils (class, function,or variable) from a module) from a string. @param imp: """ mod_name, obj_name = imp.rsplit('.', 1) mod = importlib.import_module(mod_name) return getattr(mod, obj_name) def convert_module(module): attr_list = [] for k, v in module.__dict__.items(): if k.isupper(): convert = bool(int(raw_input('Convert {}? (1=True,0=False): '.format(k)))) attr_dict = {'name': k, 'convert': convert} default_val = None if convert: default_val = raw_input('Default Value? (default: {}): '.format(v)) if default_val: default_val = ast.literal_eval(default_val) if not default_val: default_val = v attr_dict['default_val'] = default_val var_type = raw_input('Variable Type Choices (ex. boolean,string,list,tuple,integer,float,dict): ') if not var_type in VAR_TYPES: raise ValueError('{} not in {}'.format(var_type, VAR_TYPES)) attr_dict['var_type'] = var_type if not default_val: default_val = v attr_list.append(attr_dict) return attr_list def import_mod(module): if sys.version_info.major == 3: try: m = importlib.import_module(module) except ModuleNotFoundError: sys.path.insert(0, os.getcwd()) m = importlib.import_module(module) else: try: m = importlib.import_module(module) except ImportError: sys.path.insert(0, os.getcwd()) m = importlib.import_module(module) return m def list_envs_module(module): with open('.envs_result', 'w+') as f: f.write('[') import_mod(module) with open('.envs_result', 'a') as f: f.write('{}]') with open('.envs_result', 'r') as f: envs_result = json.load(f) envs_result.pop() return envs_result python-envs-1.2.6/requirements_cli.txt000066400000000000000000000000541340727150400201270ustar00rootroot00000000000000jinja2>=2.8 click>=6.6 terminaltables>=3.0.0python-envs-1.2.6/setup.py000066400000000000000000000015521340727150400155320ustar00rootroot00000000000000from setuptools import setup, find_packages def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.startswith("#")] setup( name='envs', description='Easy access of environment variables from Python with support for strings, booleans, list, tuples, and dicts.', url='https://github.com/bjinwright/envs', author='Brian Jinwright', license='GNU GPL v3', keywords='environment variables', extras_require={ 'cli': parse_requirements('requirements_cli.txt'), }, packages=find_packages(), py_modules=['envs.cli'], include_package_data=True, zip_safe=True, version='1.2.6', entry_points=''' [console_scripts] envs=envs.cli:envs ''', ) python-envs-1.2.6/test-requirements.txt000066400000000000000000000000321340727150400202510ustar00rootroot00000000000000coverage==4.2 nose==1.3.7