From 2fe00f30304550e7f58d5f2e615c5cdb5fb197bd Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Sat, 6 Jun 2020 20:23:01 +0200 Subject: [PATCH] Add tox & travis, bump version. --- .gitignore | 1 + .pylintrc | 2 +- .travis.yml | 26 ++++++++++++++++++++++++++ locust_swarm/__init__.py | 2 +- tox.ini | 12 ++++++++++++ 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .travis.yml create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 07810c7..2af0537 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ build dist jmeter.log .mypy_cache +.tox diff --git a/.pylintrc b/.pylintrc index 4f31e9c..7b69f1e 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,4 +6,4 @@ max-line-length=300 # this rarely applies, because we always use black to autofo variable-rgx=[a-z0-9_]{1,30}$ [MESSAGES CONTROL] -disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wildcard-import,unused-wildcard-import,invalid-name,logging-format-interpolation,broad-except +disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wildcard-import,unused-wildcard-import,invalid-name,logging-format-interpolation,broad-except,no-else-break,too-many-arguments diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4bfdcad --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: python +cache: pip +matrix: + include: + # - python: 3.8 + # env: TOXENV=py38 + - python: 3.7 + env: TOXENV=py37 + # - python: 3.6 + # env: TOXENV=py36 +addons: + apt: + packages: + - libev-dev +install: + - pip install tox +script: + - tox +deploy: + provider: pypi + user: $TWINE_USERNAME + password: $TWINE_PASSWORD + skip_existing: true + distributions: sdist + on: + tags: true diff --git a/locust_swarm/__init__.py b/locust_swarm/__init__.py index 68cdeee..382021f 100644 --- a/locust_swarm/__init__.py +++ b/locust_swarm/__init__.py @@ -1 +1 @@ -__version__ = "1.0.5" +__version__ = "1.0.6" diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..5a6a90d --- /dev/null +++ b/tox.ini @@ -0,0 +1,12 @@ +[tox] +envlist = py{37} +; envlist = py{36,37,38} + +[testenv] +deps = + black + pylint +commands = + black --check locust_swarm/ + pylint --rcfile .pylintrc locust_swarm/ + swarm --help