removed 'setuptools' dependency

This commit is contained in:
Martin Wagner 2020-09-03 12:18:18 +02:00
parent 86dd6b4d4e
commit 5c0c3c2434
4 changed files with 9 additions and 10 deletions

View File

@ -60,7 +60,6 @@ Python modules:
- requests
- bs4 (beautifulsoup)
- dbus
- pkg_resources (setuptools)
Run:
```bash

View File

@ -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
View File

@ -0,0 +1,3 @@
#!/usr/bin/python3
__version__='0.8.5'

View File

@ -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'),