Skip to content

Commit

Permalink
Set up automated PyPi deploys through Travis CI (#196)
Browse files Browse the repository at this point in the history
* Set up automated PyPi deploys through Travis CI

* Fix a remaining remnant of Python 2

* Switch flake8 to use Py3.6 to catch any other Py2 artifacts
  • Loading branch information
tarkatronic committed May 10, 2018
1 parent c589715 commit a3694e5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,7 @@ python:
- 3.7-dev
matrix:
include:
- python: 2.7
- python: 3.6
env: TOXENV=flake8
install:
- pip install tox tox-travis codecov
Expand All @@ -19,3 +19,15 @@ after_success: codecov
branches:
only:
- master
- "/^v?\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
deploy:
provider: pypi
user: jwilhelm
password:
secure: oC+pOZSikl7MHxVdukVej9RH+fr/2LpXgaI1MphxZIohCZvWFXIMl+4vHfNbhI7ax4d7VaW7OLJEWUE7dPMpicHeTD6oD1jZps2ri3TNgWC1G5GiMUuCqDCo+SD+KFv1EWOY+esfX3TKCI0vOOvv01rfXJYH6yoHziFgYK8XJfEvMkGpKkCjAnlQ8wSpt3QTWaMULvyUMYv/83h6hyhajbRSarvci0DXO7xdN1p3OE0CDFgCa1xcvUi3URhIlUROLW1mI+P/aPjyNETn/Kkdn9a70NZjGez9vaD5KbxKegxcRmyRNYlyHNxVRFkAfCj9zVP+DtKxnX0gPGhK9t6ZXSAcZJOMBzETbSn33pzSsSvLTHMxzh1ppZ3CXdkxjVyCjwtu9PTjuh9lFIWyXFPv6UcaUnmnEf7o6D7PjrFoT+HGwD7+hbrFmQbM1mAPm9POdxMJ4/UYJ20iT4BaDxXh+QxxJjipJbQY1BlPz7iesusvBtDFQUlFi6JX/gBdOODscto89vnASmVcv+hJRFXK73VNSp3DuTSh7r5mxYM0PNX6/TDS3x9qAm+jQa1vYEhPeELWusp19lf5mff80nfoRBmEqngOiXNegDr5zUN8jYjWdpIaukV+DLpTpHQgxjsmdCOm8bJU+OTY8OP3HbWXOQGKhUKKvB4m3yHWdasK4fY=
on:
tags: true
python: 3.6
condition: "$TOXENV = flake8"
distributions: sdist bdist_wheel
repo: robshakir/pyangbind
4 changes: 4 additions & 0 deletions pyangbind/lib/serialise.py
Expand Up @@ -35,6 +35,10 @@
from pyangbind.lib.yangtypes import YANGBool, safe_name


if six.PY3:
long = int


class WithDefaults(IntEnum):
IF_SET = 0

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -11,15 +11,15 @@ commands = coverage run setup.py test -q {posargs}

[testenv:flake8]
deps = flake8
basepython = python2.7
basepython = python3.6
commands = flake8 .

[travis]
python =
2.7: py27, flake8
2.7: py27
3.4: py34
3.5: py35
3.6: py36
3.6: py36, flake8
3.7: py37
pypy2.7: pypy2
pypy3.5: pypy3

0 comments on commit a3694e5

Please sign in to comment.