1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
from 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
''',
)
|