Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python-inject and remove the bundled package #940

Merged
merged 9 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions com.github.geigi.cozy.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,20 @@
}
]
},
{
"name": "python3-inject",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"inject\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/e9/db/3250e21ff08b3466e1ce8d0b2b09edcd6af7672f709d8625e142e824eb0b/inject-5.2.1-py2.py3-none-any.whl",
"sha256": "e40a5b1bebd8a4050b6f98f3396f3de6e9e2e411ad2a2145f16f351cb6f54e51"
}
]
},
{
"name": "blueprint-compiler",
"buildsystem": "meson",
Expand Down
2 changes: 1 addition & 1 deletion cozy/app_controller.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inject
from gi.repository import Gio
from peewee import SqliteDatabase

import cozy.ext.inject as inject
from cozy.application_settings import ApplicationSettings
from cozy.architecture.singleton import Singleton
from cozy.control.db import get_db
Expand Down
2 changes: 1 addition & 1 deletion cozy/application_settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inject
from gi.repository import Gio

from cozy.architecture.event_sender import EventSender
from cozy.ext import inject


class ApplicationSettings(EventSender):
Expand Down
2 changes: 1 addition & 1 deletion cozy/control/artwork_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from pathlib import Path
from uuid import uuid4

import inject
from gi.repository import Gdk, GdkPixbuf

from cozy.application_settings import ApplicationSettings
from cozy.control.application_directories import get_cache_dir
from cozy.db.artwork_cache import ArtworkCache as ArtworkCacheModel
from cozy.ext import inject
from cozy.media.importer import Importer, ScanStatus
from cozy.report import reporter

Expand Down
2 changes: 1 addition & 1 deletion cozy/control/filesystem_monitor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging

import inject
from gi.repository import Gio

import cozy.ext.inject as inject
from cozy.architecture.event_sender import EventSender
from cozy.model.book import Book
from cozy.model.settings import Settings
Expand Down
2 changes: 1 addition & 1 deletion cozy/control/mpris.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
import time
from dataclasses import dataclass

import inject
from gi.repository import Gio, GLib

from cozy.application_settings import ApplicationSettings
from cozy.control.artwork_cache import ArtworkCache
from cozy.ext import inject
from cozy.media.player import Player
from cozy.model.book import Book
from cozy.report import reporter
Expand Down
2 changes: 1 addition & 1 deletion cozy/control/offline_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import uuid

import inject
from gi.repository import Gio

import cozy.tools as tools
Expand All @@ -10,7 +11,6 @@
from cozy.db.file import File
from cozy.db.offline_cache import OfflineCache as OfflineCacheModel
from cozy.db.track_to_file import TrackToFile
from cozy.ext import inject
from cozy.model.book import Book
from cozy.model.chapter import Chapter
from cozy.report import reporter
Expand Down
Empty file removed cozy/ext/__init__.py
Empty file.
202 changes: 0 additions & 202 deletions cozy/ext/inject/LICENCE

This file was deleted.

Loading
Loading