Skip to content

Commit

Permalink
fix: update dependency information
Browse files Browse the repository at this point in the history
- add dependency info to readme
- add dependency info to debian/control
- move requires to source files instead of main
  • Loading branch information
jardon committed Oct 22, 2024
1 parent d055de2 commit b7c4503
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 16 deletions.
38 changes: 28 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,34 @@

## Build

### Dependencies

- build-essential
- meson
- libadwaita-1-dev
- gettext
- desktop-file-utils
- libnm-dev
- libnma-dev
- libnma-gtk4-dev
### Build Dependencies
```bash
sudo apt install -y build-essential debhelper \
python3 meson \
libadwaita-1-dev gettext \
desktop-file-utils \
libjpeg-dev libnm-dev \
libnma-dev libnma-gtk4-dev \
ninja-build
```

### Runtime Dependencies
```bash
sudo apt install -y python3 python3-gi \
python3-tz libadwaita-1-0 \
gir1.2-gtk-4.0 gir1.2-adw-1 \
gir1.2-vte-3.91 libnm0 \
libnma0 libnma-gtk4-0
```

#### Optional Dependencies
```bash
sudo apt install python-requests # required for conn_check
sudo apt install gir1.2-gweather-4.0 # required for timezones
sudo apt install gir1.2-gnomedesktop-4.0 # required for languages, keyboard
sudo apt install gir1.2-nma4-1.0 # required for network
sudo apt install gir1.2-nm-1.0 # required for network
```

### Build

Expand Down
10 changes: 8 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Build-Depends:
libjpeg-dev,
libnm-dev,
libnma-dev,
libnma-gtk4-dev
libnma-gtk4-dev,
ninja-build
Homepage: https://github.com/mirkobrombin/vanilla-first-setup/
Vcs-Browser: hhttps://github.com/mirkobrombin/vanilla-first-setup
Vcs-Git: https://github.com/mirkobrombin/vanilla-first-setup.git
Expand All @@ -31,6 +32,11 @@ Depends: python3,
gir1.2-vte-3.91,
libnm0,
libnma0,
network-manager,
libnma-gtk4-0
Suggests: network-manager,
python-requests,
gir1.2-gweather-4.0,
gir1.2-gnomedesktop-4.0,
gir1.2-nma4-1.0,
gir1.2-nm-1.0
Description: This utility is meant to be used in Vanilla GNOME as a first-setup wizard.
4 changes: 4 additions & 0 deletions vanilla_first_setup/core/languages.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import locale

import gi

gi.require_version("GnomeDesktop", "4.0")

from gi.repository import GnomeDesktop

all_locale = [
Expand Down
4 changes: 4 additions & 0 deletions vanilla_first_setup/core/timezones.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import gi

gi.require_version("GWeather", "4.0")

import datetime
import logging

Expand Down
3 changes: 3 additions & 0 deletions vanilla_first_setup/defaults/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import gi

gi.require_version("GnomeDesktop", "4.0")

import contextlib
import os
Expand Down
4 changes: 4 additions & 0 deletions vanilla_first_setup/defaults/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import gi

gi.require_version("NM", "1.0")
gi.require_version("NMA4", "1.0")

import html
import logging
Expand Down
4 changes: 0 additions & 4 deletions vanilla_first_setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")
gi.require_version("Vte", "3.91")
gi.require_version("NM", "1.0")
gi.require_version("NMA4", "1.0")
gi.require_version("GnomeDesktop", "4.0")
gi.require_version("GWeather", "4.0")

from gi.repository import Gtk, Gdk, Gio, GLib, Adw

Expand Down

0 comments on commit b7c4503

Please sign in to comment.