[ANN] py2app 0.26
Ronald Oussoren via Pyobjc-dev <[email protected]> Sun, 19 Sep 2021 11:38:08 +0200
| Newsgroups | gmane.comp.python.pyobjc.devel,gmane.comp.python.apple |
|---|---|
| Message-ID | <[email protected]> |
--===============3257430947772315962==
Content-Type: multipart/alternative;
boundary="Apple-Mail=_9528014C-AC68-404D-AE3D-DE4AD28EB20F"
--Apple-Mail=_9528014C-AC68-404D-AE3D-DE4AD28EB20F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
I've spend some more time on py2app over the last week or so, in between =
relaxing while being away from work. That results in a larger release =
for py2app than I've done in a long while.=20
The most important changes are support for Python 3.10 and (finally!) =
bundling package metadata ("dist-info" directories). The latter should =
fix issues with code that uses pkg_resources and looks for distribution =
information such as entry points.=20
As always: Py2app is supposed to be a "DWIM" tool, please file issues =
when you need to adjust the bundled application, either through py2app =
options or (especially) manually.=20
And a public service announcement: Don't use the "argv_emulator" option =
with GUI applications. That option tends to cause options with GUI =
eventloops, and most GUI libraries have better options to handle =
"file-open" events.
I expect to work less on py2app in the coming weeks, the current plan is =
to continue working on PyObjC during my last week of from work. The =
current repository is up-to-date w.r.t. support for the upcoming macOS =
Monterey, and I hope to land land some interesting other improvements =
during the week...
The full changelog:
Stub executables were recompiled on macOS 11
This means support for light mode/dark mode should now work out of the =
box.
The old stub executables are still used when detecting that Tkinter is =
used with an old build of Tk.
Issue 1: Include ".egg-info" and ".dist-info" information in the bundled =
application
This fixes any python package that uses pkg_resources to look for =
specific distributions.
py2app.filters.not_stdlib_filter now knows about Python's "venv"
Issue 368: Add recipe detect_dunder_file
This recipe will ensure that a Python package is stored outside of =
site-packages.zip when a module in that package uses the __file__ =
variable.
This variable is most commonly used to load resources stored in the =
package (instead of the newer importlib.resources and pkg_resources =
libraries).
Issue 339: Add recipe for pydantic
The recipe is needed because pydantic uses Cython to compile all sources =
(including the package __init__) and therefore hides imports from the =
dependency analyzer.
Issue 338: Add "imageio_ffmpeg" to autopackages
PR367: Add recipes for pandas, pylsp, and zmq
PR367: Add docutils and pylint to autopackages
PR by Ryan Clary (mrclary on GitHub)
Issue 344: Invocation of codesign on the whole bundle sometimes fails
Py2app will now try this a number of times before giving up. This is at =
best a workaround for and doesn't completely fix the problem.
Issue 370: py2app now works with Python 3.10
Python 3.10 no longer exports a (private) symbol used by the py2app stub =
executable. Switched to a public API to accomplish the same task where =
available.
Issue 110: Add recipe for SQLAlchemy
The recipe includes all dialects and connectors, including implicit =
dependencies, because SQLAlchemy uses __import__ to load dependencies.
Issue 328: Add recipe for gcloud
Issue 195: Add USER_BASE, getuserbase() and getusersitepackages() to =
py2app's version of site.py.
Issue 184: Add recipe for 'ssl'
This recipe is only used for Python 3.4 or later and ensures that the CA =
bundle used by Python's ssl module is included in the app bundle and =
OpenSSL is configured to look for that bundle in the application bundle.
Issue 371: change default error message on launch problems
The default error message shown when the application cannot be launched =
is now slightly more useful and refers the py2app debug page =
<https://py2app.readthedocs.io/en/latest/debugging.html>.
Issue 345, 169: Adjust qt5 and qt6 recipes for non-PyPI installations
The qt5 and qt6 recipes now should work when the Qt installation prefix =
is outside of the PyQt package, for example when PyQt was installed =
through homebrew.
I've tested this for PyQt5 and made the same change to the PyQt6 recipe, =
although I haven't tested that change.
=E2=80=94
Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
--Apple-Mail=_9528014C-AC68-404D-AE3D-DE4AD28EB20F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: 4px; =
caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: =
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, =
Arial, sans-serif, "Apple Color Emoji", "Segoe UI =
Emoji"; font-size: 16px;" class=3D"">I've spend some more time on =
py2app over the last week or so, in between relaxing while being away =
from work. That results in a larger release for py2app than I've done in =
a long while. </p><p style=3D"box-sizing: border-box; margin: 0px =
0px 10px; padding-top: 4px; caret-color: rgb(51, 51, 51); color: rgb(51, =
51, 51); font-family: -apple-system, BlinkMacSystemFont, "Segoe =
UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", =
"Segoe UI Emoji"; font-size: 16px;" class=3D"">The most =
important changes are support for Python 3.10 and (finally!) bundling =
package metadata ("dist-info" directories). The latter should fix issues =
with code that uses <code style=3D"box-sizing: border-box; =
font-family: Menlo, Monaco, Consolas, "Courier New", =
monospace; font-size: 14.300000190734863px; padding: 2px 4px; color: =
rgb(199, 37, 78); background-color: rgb(249, 242, 244); =
border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">pkg_resources</code> and looks for distribution =
information such as entry points. </p><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px; caret-color: rgb(51, =
51, 51); color: rgb(51, 51, 51); font-family: -apple-system, =
BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, =
"Apple Color Emoji", "Segoe UI Emoji"; font-size: =
16px;" class=3D"">As always: Py2app is supposed to be a "DWIM" tool, =
please file issues when you need to adjust the bundled application, =
either through py2app options or (especially) manually. </p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: 4px; =
caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: =
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, =
Arial, sans-serif, "Apple Color Emoji", "Segoe UI =
Emoji"; font-size: 16px;" class=3D"">And a public service =
announcement: Don't use the "argv_emulator" option with GUI =
applications. That option tends to cause options with GUI eventloops, =
and most GUI libraries have better options to handle "file-open" =
events.</p><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); =
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", =
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe =
UI Emoji"; font-size: 16px;" class=3D"">I expect to work less on =
py2app in the coming weeks, the current plan is to continue working on =
PyObjC during my last week of from work. The current repository is =
up-to-date w.r.t. support for the upcoming macOS Monterey, and I hope to =
land land some interesting other improvements during the week...</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: 4px; =
caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: =
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, =
Arial, sans-serif, "Apple Color Emoji", "Segoe UI =
Emoji"; font-size: 16px;" class=3D"">The full changelog:</p><ul =
style=3D"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; =
caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: =
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, =
Arial, sans-serif, "Apple Color Emoji", "Segoe UI =
Emoji"; font-size: 16px;" class=3D""><li style=3D"box-sizing: =
border-box;" class=3D""><p style=3D"box-sizing: border-box; margin: 0px =
0px 10px; padding-top: 4px;" class=3D"">Stub executables were recompiled =
on macOS 11</p><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px;" class=3D"">This means support for light mode/dark =
mode should now work out of the box.</p><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">The old =
stub executables are still used when detecting that Tkinter is used with =
an old build of Tk.</p></li><li style=3D"box-sizing: border-box;" =
class=3D""><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px;" class=3D"">Issue 1: Include ".egg-info" and =
".dist-info" information in the bundled application</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">This fixes any python package that uses <code =
style=3D"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, =
"Courier New", monospace; font-size: 14.300000190734863px; =
padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, =
242, 244); border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">pkg_resources</code> to look for specific =
distributions.</p></li><li style=3D"box-sizing: border-box;" class=3D""><p=
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D""><code style=3D"box-sizing: border-box; font-family: =
Menlo, Monaco, Consolas, "Courier New", monospace; font-size: =
14.300000190734863px; padding: 2px 4px; color: rgb(199, 37, 78); =
background-color: rgb(249, 242, 244); border-top-left-radius: 4px; =
border-top-right-radius: 4px; border-bottom-right-radius: 4px; =
border-bottom-left-radius: 4px;" =
class=3D"">py2app.filters.not_stdlib_filter</code> now knows about =
Python's "venv"</p></li><li style=3D"box-sizing: border-box;" =
class=3D""><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px;" class=3D"">Issue 368: Add recipe <code =
style=3D"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, =
"Courier New", monospace; font-size: 14.300000190734863px; =
padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, =
242, 244); border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">detect_dunder_file</code></p><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">This =
recipe will ensure that a Python package is stored outside of =
site-packages.zip when a module in that package uses the <code =
style=3D"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, =
"Courier New", monospace; font-size: 14.300000190734863px; =
padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, =
242, 244); border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">__file__</code> variable.</p><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">This =
variable is most commonly used to load resources stored in the package =
(instead of the newer <code style=3D"box-sizing: border-box; =
font-family: Menlo, Monaco, Consolas, "Courier New", =
monospace; font-size: 14.300000190734863px; padding: 2px 4px; color: =
rgb(199, 37, 78); background-color: rgb(249, 242, 244); =
border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">importlib.resources</code> and <code =
style=3D"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, =
"Courier New", monospace; font-size: 14.300000190734863px; =
padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, =
242, 244); border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">pkg_resources</code> libraries).</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
339: Add recipe for pydantic</p><p style=3D"box-sizing: border-box; =
margin: 0px 0px 10px; padding-top: 4px;" class=3D"">The recipe is needed =
because pydantic uses Cython to compile all sources (including the =
package <code style=3D"box-sizing: border-box; font-family: Menlo, =
Monaco, Consolas, "Courier New", monospace; font-size: =
14.300000190734863px; padding: 2px 4px; color: rgb(199, 37, 78); =
background-color: rgb(249, 242, 244); border-top-left-radius: 4px; =
border-top-right-radius: 4px; border-bottom-right-radius: 4px; =
border-bottom-left-radius: 4px;" class=3D"">__init__</code>) and =
therefore hides imports from the dependency analyzer.</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
338: Add "imageio_ffmpeg" to autopackages</p></li><li style=3D"box-sizing:=
border-box;" class=3D""><p style=3D"box-sizing: border-box; margin: 0px =
0px 10px; padding-top: 4px;" class=3D"">PR367: Add recipes for pandas, =
pylsp, and zmq</p></li><li style=3D"box-sizing: border-box;" class=3D""><p=
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">PR367: Add docutils and pylint to autopackages</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">PR by Ryan Clary (mrclary on GitHub)</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
344: Invocation of codesign on the whole bundle sometimes fails</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">Py2app will now try this a number of times before =
giving up. This is at best a workaround for and doesn't completely fix =
the problem.</p></li><li style=3D"box-sizing: border-box;" class=3D""><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">Issue 370: py2app now works with Python 3.10</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">Python 3.10 no longer exports a (private) symbol used =
by the py2app stub executable. Switched to a public API to accomplish =
the same task where available.</p></li><li style=3D"box-sizing: =
border-box;" class=3D""><p style=3D"box-sizing: border-box; margin: 0px =
0px 10px; padding-top: 4px;" class=3D"">Issue 110: Add recipe for =
SQLAlchemy</p><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px;" class=3D"">The recipe includes all dialects and =
connectors, including implicit dependencies, because SQLAlchemy =
uses <code style=3D"box-sizing: border-box; font-family: Menlo, =
Monaco, Consolas, "Courier New", monospace; font-size: =
14.300000190734863px; padding: 2px 4px; color: rgb(199, 37, 78); =
background-color: rgb(249, 242, 244); border-top-left-radius: 4px; =
border-top-right-radius: 4px; border-bottom-right-radius: 4px; =
border-bottom-left-radius: 4px;" class=3D"">__import__</code> to =
load dependencies.</p></li><li style=3D"box-sizing: border-box;" =
class=3D""><p style=3D"box-sizing: border-box; margin: 0px 0px 10px; =
padding-top: 4px;" class=3D"">Issue 328: Add recipe for =
gcloud</p></li><li style=3D"box-sizing: border-box;" class=3D""><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">Issue 195: Add <code style=3D"box-sizing: =
border-box; font-family: Menlo, Monaco, Consolas, "Courier =
New", monospace; font-size: 14.300000190734863px; padding: 2px 4px; =
color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); =
border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">USER_BASE</code>, <code style=3D"box-sizing: border-box; =
font-family: Menlo, Monaco, Consolas, "Courier New", =
monospace; font-size: 14.300000190734863px; padding: 2px 4px; color: =
rgb(199, 37, 78); background-color: rgb(249, 242, 244); =
border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">getuserbase()</code> and <code style=3D"box-sizing: =
border-box; font-family: Menlo, Monaco, Consolas, "Courier =
New", monospace; font-size: 14.300000190734863px; padding: 2px 4px; =
color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); =
border-top-left-radius: 4px; border-top-right-radius: 4px; =
border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;" =
class=3D"">getusersitepackages()</code> to py2app's version =
of <code style=3D"box-sizing: border-box; font-family: Menlo, =
Monaco, Consolas, "Courier New", monospace; font-size: =
14.300000190734863px; padding: 2px 4px; color: rgb(199, 37, 78); =
background-color: rgb(249, 242, 244); border-top-left-radius: 4px; =
border-top-right-radius: 4px; border-bottom-right-radius: 4px; =
border-bottom-left-radius: 4px;" class=3D"">site.py</code>.</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
184: Add recipe for 'ssl'</p><p style=3D"box-sizing: border-box; margin: =
0px 0px 10px; padding-top: 4px;" class=3D"">This recipe is only used for =
Python 3.4 or later and ensures that the CA bundle used by Python's ssl =
module is included in the app bundle and OpenSSL is configured to look =
for that bundle in the application bundle.</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
371: change default error message on launch problems</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">The default error message shown when the application =
cannot be launched is now slightly more useful and refers the <a =
href=3D"https://py2app.readthedocs.io/en/latest/debugging.html" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">py2app debug page</a>.</p></li><li =
style=3D"box-sizing: border-box;" class=3D""><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">Issue =
345, 169: Adjust qt5 and qt6 recipes for non-PyPI installations</p><p =
style=3D"box-sizing: border-box; margin: 0px 0px 10px; padding-top: =
4px;" class=3D"">The qt5 and qt6 recipes now should work when the Qt =
installation prefix is outside of the PyQt package, for example when =
PyQt was installed through homebrew.</p><p style=3D"box-sizing: =
border-box; margin: 0px 0px 10px; padding-top: 4px;" class=3D"">I've =
tested this for PyQt5 and made the same change to the PyQt6 recipe, =
although I haven't tested that change.</p></li></ul><div =
style=3D"font-size: 11px;" class=3D""><br class=3D""></div><div =
class=3D"">
<div dir=3D"auto" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">=E2=80=94</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D""></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Twitter / =
micro.blog: @ronaldoussoren</div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Blog: <a =
href=3D"https://blog.ronaldoussoren.net/" =
class=3D"">https://blog.ronaldoussoren.net/</a></div></div>
</div>
<br class=3D""></body></html>=
--Apple-Mail=_9528014C-AC68-404D-AE3D-DE4AD28EB20F--
--===============3257430947772315962==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============3257430947772315962==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
--===============3257430947772315962==--