-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(infrastructure): Switch to poetry for manage library requirements.
As well as, - Make `aiohttp-middlewares` PEP-561 compatible - Use Circle CI 2.0 configuration - Drop aiohttp 2 support - Ensure Python 3.7 support
- Loading branch information
1 parent
d1925fd
commit a35dd49
Showing
17 changed files
with
809 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
version: 2 | ||
jobs: | ||
lint: | ||
docker: &py37 | ||
- image: circleci/python:3.7.0 | ||
steps: | ||
- checkout | ||
- run: &install_poetry | ||
name: Install poetry | ||
command: pip install --user poetry | ||
- run: &update_path | ||
name: Update path | ||
command: | | ||
echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV | ||
source $BASH_ENV | ||
- run: make lint | ||
test35: | ||
docker: | ||
- image: circleci/python:3.5.6 | ||
steps: | ||
- checkout | ||
- run: *install_poetry | ||
- run: *update_path | ||
- run: TOXENV=py35-aiohttp{30,31,32,33,34} make test | ||
- run: mkdir -p test-results/nosetests | ||
- run: "[ -r nosetests.xml ] && mv nosetests.xml test-results/nosetests/results.xml || :" | ||
- store_test_results: | ||
path: test-results | ||
test36: | ||
docker: | ||
- image: circleci/python:3.6.6 | ||
steps: | ||
- checkout | ||
- run: *install_poetry | ||
- run: *update_path | ||
- run: TOXENV=py36-aiohttp30,py36-aiohttp31,py36-aiohttp32,py36-aiohttp33,py36-aiohttp34 make test | ||
- run: mkdir -p test-results/nosetests | ||
- run: "[ -r nosetests.xml ] && mv nosetests.xml test-results/nosetests/results.xml || :" | ||
- store_test_results: | ||
path: test-results | ||
test37: | ||
docker: *py37 | ||
steps: | ||
- checkout | ||
- run: *install_poetry | ||
- run: *update_path | ||
- run: TOXENV=py37-aiohttp30,py37-aiohttp31,py37-aiohttp32,py37-aiohttp33,py37-aiohttp34 make test | ||
- run: mkdir -p test-results/nosetests | ||
- run: "[ -r nosetests.xml ] && mv nosetests.xml test-results/nosetests/results.xml || :" | ||
- store_test_results: | ||
path: test-results | ||
- run: make coveralls | ||
deploy: | ||
docker: *py37 | ||
steps: | ||
- checkout | ||
- run: *install_poetry | ||
- run: *update_path | ||
- run: make install deploy | ||
workflows: | ||
version: 2 | ||
ci: | ||
jobs: | ||
- lint: | ||
filters: &all_tags_and_branches | ||
tags: | ||
only: /.*/ | ||
- test35: | ||
requires: | ||
- lint | ||
filters: *all_tags_and_branches | ||
- test36: | ||
requires: | ||
- lint | ||
filters: *all_tags_and_branches | ||
- test37: | ||
requires: | ||
- lint | ||
filters: *all_tags_and_branches | ||
- deploy: | ||
requires: | ||
- test35 | ||
- test36 | ||
- test37 | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
application-import-names = aiohttp_middlewares | ||
import-order-style = smarkets | ||
max-complexity = 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
*.egg | ||
*.egg-info | ||
*.egg* | ||
*.py[co] | ||
|
||
.coverage | ||
|
@@ -13,3 +12,4 @@ dist/ | |
docs/_build/ | ||
env/ | ||
.tox/ | ||
.venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
r""" | ||
========================== | ||
aiohttp_middlewares.shield | ||
========================== | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Sphinx==1.8.1 | ||
sphinx_autodoc_typehints==1.3.0 |
Oops, something went wrong.