1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 23:22:27 +01:00
Commit Graph

1568 Commits

Author SHA1 Message Date
0abb165702 Updated config module 2020-08-27 20:06:22 +02:00
48057e6fe0 Search for the distro using map, instead of if-elif-else chains 2020-08-25 21:40:42 +02:00
3e4d17122f Use log instead of print in setup.py 2020-08-25 21:40:19 +02:00
10fde3e73f Use setuptools instead of pure distutils 2020-08-25 21:32:17 +02:00
7b904077c5 Removed kde/gtk/gnome stuff from setup
Also removed placement of the modules for daemon, cli and curses client,
since they are part of the wicd package now.
2020-08-25 21:27:04 +02:00
aa069dfe2e Use version from main wicd package.
Also, drop bazaar support, and use git for revisions.
2020-08-25 21:27:04 +02:00
3499631070 Moved from generated init files to static.
Let the maintainers do their choices, instead of jump into ideas about
how init files should looks like.

Adjusted gitignore file.
2020-08-25 21:26:34 +02:00
9cefcee94b Updated readme and news files. 2020-08-25 20:08:58 +02:00
5e837188e5 Moved readme files to the root of project 2020-08-25 20:07:51 +02:00
28fbd57286 Removed wpath out of dependency for wicd 2020-08-25 20:07:51 +02:00
9ca790dd49 Adjust backend module to use backends directly. 2020-08-25 20:07:51 +02:00
28d07f826b Added version to topmost wicd module 2020-08-25 20:07:51 +02:00
31887db790 Added missing package init for curses submodule 2020-08-25 20:07:51 +02:00
40b1065073 Make use of config module 2020-08-25 20:07:51 +02:00
227ed794c4 Added early config module, which will replace wpath 2020-08-25 20:07:51 +02:00
255ad541dc Renamed backend modules 2020-08-25 20:07:51 +02:00
047e8266fc Removed autogenerated files 2020-08-25 20:07:51 +02:00
2a62f3f207 Fix forgotten import for zip_longest.
During transition from 2to3, izip_longest was renamed to zip_longest,
but there is no import from itertools. In this commit we fixed that,
also removed not needed izip_longest function.
2020-08-25 20:05:40 +02:00
84f9b1e2d2 Fix imports 2020-08-25 20:05:40 +02:00
fe0cb5ad40 Move clients to the main wicd module. 2020-08-25 20:05:40 +02:00
24117dbf81 Fix bytes/string issue for subprocess 2020-08-25 20:05:40 +02:00
f3bee99e79 Removing GUI related files. 2020-08-25 20:05:13 +02:00
777b655423 Added README.rst 2020-08-05 11:36:12 +02:00
b6b02f0750 Fixed nonexistent get_input_nonblocking method. 2020-08-05 11:31:07 +02:00
d4fc621f4f Fixed property name for the wired interface 2020-08-01 19:24:01 +02:00
8940b201da Fix categories in desktop files. 2020-08-01 15:05:17 +02:00
40a7a8ac5d Style changes for python files 2020-08-01 11:37:26 +02:00
c401f2963b Fix gentoo init 2020-07-30 16:38:55 +02:00
48bac465d4 Fixed files permission 2020-07-30 16:34:10 +02:00
47f0687e92 Make regexp string, not binary 2020-07-30 16:27:19 +02:00
581a1eed29 Re-adding wpath.py.in link 2020-07-30 16:24:59 +02:00
Guido Maria Serra
577aa8c4fe Merge pull request #2 from xtaran/master
Fix wicd-curses warnings in status bar and similar cases
2019-09-12 09:43:51 +02:00
Axel Beckert
f090e292dc Fix wicd-curses warnings in status bar and similar cases
Replace all occurrences of "from gi.repository import GObject as
gobject" with "from gi.repository import GLib as gobject".
2019-09-12 00:59:05 +02:00
Guido Serra
5860ad8251 updated shebangs & other p3 references 2019-09-11 12:14:15 +02:00
Guido Maria Serra
317576bc26 Merge pull request #1 from xtaran/master
More fixes for using wicd under Python 3, mostly in the daemon
2019-09-11 10:49:43 +02:00
Axel Beckert
c1c26d8112 Remaining needed changes to get the daemon running with Python 3 2019-09-11 02:43:20 +02:00
Axel Beckert
c238d26a9e Fix "NameError: name 'cmp' is not defined"
Source: https://codegolf.stackexchange.com/questions/49778/how-can-i-use-cmpa-b-with-python3

