diff --git a/python-pystray/.SRCINFO b/python-pystray/.SRCINFO new file mode 100644 index 0000000..8d143c4 --- /dev/null +++ b/python-pystray/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-pystray + pkgdesc = Allows to create a system tray icon + pkgver = 0.19.4 + pkgrel = 1 + url = https://github.com/moses-palmer/pystray + changelog = python-pystray.changelog + arch = any + license = GPL3 + makedepends = python>=3.4 + makedepends = python-setuptools + makedepends = python-pip + makedepends = python-wheel + depends = python-six + depends = python-pillow + depends = python-xlib>=0.17 + depends = libappindicator-gtk3 + depends = python-gobject + source = python-pystray-0.19.4.tar.gz::https://github.com/moses-palmer/pystray/archive/v0.19.4.tar.gz + b2sums = 325bedd97a11e04f87a41f5fc206ed2a97c4693dc9d5ef52e12fdb72761d53af3a43a324e5d45db72d697e6f06e9a0c60b585b4935c4202d60f4e8e299df354a + +pkgname = python-pystray diff --git a/python-pystray/PKGBUILD b/python-pystray/PKGBUILD new file mode 100644 index 0000000..378b23b --- /dev/null +++ b/python-pystray/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Qontinuum +# Contributor: Julien Nicoulaud + +pkgname="python-pystray" +pkgver=0.19.4 +pkgrel=1 +arch=('any') +license=('GPL3') +pkgdesc="Allows to create a system tray icon" +url="https://github.com/moses-palmer/pystray" +depends=('python-six' 'python-pillow' 'python-xlib>=0.17' 'libappindicator-gtk3' 'python-gobject') +makedepends=('python>=3.4' 'python-setuptools' 'python-pip' 'python-wheel') +changelog="$pkgname.changelog" +source=("$pkgname-$pkgver.tar.gz::https://github.com/moses-palmer/pystray/archive/v${pkgver}.tar.gz") +b2sums=('325bedd97a11e04f87a41f5fc206ed2a97c4693dc9d5ef52e12fdb72761d53af3a43a324e5d45db72d697e6f06e9a0c60b585b4935c4202d60f4e8e299df354a') + +build() { + cd "pystray-$pkgver" + python setup.py build +} + +package_python-pystray() { + cd "pystray-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} diff --git a/python-pystray/python-pystray.changelog b/python-pystray/python-pystray.changelog new file mode 100644 index 0000000..c3df90c --- /dev/null +++ b/python-pystray/python-pystray.changelog @@ -0,0 +1,192 @@ +Release Notes +============= + +v0.18.0 - Easier integration with other libraries +------------------------------------------------- +* Added a detached run mode to enable integration with libraries with a run + loop. Thanks to *PySimpleGUI* and *glight2000* for their testing efforts! +* Do not crash when running the icon in a non-main thread when using a *GTK+* + backend. +* Updated documentation. + + +v0.17.4 - Corrected import on Windows +------------------------------------- +* Corrected imports from _WinDLL_ to ensure argument definitions are private + to this library. Thanks to *TomsonBoylett*! + + +v0.17.3 - macOS and AppIndicator bug fixes +------------------------------------------ +* Let the default timeout for notifications when using the *AppIndicator* + backend be decided by the desktop environment, not infinity. Thanks to + *Angelo Naselli*! +* Do not attempt to create a menu before the icon has started on *macOS*. + + +v0.17.2 - Windows bug fixes +--------------------------- +* Actually release loaded icons on *Windows*. Thanks to *Bob1011941*! +* Let mouse button release trigger menu and action on *Windows* as expected. + Thanks to *Ennea*! + + +v0.17.1 - Corrected release notes +--------------------------------- +* Corrected attribution of *Windows* notification fix. + + +v0.17.0 - Various bug fixes +--------------------------- +* Corrected signalling in *GTK* backend. Thanks to *Simon Lindholm*! +* Corrected hinding of notification message in *GTK backend*. Thanks to *Simon + Lindholm*! +* Corrected notification structure on *Windows*. Thanks to *flameiguana*! + + +v0.16.0 - Enable notifications +------------------------------ +* Added support for notifications. Thanks to *ralphwetzel* and *Chr0nicT*! +* Added support for forcing the backend to use. + + +v0.15.0 - Allow methods as menu callbacks +----------------------------------------- +* Allow passing a method as menu callback. +* Ensure that the temporary file is removed when running under *AppIndicator*. + Thanks to *superjamie*! + + +v0.14.4 - Allow setting icon after construction +----------------------------------------------- +* Do not require setting ``icon`` twice when not passing the icon to the + constructor. +* Clarified documentation regarding name of menu argument. + + +v0.14.3 - Full license coverage +------------------------------- +* Added license preamble to all source files. Thanks to *Björn Esser*! + + +v0.14.2 - Proper license files +------------------------------ +* Added proper license files. Thanks to *Björn Esser*! + + +v0.14.1 - Restore icon after *explorer.exe* crash +------------------------------------------------- +* Restore the icon when *explorer exe* restarts after a crash. Thanks to + *Michael Dubner*! + + +v0.14 - Disabled menu items +--------------------------- +* Added support for disabling menu items. + + +v0.13 - Corrections for X +------------------------- +* Make sure to set window size hints on *X*. Thanks to *filonenko-mikhail*! + + +v0.12 - Simplified API +---------------------- +* Do not require use of ``setup`` to show icon. +* Pass reference to menu item to action handler. If action handlers do not + support this argument, they will be wrapped. +* Updated documentation. + + +v0.11 - Radio buttons +--------------------- +* Added support for radio buttons. +* Corrected transparent icons for *OSX*. + + +v0.10 - Changed Xlib backend library +------------------------------------ +* Changed *Xlib* library. +* Corrected test with incorrect parameter. + + +v0.9 - Submenus +--------------- +* Added support for nested menus. + + +v0.8 - Platform independent API and checkable +--------------------------------------------- +* Added method to explicitly update menu to enable support for other platforms. +* Added support for *AppIndicator* backend. +* Re-added native clickability for *OSX*. +* Added support for check boxes. + + +v0.7 - Dynamic menus +-------------------- +* Added support for dynamically generating menu item properties when a popup + menu is displayed. +* Display the default menu item distinctly. +* Changed the menu item API slightly. +* Corrected logging on Windows. + + +v0.6 - Simplified API +--------------------- +* Removed explicit default action parameter ``on_activate``. +* Allow terminating the application with *ctrl+c* on *OSX*. +* Added basic logging. + + +v0.5 - Menu support +------------------- +* Added support for popup menus. +* Corrected bug which prevented stopping the icon on *Windows*. +* Corrected documentation. + + +v0.4 - GTK+ 3 support +--------------------- +* Added support for *GTK+* on *Linux*. + + +v0.3.5 - Corrected import errors +-------------------------------- +* Propagate import errors raised on Linux to help troubleshoot missing + ``Xlib`` module. Thanks to Lance Kindle! +* Properly declare ``six`` as a dependency. +* Declare ``python3-xlib`` as dependency on *Linux* for *Python 3*. + + +v0.3.4 - Corrected Python 3 issues on Xorg +------------------------------------------ +* Make sure that ``pystray`` can be used on *Python 3* on *Xorg*. +* Make sure the release making script runs on *Python 3*. + + +v0.3.3 - Corrected encoding issues +---------------------------------- +* Make sure building works even when default encoding is not *utf-8*. +* Corrected issue with click selector on *OSX*. + + +v0.3.2 - Universal wheel +------------------------ +* Make sure to build a universal wheel for all python versions. + + +v0.3.1 - No-change packaging update +----------------------------------- +* Do not package an old version of ``pynput``. + + +v0.3 - Proper Python 3 Support +------------------------------ +* Corrected Python 3 bugs. +* Made ``Icon.run()`` mandatory on all platforms. + + +v0.2 - Initial Release +---------------------- +* Support for adding a system tray icon on *Linux*, *Mac OSX* and *Windows*.