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:
parent
86dd6b4d4e
commit
5c0c3c2434
@ -60,7 +60,6 @@ Python modules:
|
||||
- requests
|
||||
- bs4 (beautifulsoup)
|
||||
- dbus
|
||||
- pkg_resources (setuptools)
|
||||
|
||||
Run:
|
||||
```bash
|
||||
|
11
bin/mpdevil
11
bin/mpdevil
@ -34,16 +34,13 @@ import datetime
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import pkg_resources
|
||||
import mpdevil # only used to get version
|
||||
|
||||
# MPRIS modules
|
||||
import dbus
|
||||
import dbus.service
|
||||
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)$"
|
||||
|
||||
|
||||
@ -3255,13 +3252,13 @@ class ServerStats(Gtk.Dialog):
|
||||
class AboutDialog(Gtk.AboutDialog):
|
||||
def __init__(self, window):
|
||||
super().__init__(transient_for=window, modal=True)
|
||||
self.set_program_name(NAME)
|
||||
self.set_version(VERSION)
|
||||
self.set_program_name("mpdevil")
|
||||
self.set_version(mpdevil.__version__)
|
||||
self.set_comments(_("A small MPD client written in python"))
|
||||
self.set_authors(["Martin Wagner"])
|
||||
self.set_website("https://github.com/SoongNoonien/mpdevil")
|
||||
self.set_copyright("\xa9 2020 Martin Wagner")
|
||||
self.set_logo_icon_name(PACKAGE)
|
||||
self.set_logo_icon_name("mpdevil")
|
||||
|
||||
###############
|
||||
# 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
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import DistUtilsExtra.auto
|
||||
import mpdevil
|
||||
|
||||
DistUtilsExtra.auto.setup(
|
||||
name='mpdevil',
|
||||
version='0.8.5',
|
||||
version=mpdevil.__version__,
|
||||
author="Martin Wagner",
|
||||
author_email="martin.wagner.dev@gmail.com",
|
||||
description=('A small MPD client written in python'),
|
||||
|
Loading…
Reference in New Issue
Block a user