Now the wicd daemon starts as "/usr/sbin/wicd -c -f -e -o" wihout
errors, only warnings are left.

wicd-curses also runs but spews warnings into the status line, too.
2019-09-11 01:40:43 +02:00
Axel Beckert
9587c52c88 Fix "TypeError: cmp is an invalid keyword argument for sort()" 2019-09-11 01:33:03 +02:00
Axel Beckert
c2789eb467 Fix "TypeError: sorted expected 1 arguments, got 2" 2019-09-11 01:29:07 +02:00
Axel Beckert
fef2a43a59 Fix LogFile class by using io.FileIO instead of file
Thanks to Frank Hofmann for the right pointer to
https://stackoverflow.com/questions/47838405/porting-a-sub-class-of-python2-file-class-to-python3

Now at least "/usr/sbin/wicd -c -f -e -o" keeps running.

Still throws errors and warnings, though:

/usr/share/wicd/daemon/wicd-daemon.py:1925: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
  mainloop = gobject.MainLoop()
/usr/share/wicd/daemon/monitor.py:392: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
  mainloop = gobject.MainLoop()
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1020, in _async_scan
    self._sync_scan()
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1024, in _sync_scan
    scan = self.wifi.Scan(str(self.hidden_essid))
  File "/usr/lib/python3/dist-packages/wicd/networking.py", line 673, in Scan
    aps = wiface.GetNetworks(essid)
  File "/usr/lib/python3/dist-packages/wicd/wnettools.py", line 227, in newfunc
    return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/wicd/wnettools.py", line 1392, in GetNetworks
    entry = self._ParseAccessPoint(cell, ralink_info)
  File "/usr/lib/python3/dist-packages/wicd/wnettools.py", line 1447, in _ParseAccessPoint
    ap['bitrates'] = sorted(m, lambda x, y: int(float(x) - float(y)))
TypeError: sorted expected 1 arguments, got 2
2019-09-11 01:24:27 +02:00
Axel Beckert
187f85f6a0 More Python 3 fixes needed to also install the packages
Daemon still does not start. It fails as follows:

Traceback (most recent call last):
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 62, in <module>
    from wicd.logfile import ManagedStdio
  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 32, in <module>
    class LogFile(file):
NameError: name 'file' is not defined
2019-09-11 01:16:58 +02:00
Axel Beckert
c4ba09c196 Fix some execution paths in setup.py for Python 3
Mostly adds additionally thrown Exceptions and str vs bytes
conversions.
2019-09-11 01:13:04 +02:00
Guido Serra
15ca072eed another step fwd 2019-09-10 09:50:56 +02:00
Guido Serra
404545ffd5 I am a ... nevermind 2019-09-09 11:59:20 +02:00
Guido Serra
fbc67695a5 a proper signature, else we get the error Alex reported 2019-09-09 11:47:36 +02:00
Guido Serra
8c2696b78c otherwise setup.py build wont work 2019-09-09 11:32:51 +02:00
Guido Serra
49ad8e4653 cleaner, doesnt have to be really called 2019-08-30 16:38:31 +02:00
Guido Serra
3035004c6d in mock we trust 2019-08-30 16:25:12 +02:00
Guido Serra
94bf1ab01e seems we made it properly maketrans() 2019-08-30 14:50:21 +02:00
Guido Serra
b92d5b052e unicode encoded is bytes 2019-08-29 14:35:47 +02:00