-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
sanic: 21.3.4 -> 21.9.1, sanic-routing: 0.6.2 -> 0.7.2 #144672
Conversation
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.
Result of nixpkgs-review
run on x86_64-linux 1
2 packages marked as broken and skipped:
- python38Packages.pytest-sanic
- python39Packages.pytest-sanic
15 packages built:
- dyndnsc
- python38Packages.entrance
- python38Packages.entrance-with-router-features
- python38Packages.json-logging
- python38Packages.sanic
- python38Packages.sanic-auth
- python38Packages.sanic-routing
- python38Packages.sanic-testing
- python39Packages.entrance
- python39Packages.entrance-with-router-features
- python39Packages.json-logging
- python39Packages.sanic
- python39Packages.sanic-auth
- python39Packages.sanic-routing
- python39Packages.sanic-testing
@@ -47,5 +47,6 @@ buildPythonPackage rec { | |||
homepage = "https://github.com/yunstanford/pytest-sanic/"; | |||
license = licenses.asl20; | |||
maintainers = with maintainers; [ costrouc ]; | |||
broken = true; # 2021-11-04 |
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.
This package is not dependency of any other package now that sanic
itself doesn't depend on it.
It is a good candidate for removal.
which looks awfully similar to the problems in sanic-org/sanic#1774 |
postPatch = '' | ||
# Loosen dependency requirements. | ||
substituteInPlace setup.py \ | ||
--replace '"pytest==5.2.1"' '"pytest"' \ | ||
--replace '"pytest==6.2.5"' '"pytest"' \ | ||
--replace '"gunicorn==20.0.4"' '"gunicorn"' \ | ||
--replace '"pytest-sanic",' "" \ |
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.
While sanic
still declares pytest-sanic
as dependencies, it doesn't use it for anything as it is clear that the removal also doesn't broke anything.
At least for me many other sanic tests fails on macOS, so I don't think it is worth to trying to make it work. It already doesn't work currently. |
Am opening an upstream issue. |
Could we merge this as-is? We can always fix darwin later (since it is already broken anyway). |
The other sanic tests that fail on macos, for me at least, are due to attempting to build the python 3.8 and 3.9 versions at the same time, and with the lack of functioning sandboxing on darwin, compete for the same local port. |
Makes sense. I will just disable the failing tests on macOS them. |
I think simply disabling that test on darwin will unblock us. |
☝️ i.e. that single test. Run the builds one after the other and they're fine for me. |
@risicle Done. |
Nice. Add issue link as comment in derivation. |
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.
nixpkgs-review
happy, macos 10.15
}; | ||
|
||
patches = [ | ||
# Allow later websockets release, https://github.com/sanic-org/sanic/pull/2154 | ||
(fetchpatch { |
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.
Please remove the unused fetchpatch from inputs.
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.
Will do any cleanups in this PR: #145022
Motivation for this change
ZHF: #144627
pytest-sanic
as broken. It doesn't build with newer versions ofsanic
, sincesanic.websocket
was removed.Most of them are related to the lack ofsanic
onPATH
, so it should be safe.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)