Commit graph

16 commits

Author SHA1 Message Date
Grimmauld
a0f5a6ea54
ui: switch to python-slugify
unicode-slugify is basically abandoned upstream. Its repository [1] has seen
the last actual code change in 2018. It uses the deprecated `nose` testing framework.

In nixpkgs, we patched it to use pytest, but made some mistakes in those patches,
resulting in no tests actually executing. I actually fixed the tests to run,
but most of the tests fail: unicode does not reliably get replaced with a slugified version.

There does exist an actual need for slugification. However, the used slugify
package should actually work and be reasonably maintained. The replacement proposed here is
`python-slugify` [2], which sees active development in its repository while the
used API (both import name and the basic function signature `slugify(str)`) is identical.

The version requirement of >=7.0.0 is from their official support matrix for py >= 3.7,
though i did my testing with python-slugify 8.0.4.

[1] https://github.com/mozilla/unicode-slugify
[2] https://pypi.org/project/python-slugify/
2025-08-18 12:02:16 +02:00
Gustavo Iñiguez Goia
e5d1702bd3
ui: ported to PyQt6
The GUI has been ported to PyQt6.

New dependencies:
 - python3-pyqt6
 - python3-pyqt6.qtsvg (otherwise, the svg icons are not loaded)
   On Arch and other systems qt6-svg is neeeded.
 - pyqt6-dev-tools (for uic calls, .ui loading).
 - libqt6sql6

Known issues:
 - pylupdate6 not longer update .pro files.
   It doesn't affect existing translations.
 - There might be a delay closing the GUI. Reason still unknown.

Closes: #1009

Discussion: #1222
2025-08-15 21:27:04 +02:00
Davide Cavalca
b3ecb69a5a ui: bump unicode_slugify to 0.1.5 2023-05-18 11:27:21 -07:00
Arnout Engelen
517ecd7e13
Allow using newer grpcio-tools
My OS comes with grpcio-tools 1.36.1, which seems to work fine, so it
would be nice to allow the ui to use that instead of building 1.10.1
specifically for opensnitch.
2021-04-24 21:05:02 +02:00
Gustavo Iñiguez Goia
7a7341b3e4 python deps: added protobuf, pyqt>=5.6 2020-09-21 01:03:01 +02:00
Gustavo Iñiguez Goia
2d5b89a0d4 UI: removed configparser dependency
It looks like it's part of python since 3.2, and as far as I can tell
without the pip dependency work just fine (tested on ubuntu >=14.x, mint
>= 18, debian >= 8.x).

It should also help packaging for ArchLinux #8.
2020-03-12 01:22:45 +01:00
Phorkoz
e04353a869
grpcio-tools==1.10.1 pulls in grpcio of the correct version, stops the error on make install
grpcio-tools==1.10.1 pulls in grpcio of the correct version, stops the error on make install
2019-10-30 20:12:09 -05:00
evilsocket
b58cae8d42
dear travis ... FU! 2018-04-12 11:57:01 +02:00
evilsocket
d2e20400f2
misc: small fix or general refactoring i did not bother commenting 2018-04-12 11:54:24 +02:00
evilsocket
87967c5e9a
misc: small fix or general refactoring i did not bother commenting 2018-04-12 11:26:17 +02:00
evilsocket
d2abc96e52
misc: small fix or general refactoring i did not bother commenting 2018-04-12 11:17:21 +02:00
evilsocket
ec6ecea8b4
UI is now using python3 2018-04-11 15:35:29 +02:00
Warren Crigger
a41d623a7b Updating requirements.txt with configparser 2018-04-08 10:31:39 -04:00
evilsocket
8009743d60
when the thc kicks in and you find a better logic, better naming, better design and new ideas 2018-04-08 15:32:20 +02:00
evilsocket
11c19d2c50
misc: small fix or general refactoring i did not bother commenting 2018-04-07 15:52:58 +02:00
evilsocket
aa63a47bc1
misc: small fix or general refactoring i did not bother commenting 2018-04-05 16:37:51 +02:00