diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 4c2a6460..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,12 +0,0 @@ - -## Your environment: - - Python version: - - Operating System: - -## Problem description - - - -## Steps to reproduce - - diff --git a/.travis.yml b/.travis.yml index 1b08a15b..cfde9318 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,18 +9,21 @@ python: - "3.6" install: - - pip install -U setuptools - - pip install -U pip - - pip install -U wheel - - pip install -U tox - pip install codecov - + - pip install -r requirements_dev.txt + - pip install -e . script: - - export TOXENV=py`python -c 'import sys; print("".join(map(str, sys.version_info[:2])))'` - - echo "$TOXENV" + - flake8 --show-source aiohttp_jwt + - isort --check-only -rc aiohttp_jwt --diff + + - flake8 --show-source setup.py + - isort --check-only setup.py --diff + + - flake8 --show-source tests + - isort --check-only -rc tests --diff - - tox + - pytest --cov=./aiohttp_jwt tests/ after_success: - codecov diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index b54d9127..00000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at kuchuklehjs@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 0c63e741..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,23 +0,0 @@ -## Setup -py3.5+ required - - -* Create isolated env for local development. In project folder type - ```sh - $ python3 -m venv env - ``` -* Activate env - ```sh - $ source env/bin/activate - ``` - -* Install dev requirements - ```sh - $ pip install -r requirements_dev.txt - ``` - -* Running tests - ```sh - pytest --cov ./aiohttp_jwt/ --cov-report=term tests/ - ``` - diff --git a/Makefile b/Makefile deleted file mode 100644 index 1e4a0753..00000000 --- a/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# Minimal makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -SPHINXPROJ = aiohttp-jwt -SOURCEDIR = docs -BUILDDIR = build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -.PHONY: help Makefile - -# Catch-all target: route all unknown targets to Sphinx using the new -# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/requirements_dev.txt b/requirements_dev.txt index 8001b94b..757c61a2 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,10 +1,24 @@ aiohttp==3.1.2 +async-timeout==2.0.1 +atomicwrites==1.2.1 +attrs==18.2.0 +chardet==3.0.4 +coverage==4.5.1 flake8==3.5.0 -pytest==3.5.0 -pytest-cov==2.5.1 -pytest-aiohttp==0.3.0 -pytest-mock==1.8.0 -tox==3.0.0 +idna==2.7 +idna-ssl==1.1.0 isort==4.3.4 +mccabe==0.6.1 +more-itertools==4.3.0 +multidict==4.4.2 +pluggy==0.8.0 +py==1.7.0 +pycodestyle==2.3.1 +pyflakes==1.6.0 PyJWT==1.6.1 --e . +pytest==3.9.2 +pytest-aiohttp==0.3.0 +pytest-cov==2.5.1 +pytest-mock==1.8.0 +six==1.11.0 +yarl==1.2.6 diff --git a/tests/conftest.py b/tests/conftest.py index 6d224a70..2fd4b017 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,7 @@ import jwt import pytest from aiohttp import web + from aiohttp_jwt import JWTMiddleware diff --git a/tests/test_middleware.py b/tests/test_middleware.py index 54bc1bd7..4bb7968b 100644 --- a/tests/test_middleware.py +++ b/tests/test_middleware.py @@ -1,6 +1,7 @@ import jwt import pytest from aiohttp import web + from aiohttp_jwt import JWTMiddleware diff --git a/tests/test_permissions.py b/tests/test_permissions.py index f7ffd6a9..eccfd2e5 100644 --- a/tests/test_permissions.py +++ b/tests/test_permissions.py @@ -1,6 +1,7 @@ import jwt import pytest from aiohttp import web + from aiohttp_jwt import check_permissions, login_required, match_any diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 59b51f5d..00000000 --- a/tox.ini +++ /dev/null @@ -1,20 +0,0 @@ -[tox] -envlist = - py3.6 -skip_missing_interpreters = True - -[testenv] -deps = - -r{toxinidir}/requirements_dev.txt - -commands = - flake8 --show-source aiohttp_jwt - isort --check-only -rc aiohttp_jwt --diff - - flake8 --show-source setup.py - isort --check-only setup.py --diff - - flake8 --show-source tests - isort --check-only -rc tests --diff - - pytest --cov ./aiohttp_jwt/ --cov-report=term --cov-report=html tests/