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

uwsgi: migrate to python@3.12 #151742

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Formula/u/uwsgi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
depends_on "pkg-config" => :build
depends_on "openssl@3"
depends_on "pcre" # PCRE2 issue: https://github.com/unbit/uwsgi/issues/2486
depends_on "python@3.11"
depends_on "python-setuptools"
depends_on "python@3.12"
depends_on "yajl"

uses_from_macos "curl"
Expand All @@ -34,7 +35,7 @@
depends_on "linux-pam"
end

def install

Check failure on line 38 in Formula/u/uwsgi.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --build-bottle uwsgi` failed on macOS Sonoma (14) on Apple Silicon!

plugins/python/python_plugin.c:269:2: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations] Py_OptimizeFlag = up.optimize; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ plugins/python/python_plugin.c:1327:25: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_AcquireLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:13:18: note: '_PyImport_AcquireLock' declared here PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1339:26: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_ReleaseLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:14:17: note: '_PyImport_ReleaseLock' declared here PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1596:64: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_recursion_remaining[wsgi_req->async_id] = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1605:49: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_main_recursion_remaining = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1839:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_recursion_remaining[wsgi_req->async_id]; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1848:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_main_recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ 4 warnings and 6 errors generated. plugins/python/pyutils.c:391:2: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations] PySys_SetArgv(up.argc, up.py_argv); ^

Check failure on line 38 in Formula/u/uwsgi.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --build-bottle uwsgi` failed on macOS Ventura (13) on Apple Silicon!

plugins/python/python_plugin.c:269:2: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations] Py_OptimizeFlag = up.optimize; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ plugins/python/python_plugin.c:1327:25: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_AcquireLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:13:18: note: '_PyImport_AcquireLock' declared here PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1339:26: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_ReleaseLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:14:17: note: '_PyImport_ReleaseLock' declared here PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1596:64: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_recursion_remaining[wsgi_req->async_id] = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1605:49: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_main_recursion_remaining = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1839:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_recursion_remaining[wsgi_req->async_id]; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1848:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_main_recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ 4 warnings and 6 errors generated. plugins/python/pyutils.c:391:2: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations] PySys_SetArgv(up.argc, up.py_argv); ^

Check failure on line 38 in Formula/u/uwsgi.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew install --verbose --build-bottle uwsgi` failed on macOS Monterey (12) on Apple Silicon!

plugins/python/python_plugin.c:269:2: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations] Py_OptimizeFlag = up.optimize; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag; ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ plugins/python/python_plugin.c:1327:25: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_AcquireLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:13:18: note: '_PyImport_AcquireLock' declared here PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1339:26: error: too few arguments to function call, single argument 'interp' was not specified _PyImport_ReleaseLock(); ~~~~~~~~~~~~~~~~~~~~~ ^ /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:14:17: note: '_PyImport_ReleaseLock' declared here PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp); ^ plugins/python/python_plugin.c:1596:64: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_recursion_remaining[wsgi_req->async_id] = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1605:49: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? up.current_main_recursion_remaining = tstate->recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1839:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_recursion_remaining[wsgi_req->async_id]; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ plugins/python/python_plugin.c:1848:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'? tstate->recursion_remaining = up.current_main_recursion_remaining; ^~~~~~~~~~~~~~~~~~~ c_recursion_remaining /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here int c_recursion_remaining; ^ 4 warnings and 6 errors generated. plugins/python/pyutils.c:391:2: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations] PySys_SetArgv(up.argc, up.py_argv); ^
openssl = Formula["openssl@3"]
ENV.prepend "CFLAGS", "-I#{openssl.opt_include}"
ENV.prepend "LDFLAGS", "-L#{openssl.opt_lib}"
Expand All @@ -50,7 +51,7 @@
embedded_plugins = null
EOS

python3 = "python3.11"
python3 = "python3.12"
system python3, "uwsgiconfig.py", "--verbose", "--build", "brew"

plugins = %w[airbrake alarm_curl asyncio cache
Expand Down
Loading