Commit 3d67af3d authored by librebob's avatar librebob

Trim python-xdg.

parent 39f42bb4
Pipeline #55335215 failed with stage
in 1 minute and 54 seconds
test:
script:
- apt-get update -qy
- apt-get install -y
- apt-get install -y
python3-dev
python3-pip
flatpak
python3-pyqt5
python3-pyqt5.qtquick
python3-dateutil
python3-xdg
python3-dbus
qml-module-qtquick2
qml-module-qtquick-layouts
qml-module-qtquick-controls2
qml-module-qtquick-window2
- pip3 install
- pip3 install
peewee
- cd test; python3 -m unittest
......@@ -7,7 +7,7 @@ pkgdesc="A libre replacement for Steam"
arch=(any)
url="https://gitlab.com/librebob/athenaeum"
license=('GPL-3.0-or-later')
depends=('flatpak' 'python' 'pyqt5-common' 'python-pyqt5' 'python-sip-pyqt5' 'python-peewee' 'python-xdg' 'python-dateutil' 'qt5-base' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-declarative' 'sqlite')
depends=('flatpak' 'python' 'pyqt5-common' 'python-pyqt5' 'python-sip-pyqt5' 'python-peewee' 'python-dateutil' 'qt5-base' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-declarative' 'sqlite')
makedepends=('git')
source=("git+https://gitlab.com/librebob/athenaeum.git")
......
......@@ -39,8 +39,6 @@ python3-pyqt5
python3-pyqt5.qtquick
python3-peewee
python3-dateutil
python3-xdg
python3-dbus
qml-module-qtquick2
qml-module-qtquick-layouts
qml-module-qtquick-controls2
......@@ -57,8 +55,6 @@ python-pyqt5
python-sip-pyqt5
python-peewee
python-dateutil
python-xdg
python-dbus
qt5-base
qt5-svg
qt5-quickcontrols2
......@@ -170,6 +166,6 @@ https://libregamewiki.org/List_of_games
## License
GPLv3 or later (GPLv3+), any other code as licensed (python-appstream is LGPLv2+, notify2 is BSD-2).
GPLv3 or later (GPLv3+), any other code as licensed (python-appstream is LGPLv2+).
Assets as licensed (LibreICONS is MIT).
from peewee import *
from xdg import BaseDirectory
from PyQt5.QtCore import QStandardPaths
import datetime
import json
try:
path = BaseDirectory.save_data_path('athenaeum')
path = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation) + '/athenaeum'
db = SqliteDatabase(path + '/store.db')
except Error as e:
sys.exit("Error setting up database.")
......
......@@ -34,7 +34,6 @@ class TestGame(unittest.TestCase):
def test_search(self):
l = library.Library()
l.setMeta = unittest.mock.MagicMock(name='setMeta')
l.appendGame(game.Game(name='basketball'))
l.appendGame(game.Game(name='Bear'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment