Skip to content

Commit

Permalink
coerce args for connection to allow better duck typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Jan 18, 2018
1 parent 80035fd commit 78efc3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,12 @@ run-test:
$(PYTEST) -v --doctest-modules

pypi-upload:
python setup.py sdist upload
$(PYTHON) setup.py sdist bdist_wheel
$(PYTHON) setup.py --version
PYPKGVER=$$($(PYTHON) setup.py --version); \
PYPKGNAME=$$($(PYTHON) setup.py --name); \
echo "package: $$PYPKGNAME version: $${PYPKGVER}"; \
if [[ "$${PYPKGVER%%.dev*}" == "$${PYPKGVER}" ]]; then \
echo "Deploying $${PYPKGVER} of $${PYPKGNAME}"; \
for f in dist/*; do if [[ -f $$f ]]; then twine upload --skip-existing $$f; fi; done; \
fi
4 changes: 2 additions & 2 deletions sshutil/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def __init__(self,
if cache is None:
cache = g_cache

self.host = host
self.port = port
self.host = str(host)
self.port = int(port)
self.debug = debug
self.cache = cache
self.host_key = None
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r requirements.txt
twine
pytest
sphinx

0 comments on commit 78efc3c

Please sign in to comment.