Skip to content
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 requirements.txt #564

Merged
merged 3 commits into from
May 31, 2023
Merged

Fix requirements.txt #564

merged 3 commits into from
May 31, 2023

Conversation

haukex
Copy link
Contributor

@haukex haukex commented May 31, 2023

pytest fails to run when starting from a clean venv environment. This adds specific packages to requirements.txt to fix that.

So that tests work when starting from a clean venv.
haukex added a commit to haukex/aiohttp-devtools that referenced this pull request May 31, 2023
This reverts commit 778ddbe.
This is now taken care of by my pull request aio-libs#564.
requirements.txt Outdated Show resolved Hide resolved
@Dreamsorcerer Dreamsorcerer merged commit a9bc32f into aio-libs:master May 31, 2023
@haukex haukex deleted the fix_req branch May 31, 2023 17:17
Dreamsorcerer added a commit that referenced this pull request Jun 28, 2023
* Work around signals on Windows (fixes #548)

As discussed in the issue above, this works around signals not working
properly on Windows by setting up an endpoint that shuts down the
server.

* Update requirements.txt

A few required packages were not named, and updated pytest.

* Fix _stop_dev_server when _session isn't set

* Get tests working

* Added CHANGES file

* Fixups for linter

* Skip a test on Python 3.7

* Delete 548.bugfix

* A workaround for issue #565

This change allows the tests to run multiple times without leaving
processes behind or leaving port 8000 open.

* Revert "Update requirements.txt"

This reverts commit 778ddbe.
This is now taken care of by my pull request #564.

* Apply a suggestion from code review

Co-authored-by: Sam Bull <[email protected]>

* Apply a suggestion from code review

Co-authored-by: Sam Bull <[email protected]>

* The issue #565 workaround needs to be adjusted

Because in this branch we've changed _stop_dev_server to be async

* Added a test for handlers

Tests whether on_startup, cleanup_ctx, and on_shutdown handlers are
called.

* Revert "A workaround for issue #565"

This reverts commit 11eab74.

* Fix #565

Co-authored-by: Sam Bull <[email protected]>

* Remove an unused function

* Turn off fail-fast on tests

* Hopefully make linter happy

* test_runserver_cleanup.py needs the #566 patch

* Copy over a filterwarnings to try and fix failures

* Fix requirements-dev.txt on Python 3.7

* Began work on test_server_cleanup_byurl (unfinished)

* Revert "Began work on test_server_cleanup_byurl (unfinished)"

This reverts commit 54eced8.

* Working shutdown/cleanup code

The manual test in cleanup_app.py passed on Windows 10, Python 3.7 through 3.11.

* The two tests marked non_windows_test now work

* Revert "Turn off fail-fast on tests"

This reverts commit 15317f3.

Not needed anymore now that all tests are passing

* Revert "Fix requirements-dev.txt on Python 3.7"

This reverts commit dcbe025.

PR #569 was rejected and I mainly needed it for testing.

* Make linter happy again

* Update aiohttp_devtools/runserver/watch.py

* Revert af852e0, thereby restoring 54eced8

This reverts commit af852e0,
which reverted commit 54eced8
"Began work on test_server_cleanup_byurl (unfinished)" because
it turns out we can use that code as a basis to test on Linux.

* Added --shutdown-by-url to CLI

* Replaced test_server_cleanup with _byurl version

* Update watch.py

* Update cli.py

* Update config.py

* Update serve.py

* Update cleanup_app.py

* Update test_runserver_cleanup.py

* Update test_runserver_cleanup.py

* Update watch.py

* Update cleanup_app.py

---------

Co-authored-by: Sam Bull <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants