Update version

This commit is contained in:
El Mau 2023-11-05 21:30:39 -06:00
parent 0e750c0af0
commit d2d60e7281
6 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,12 @@
v 1.0.0 [05-nov-2023]
- Thanks to https://git.cuates.net/AmourSpirit zaz-pip now work in:
* Mac Os
* Windows
* Linux, sudo installed LibreOffice
* Linux, Snap installed LibreOffice
* Linux, Flatpak installed LibreOffice
* Linux, AppImage LibreOffice
v 0.10.2 [22-apr-2022] v 0.10.2 [22-apr-2022]
- Fix - issue #10 - Fix - issue #10

View File

@ -25,6 +25,11 @@ SWIFT / BIC: TRWIBEB1XXX
* [Mira la wiki](https://git.cuates.net/elmau/zaz-pip/wiki/home_es) * [Mira la wiki](https://git.cuates.net/elmau/zaz-pip/wiki/home_es)
Thanks for code:
* @AmourSpirit
Thanks for translations: Thanks for translations:
* English - @LibreOfficiant * English - @LibreOfficiant

View File

@ -1 +1 @@
0.10.2 1.0.0

View File

@ -26,7 +26,7 @@ import logging
TYPE_EXTENSION = 1 TYPE_EXTENSION = 1
# ~ https://semver.org/ # ~ https://semver.org/
VERSION = '0.10.2' VERSION = '1.0.0'
# ~ Your great extension name, not used spaces # ~ Your great extension name, not used spaces
NAME = 'ZAZPip' NAME = 'ZAZPip'

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:l="http://libreoffice.org/extensions/description/2011"> <description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:l="http://libreoffice.org/extensions/description/2011">
<identifier value="net.elmau.zaz.pip"/> <identifier value="net.elmau.zaz.pip"/>
<version value="0.10.2"/> <version value="1.0.0"/>
<dependencies> <dependencies>
<l:LibreOffice-minimal-version value="7.0"/> <l:LibreOffice-minimal-version value="7.0"/>
</dependencies> </dependencies>

View File

@ -21,9 +21,10 @@ implementation_services = ("com.sun.star.task.Job",)
# endregion Constants # endregion Constants
# region XJob # region XJob
class PipRunner(unohelper.Base, XJob): class PipRunner(unohelper.Base, XJob):
def __init__(self, ctx): def __init__(self, ctx):
self._is_flatpak = bool(os.getenv("FLATPAK_ID", "")) self._is_flatpak = bool(os.getenv("FLATPAK_ID", ""))
if self._is_flatpak: if self._is_flatpak:
@ -31,10 +32,10 @@ class PipRunner(unohelper.Base, XJob):
ss = str(site_packages) ss = str(site_packages)
if site_packages.exists() and ss not in sys.path: if site_packages.exists() and ss not in sys.path:
sys.path.append(ss) sys.path.append(ss)
def execute(self, *args: Tuple[NamedValue, ...]) -> None: def execute(self, *args: Tuple[NamedValue, ...]) -> None:
pass pass
def get_flatpak_site_packages_dir(self) -> Path: def get_flatpak_site_packages_dir(self) -> Path:
# should never be all users # should never be all users
sand_box = os.getenv("FLATPAK_SANDBOX_DIR", "") or str( sand_box = os.getenv("FLATPAK_SANDBOX_DIR", "") or str(