fixed version handling

This commit is contained in:
Martin Wagner 2020-09-03 12:36:35 +02:00
parent 5c0c3c2434
commit 6029c6849c
3 changed files with 3 additions and 7 deletions

View File

@ -34,13 +34,13 @@ import datetime
import os import os
import sys import sys
import re import re
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
VERSION='0.8.5' # sync with setup.py
COVER_REGEX="^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$" COVER_REGEX="^\.?(album|cover|folder|front).*\.(gif|jpeg|jpg|png)$"
@ -3253,7 +3253,7 @@ 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("mpdevil") self.set_program_name("mpdevil")
self.set_version(mpdevil.__version__) self.set_version(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")

View File

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

View File

@ -1,11 +1,10 @@
#!/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=mpdevil.__version__, version='0.8.5', # sync with bin/mpdevil
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'),