-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for redirect issue #2030
fix for redirect issue #2030
Changes from 5 commits
a647b47
dd56884
5d681f6
952a804
5f893a4
70646d1
d0602e0
adf96d0
4a892a6
fdf6685
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Some simple testing tasks (sorry, UNIX only). | ||
|
||
pytest := python3 -m pytest | ||
|
||
all: test | ||
|
||
.install-deps: requirements/dev.txt | ||
@pip install -U -r requirements/dev.txt | ||
@pip3 install -U -r requirements/dev.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aiohttp development assumes virtual environment usage. |
||
@touch .install-deps | ||
|
||
isort: | ||
|
@@ -19,9 +21,9 @@ flake: .flake | |
$(shell find examples -type f) \ | ||
$(shell find demos -type f) | ||
@flake8 aiohttp --exclude=aiohttp/backport_cookies.py | ||
@if python -c "import sys; sys.exit(sys.version_info < (3,5))"; then \ | ||
@if python3 -c "import sys; sys.exit(sys.version_info < (3,5))"; then \ | ||
flake8 examples tests demos && \ | ||
python setup.py check -rms; \ | ||
python3 setup.py check -rms; \ | ||
fi | ||
@if ! isort -c -rc aiohttp tests examples; then \ | ||
echo "Import sort errors, run 'make isort' to fix them!!!"; \ | ||
|
@@ -34,31 +36,31 @@ check_changes: | |
@./tools/check_changes.py | ||
|
||
.develop: .install-deps $(shell find aiohttp -type f) .flake check_changes | ||
@pip install -e . | ||
@pip3 install -e . | ||
@touch .develop | ||
|
||
test: .develop | ||
@py.test -q ./tests | ||
$(pytest) -q ./tests | ||
|
||
vtest: .develop | ||
@py.test -s -v ./tests | ||
$(pytest) -s -v ./tests | ||
|
||
cov cover coverage: | ||
tox | ||
|
||
cov-dev: .develop | ||
@echo "Run without extensions" | ||
@AIOHTTP_NO_EXTENSIONS=1 py.test --cov=aiohttp tests | ||
@py.test --cov=aiohttp --cov-report=term --cov-report=html --cov-append tests | ||
@AIOHTTP_NO_EXTENSIONS=1 $(pytest) --cov=aiohttp tests | ||
$(pytest) --cov=aiohttp --cov-report=term --cov-report=html --cov-append tests | ||
@echo "open file://`pwd`/coverage/index.html" | ||
|
||
cov-dev-full: .develop | ||
@echo "Run without extensions" | ||
@AIOHTTP_NO_EXTENSIONS=1 py.test --cov=aiohttp tests | ||
@AIOHTTP_NO_EXTENSIONS=1 $(pytest) --cov=aiohttp tests | ||
@echo "Run in debug mode" | ||
@PYTHONASYNCIODEBUG=1 py.test --cov=aiohttp --cov-append tests | ||
@PYTHONASYNCIODEBUG=1 $(pytest) --cov=aiohttp --cov-append tests | ||
@echo "Regular run" | ||
@py.test --cov=aiohttp --cov-report=term --cov-report=html --cov-append tests | ||
$(pytest) --cov=aiohttp --cov-report=term --cov-report=html --cov-append tests | ||
@echo "open file://`pwd`/coverage/index.html" | ||
|
||
clean: | ||
|
@@ -75,7 +77,7 @@ clean: | |
@rm -rf build | ||
@rm -rf cover | ||
@make -C docs clean | ||
@python setup.py clean | ||
@python3 setup.py clean | ||
@rm -f aiohttp/_multidict.html | ||
@rm -f aiohttp/_multidict.c | ||
@rm -f aiohttp/_multidict.*.so | ||
|
@@ -101,7 +103,7 @@ doc-spelling: | |
@make -C docs spelling SPHINXOPTS="-W -E" | ||
|
||
install: | ||
@pip install -U pip | ||
@pip install -Ur requirements/dev.txt | ||
@pip3 install -U pip | ||
@pip3 install -Ur requirements/dev.txt | ||
|
||
.PHONY: all build flake test vtest cov clean doc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import aiopg.sa | ||
import sqlalchemy as sa | ||
|
||
import aiopg.sa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please drop this file from PR. The change is not related to issue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when I run the tests locally flake said to run isort against this file, still want me to revert? |
||
|
||
|
||
__all__ = ['question', 'choice'] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ deps = | |
|
||
commands = | ||
flake8 aiohttp examples tests | ||
python setup.py check -rm | ||
python3 setup.py check -rm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again we are in python3 virtual environment here. |
||
coverage erase | ||
|
||
basepython: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is intention for this variable? It's basically an alias for just
pytest
, isn't it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is so I could run the tests locally, where I have py2 + py3 installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, with this change you can run the tests outside virtualenv, still want me revert? it makes no different inside virtual env but fixes it outside virtual env