Skip to content

Commit

Permalink
Merge 9327e13 into b0ecacc
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Nov 11, 2020
2 parents b0ecacc + 9327e13 commit b4a33ae
Show file tree
Hide file tree
Showing 12 changed files with 436 additions and 86 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
lint:

runs-on: ubuntu-latest

strategy:
matrix:
linter:
- lint
- checkdoc
- mypy

steps:
- uses: actions/checkout@v2
- name: tox ${{ matrix.linter }}
uses: docker://snakepacker/python:all
env:
TOXENV: ${{ matrix.linter }}
with:
args: tox

build:
needs: lint
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
toxenv:
- py35
- py36
- py37
- py38
- py39

steps:
- uses: actions/checkout@v2

- name: tox ${{ matrix.toxenv }}
uses: docker://snakepacker/python:all
env:
TOXENV: ${{ matrix.toxenv }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
args: tox
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
recursive-exclude tests *
recursive-exclude __pycache__ *
exclude .*

include README.rst
include wsrpc_aiohttp/py.typed
recursive-include wsrpc_aiohttp/static
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
],
long_description=open("README.rst").read(),
packages=find_packages(exclude=["tests", "doc"]),
package_data={"wsrpc_aiohttp": ["static/*"]},
package_data={"wsrpc_aiohttp": ["static/*", "py.typed"]},
install_requires=["aiohttp<4", "yarl"],
python_requires=">3.5.*, <4",
extras_require={
Expand Down
1 change: 1 addition & 0 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ async def test_auth_fail(client: WSRPCClient, handler):
async def test_auth_ok(client: WSRPCClient, handler):
handler.AUTHORIZE = True
await client.connect()
await client.close()
14 changes: 5 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,py3{5,6,7,8}
envlist = lint,checkdoc,mypy,py3{5,6,7,8,9}

[testenv]
passenv = COVERALLS_* AMQP_*
Expand Down Expand Up @@ -34,15 +34,11 @@ commands =
[testenv:mypy]
usedevelop = true

extras =
develop

deps =
mypy

commands =
mypy --strict \
--warn-return-any \
--warn-unused-ignores \
--warn-incomplete-stub \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-untyped-decorators \
-m wsrpc_aiohttp
mypy wsrpc_aiohttp
Empty file added wsrpc_aiohttp/py.typed
Empty file.
2 changes: 1 addition & 1 deletion wsrpc_aiohttp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

team_email = "me@mosquito.su"

version_info = (3, 0, 0)
version_info = (3, 0, 1)


__author__ = ", ".join("{} <{}>".format(*info) for info in author_info)
Expand Down
Loading

0 comments on commit b4a33ae

Please sign in to comment.