Skip to content

Commit c7b2833

Browse files
authored
Merge pull request #43 from kubernetes-incubator/o5
Add ipaddress as a dependency.
2 parents 22e2737 + f6e417d commit c7b2833

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

kubernetes/config/incluster_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ConfigException(Exception):
3636

3737

3838
class InClusterConfigLoader(object):
39+
3940
def __init__(self, host_env_name, port_env_name, token_filename,
4041
cert_filename, environ=os.environ):
4142
self._host_env_name = host_env_name

kubernetes/config/incluster_config_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from kubernetes.client import configuration
2020

21-
from .incluster_config import (ConfigException, InClusterConfigLoader,
22-
_SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME)
21+
from .incluster_config import (_SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME,
22+
ConfigException, InClusterConfigLoader)
2323

2424
_TEST_TOKEN = "temp_token"
2525
_TEST_HOST = "127.0.0.1"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ setuptools >= 21.0.0
55
urllib3 >= 1.19.1
66
pyyaml >= 3.12
77
oauth2client >= 4.0.0
8+
ipaddress >= 1.0.17
89

scripts/preprocess_spec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import sys
1919
from collections import OrderedDict
2020

21-
2221
# these four constants are shown as part of this example in []:
2322
# "[watch]Pod[List]" is the deprecated version of "[list]Pod?[watch]=True"
2423
WATCH_OP_PREFIX = "watch"

scripts/update-pep8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SAVEIFS=$IFS
4646
trap "IFS=$SAVEIFS" EXIT SIGINT
4747
IFS=,
4848

49-
SOURCES="${CLIENT_ROOT}/util/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/examples/*.py"
49+
SOURCES="${SCRIPT_ROOT}/../setup.py,${CLIENT_ROOT}/config/*.py,${CLIENT_ROOT}/watch/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/../examples/*.py"
5050

5151
echo "--- Updating tools"
5252
pip install --upgrade pep8

setup.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# limitations under the License.
1414

1515
import sys
16-
from setuptools import setup, find_packages
16+
17+
from setuptools import find_packages, setup
1718

1819
NAME = "kubernetes"
1920
VERSION = "1.0.0-alpha.1"
@@ -25,7 +26,14 @@
2526
# prerequisite: setuptools
2627
# http://pypi.python.org/pypi/setuptools
2728

28-
REQUIRES = ["urllib3 >= 1.19", "six >= 1.10", "certifi", "python-dateutil", "pyyaml", "oauth2client"]
29+
REQUIRES = [
30+
"urllib3 >= 1.19",
31+
"six >= 1.10",
32+
"certifi",
33+
"python-dateutil",
34+
"pyyaml",
35+
"oauth2client",
36+
"ipaddress"]
2937

3038
setup(
3139
name=NAME,
@@ -38,7 +46,7 @@
3846
keywords=["Swagger", "OpenAPI", "Kubernetes"],
3947
install_requires=REQUIRES,
4048
packages=['kubernetes', 'kubernetes.client', 'kubernetes.config',
41-
'kubernetes.watch', 'kubernetes.client.apis',
49+
'kubernetes.watch', 'kubernetes.client.apis',
4250
'kubernetes.client.models'],
4351
include_package_data=True,
4452
long_description="""\

0 commit comments

Comments
 (0)