From bf42b94466ad6dda4dd6bc515fc8fa434be3461a Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Fri, 17 Nov 2017 18:06:54 -0600 Subject: [PATCH 1/5] Add travis-ci.org config --- .travis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dbbbcd9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: python +python: +- 2.7 +- 3.4 +- 3.5 +- 3.6 +install: +- pip install tox-travis +- pip install coveralls +deploy: + provider: pypi + user: bewing + on: + tags: true + branch: master + password: + secure: B1T2RHXIN3WFu7mdlz4ZkRuCIfuitlL9NTP4/Ia9zCxBb96fu8Rfa3TU3NoRGzXN0iOf47jm9AYeuj05CNCMOii0lBfapGeKlyucapThdtxpkmX5TLr80TI+QWUtj4n1JSWGFZke4TUEUSr4MC7/9FAmPdLJTIwhmXjImgWnjWMXgSpEAbSEvXJWDM1TajKRF5SgCfP+GYN7jJTTAHOJ3oZSLocR6SDm2D7LWc8p3EksPurXrIytAyPkVWkvgrl2IFVYxjXNjDNiALzi4JIDY0JdW89z9WLI8zbHLCjyg5WLSPUGcL/4IEjcyfQZ8sEIKn4/knEumqIVgvoLmwWElg/GqJ6WhS/yRwK3ULplles+iSZO1s26NG8uOB7ZRONsnSSz+/CJxAzUt/ASy6AbiFt0waX/U+xX1/smWCgWDCJENYELH41KgA/zf1kwfThG8JEv7si9/NoTamOggHIihRbAcS1jzc3BXmP+gTFT/nunePVjkyO9O+EMy9ZuI65o/Tw9nGkOUlafmqbM879zPM6fwMdYw+3UoS11OJ/ZtP621EW/lH/Xaww/G5ps25sxa6c2/S7j7q0lcnfSzdTA6S3hM363cDKVFr3hJ0dq596G+8L95SUpwOXxo3twFJmnog96IXLezMuSqdHhIuc7ylC/AwFInJimKbGerqa2cws= +script: +- tox +after_success: +- coveralls From 03059c249f98ab3662350a2a50bbb6093157178e Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Fri, 17 Nov 2017 18:17:18 -0600 Subject: [PATCH 2/5] Update README.md with correct badge URIs --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1d2603a..c1794c2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ [![PyPI](https://img.shields.io/pypi/v/napalm-mos.svg)](https://pypi.python.org/pypi/napalm-mos) -[![PyPI](https://img.shields.io/pypi/dm/napalm-mos.svg)](https://pypi.python.org/pypi/napalm-mos) -[![Build Status](https://travis-ci.org/napalm-automation/napalm-mos.svg?branch=master)](https://travis-ci.org/napalm-automation/napalm-mos) -[![Coverage Status](https://coveralls.io/repos/github/napalm-automation/napalm-mos/badge.svg?branch=master)](https://coveralls.io/github/napalm-automation/napalm-mos) +[![Build Status](https://travis-ci.org/napalm-automation-community/napalm-mos.svg?branch=master)](https://travis-ci.org/napalm-automation-community/napalm-mos) +[![Coverage Status](https://coveralls.io/repos/github/napalm-automation-community/napalm-mos/badge.svg?branch=master)](https://coveralls.io/github/napalm-automation-community/napalm-mos) # napalm-mos - -This repository is a candidate for addition to the Github napalm-automation project, -pending internal business and legal discussion. From 015110443ca80d0baf13295fc842e761f1aa13f3 Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Thu, 23 Nov 2017 20:03:26 -0600 Subject: [PATCH 3/5] Add report.json to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 1dbc687..30e6e96 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ nosetests.xml coverage.xml *,cover .hypothesis/ +report.json # Translations *.mo From daa80bf1032418358dec8bfb7f81e2e20609d58a Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Mon, 12 Feb 2018 14:51:58 -0600 Subject: [PATCH 4/5] Append newline to single-line config loads --- napalm_mos/mos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_mos/mos.py b/napalm_mos/mos.py index ac2e245..84b75a9 100644 --- a/napalm_mos/mos.py +++ b/napalm_mos/mos.py @@ -209,7 +209,7 @@ def _load_config(self, filename=None, config=None, replace=False): config.insert(0, "configure") config = "\n".join(config) + "\n" else: - config = "configure\n" + config + config = "configure\n" + config + "\n" fd.write(config.encode('utf-8')) fd.flush() From b939f4a7f6da4fe0b87abc77dec8ff2f04a21b28 Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Tue, 13 Feb 2018 15:41:50 -0600 Subject: [PATCH 5/5] Update version to 2.0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 37a81db..043a005 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="napalm-mos", - version="2.0.1", + version="2.0.2", packages=find_packages(), author="Benny Holmgren, Brandon Ewing", author_email="benny@holmgren.id.au, brandon.ewing@warningg.com",