Merge pull request #43 from kubernetes-incubator/o5
Add ipaddress as a dependency.
This commit is contained in:
commit
c7b283348d
@ -36,6 +36,7 @@ class ConfigException(Exception):
|
||||
|
||||
|
||||
class InClusterConfigLoader(object):
|
||||
|
||||
def __init__(self, host_env_name, port_env_name, token_filename,
|
||||
cert_filename, environ=os.environ):
|
||||
self._host_env_name = host_env_name
|
||||
|
||||
@ -18,8 +18,8 @@ import unittest
|
||||
|
||||
from kubernetes.client import configuration
|
||||
|
||||
from .incluster_config import (ConfigException, InClusterConfigLoader,
|
||||
_SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME)
|
||||
from .incluster_config import (_SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME,
|
||||
ConfigException, InClusterConfigLoader)
|
||||
|
||||
_TEST_TOKEN = "temp_token"
|
||||
_TEST_HOST = "127.0.0.1"
|
||||
|
||||
@ -5,4 +5,5 @@ setuptools >= 21.0.0
|
||||
urllib3 >= 1.19.1
|
||||
pyyaml >= 3.12
|
||||
oauth2client >= 4.0.0
|
||||
ipaddress >= 1.0.17
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@ import os.path
|
||||
import sys
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
# these four constants are shown as part of this example in []:
|
||||
# "[watch]Pod[List]" is the deprecated version of "[list]Pod?[watch]=True"
|
||||
WATCH_OP_PREFIX = "watch"
|
||||
|
||||
@ -46,7 +46,7 @@ SAVEIFS=$IFS
|
||||
trap "IFS=$SAVEIFS" EXIT SIGINT
|
||||
IFS=,
|
||||
|
||||
SOURCES="${CLIENT_ROOT}/util/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/examples/*.py"
|
||||
SOURCES="${SCRIPT_ROOT}/../setup.py,${CLIENT_ROOT}/config/*.py,${CLIENT_ROOT}/watch/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/../examples/*.py"
|
||||
|
||||
echo "--- Updating tools"
|
||||
pip install --upgrade pep8
|
||||
|
||||
14
setup.py
14
setup.py
@ -13,7 +13,8 @@
|
||||
# limitations under the License.
|
||||
|
||||
import sys
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
NAME = "kubernetes"
|
||||
VERSION = "1.0.0-alpha.1"
|
||||
@ -25,7 +26,14 @@ VERSION = "1.0.0-alpha.1"
|
||||
# prerequisite: setuptools
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
|
||||
REQUIRES = ["urllib3 >= 1.19", "six >= 1.10", "certifi", "python-dateutil", "pyyaml", "oauth2client"]
|
||||
REQUIRES = [
|
||||
"urllib3 >= 1.19",
|
||||
"six >= 1.10",
|
||||
"certifi",
|
||||
"python-dateutil",
|
||||
"pyyaml",
|
||||
"oauth2client",
|
||||
"ipaddress"]
|
||||
|
||||
setup(
|
||||
name=NAME,
|
||||
@ -38,7 +46,7 @@ setup(
|
||||
keywords=["Swagger", "OpenAPI", "Kubernetes"],
|
||||
install_requires=REQUIRES,
|
||||
packages=['kubernetes', 'kubernetes.client', 'kubernetes.config',
|
||||
'kubernetes.watch', 'kubernetes.client.apis',
|
||||
'kubernetes.watch', 'kubernetes.client.apis',
|
||||
'kubernetes.client.models'],
|
||||
include_package_data=True,
|
||||
long_description="""\
|
||||
|
||||
Loading…
Reference in New Issue
Block a user