-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If version is undetermined use ANY_VERSION
Also makes required_version non-optional
- Loading branch information
Wout Feys
committed
Sep 16, 2024
1 parent
532c73f
commit 9bc76de
Showing
9 changed files
with
22 additions
and
31 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
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
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,11 +1,11 @@ | ||
"""Gunicorn Module, report if module was found""" | ||
|
||
import aikido_zen.importhook as importhook | ||
from aikido_zen.background_process.packages import pkg_compat_check | ||
from aikido_zen.background_process.packages import pkg_compat_check, ANY_VERSION | ||
|
||
|
||
@importhook.on_import("gunicorn") | ||
def on_gunicorn_import(gunicorn): | ||
"""Report to the core when gunicorn gets imported""" | ||
pkg_compat_check("gunicorn") | ||
pkg_compat_check("gunicorn", required_version=ANY_VERSION) | ||
return gunicorn |
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
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,11 +1,11 @@ | ||
"""UWSGI Module, report if module was found""" | ||
|
||
import aikido_zen.importhook as importhook | ||
from aikido_zen.background_process.packages import pkg_compat_check | ||
from aikido_zen.background_process.packages import pkg_compat_check, ANY_VERSION | ||
|
||
|
||
@importhook.on_import("uwsgi") | ||
def on_uwsgi_import(uwsgi): | ||
"""Report to the core when uwsgi gets imported""" | ||
pkg_compat_check("uwsgi") | ||
pkg_compat_check("uwsgi", required_version=ANY_VERSION) | ||
return uwsgi |