1
0
mirror of https://github.com/gryf/wicd.git synced 2026-04-20 21:01:25 +02:00
Commit Graph

1575 Commits

Author SHA1 Message Date
gryf e6afb9232d Use touch for empty file 2020-08-31 21:36:34 +02:00
gryf c684b4de9e Load config, fix some options. 2020-08-31 21:17:55 +02:00
gryf 3992824e23 Fixed backend plugin loading. 2020-08-31 21:14:54 +02:00
gryf 0ef443f97c Removed bin/sbin out of config options.
Let's do this in pythonic way, optionally leave the decision to package
maintainers, where to put binaries.
2020-08-31 21:12:30 +02:00
gryf 367a9ab74d Fix up paths, take adventage of data path 2020-08-31 19:16:35 +02:00
gryf 8ddc4ac945 Added custom install_script derived from setuptools. 2020-08-27 20:32:12 +02:00
gryf faf1aaab17 Get rid of generated wpath in favor of json stored data 2020-08-27 20:06:49 +02:00
gryf 0abb165702 Updated config module 2020-08-27 20:06:22 +02:00
gryf 48057e6fe0 Search for the distro using map, instead of if-elif-else chains 2020-08-25 21:40:42 +02:00
gryf 3e4d17122f Use log instead of print in setup.py 2020-08-25 21:40:19 +02:00
gryf 10fde3e73f Use setuptools instead of pure distutils 2020-08-25 21:32:17 +02:00
gryf 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
gryf aa069dfe2e Use version from main wicd package.
Also, drop bazaar support, and use git for revisions.
2020-08-25 21:27:04 +02:00
gryf 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
gryf 9cefcee94b Updated readme and news files. 2020-08-25 20:08:58 +02:00
gryf 5e837188e5 Moved readme files to the root of project 2020-08-25 20:07:51 +02:00
gryf 28fbd57286 Removed wpath out of dependency for wicd 2020-08-25 20:07:51 +02:00
gryf 9ca790dd49 Adjust backend module to use backends directly. 2020-08-25 20:07:51 +02:00
gryf 28d07f826b Added version to topmost wicd module 2020-08-25 20:07:51 +02:00
gryf 31887db790 Added missing package init for curses submodule 2020-08-25 20:07:51 +02:00
gryf 40b1065073 Make use of config module 2020-08-25 20:07:51 +02:00
gryf 227ed794c4 Added early config module, which will replace wpath 2020-08-25 20:07:51 +02:00
gryf 255ad541dc Renamed backend modules 2020-08-25 20:07:51 +02:00
gryf 047e8266fc Removed autogenerated files 2020-08-25 20:07:51 +02:00
gryf 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
gryf 84f9b1e2d2 Fix imports 2020-08-25 20:05:40 +02:00
gryf fe0cb5ad40 Move clients to the main wicd module. 2020-08-25 20:05:40 +02:00
gryf 24117dbf81 Fix bytes/string issue for subprocess 2020-08-25 20:05:40 +02:00
gryf f3bee99e79 Removing GUI related files. 2020-08-25 20:05:13 +02:00
gryf 777b655423 Added README.rst 2020-08-05 11:36:12 +02:00
gryf b6b02f0750 Fixed nonexistent get_input_nonblocking method. 2020-08-05 11:31:07 +02:00
gryf d4fc621f4f Fixed property name for the wired interface 2020-08-01 19:24:01 +02:00
gryf 8940b201da Fix categories in desktop files. 2020-08-01 15:05:17 +02:00
gryf 40a7a8ac5d Style changes for python files 2020-08-01 11:37:26 +02:00
gryf c401f2963b Fix gentoo init 2020-07-30 16:38:55 +02:00
gryf 48bac465d4 Fixed files permission 2020-07-30 16:34:10 +02:00
gryf 47f0687e92 Make regexp string, not binary 2020-07-30 16:27:19 +02:00
gryf 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