mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed 'setuptools' dependency
This commit is contained in:
@@ -60,7 +60,6 @@ Python modules:
|
|||||||
- requests
|
- requests
|
||||||
- bs4 (beautifulsoup)
|
- bs4 (beautifulsoup)
|
||||||
- dbus
|
- dbus
|
||||||
- pkg_resources (setuptools)
|
|
||||||
|
|
||||||
Run:
|
Run:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
11
bin/mpdevil
11
bin/mpdevil
@@ -34,16 +34,13 @@ import datetime
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import pkg_resources
|
import mpdevil # only used to get version
|
||||||
|
|
||||||
# MPRIS modules
|
# MPRIS modules
|
||||||
import dbus
|
import dbus
|
||||||
import dbus.service
|
import dbus.service
|
||||||
from dbus.mainloop.glib import DBusGMainLoop
|
from dbus.mainloop.glib import DBusGMainLoop
|
||||||
|
|
||||||
NAME=pkg_resources.require('mpdevil')[0].project_name
|
|
||||||
VERSION=pkg_resources.require('mpdevil')[0].version
|
|
||||||
PACKAGE=NAME.lower()
|
|
||||||
COVER_REGEX="^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$"
|
COVER_REGEX="^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$"
|
||||||
|
|
||||||
|
|
||||||
@@ -3255,13 +3252,13 @@ class ServerStats(Gtk.Dialog):
|
|||||||
class AboutDialog(Gtk.AboutDialog):
|
class AboutDialog(Gtk.AboutDialog):
|
||||||
def __init__(self, window):
|
def __init__(self, window):
|
||||||
super().__init__(transient_for=window, modal=True)
|
super().__init__(transient_for=window, modal=True)
|
||||||
self.set_program_name(NAME)
|
self.set_program_name("mpdevil")
|
||||||
self.set_version(VERSION)
|
self.set_version(mpdevil.__version__)
|
||||||
self.set_comments(_("A small MPD client written in python"))
|
self.set_comments(_("A small MPD client written in python"))
|
||||||
self.set_authors(["Martin Wagner"])
|
self.set_authors(["Martin Wagner"])
|
||||||
self.set_website("https://github.com/SoongNoonien/mpdevil")
|
self.set_website("https://github.com/SoongNoonien/mpdevil")
|
||||||
self.set_copyright("\xa9 2020 Martin Wagner")
|
self.set_copyright("\xa9 2020 Martin Wagner")
|
||||||
self.set_logo_icon_name(PACKAGE)
|
self.set_logo_icon_name("mpdevil")
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# main window #
|
# main window #
|
||||||
|
|||||||
3
mpdevil/__init__.py
Normal file
3
mpdevil/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
__version__='0.8.5'
|
||||||
|
|
||||||
4
setup.py
4
setup.py
@@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import DistUtilsExtra.auto
|
import DistUtilsExtra.auto
|
||||||
|
import mpdevil
|
||||||
|
|
||||||
DistUtilsExtra.auto.setup(
|
DistUtilsExtra.auto.setup(
|
||||||
name='mpdevil',
|
name='mpdevil',
|
||||||
version='0.8.5',
|
version=mpdevil.__version__,
|
||||||
author="Martin Wagner",
|
author="Martin Wagner",
|
||||||
author_email="martin.wagner.dev@gmail.com",
|
author_email="martin.wagner.dev@gmail.com",
|
||||||
description=('A small MPD client written in python'),
|
description=('A small MPD client written in python'),
|
||||||
|
|||||||
Reference in New Issue
Block a user