diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..d77e4b0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[bdist_rpm] +release: 1 +requires: python3 python3-urllib3 python3-gobject gtk3 dvdauthor vcdimager python3-setuptools diff --git a/setup.py b/setup.py index 5057ff4..1a08889 100755 --- a/setup.py +++ b/setup.py @@ -52,25 +52,12 @@ def compile_translations(): compile_translations() -current_version = "1.0.0" - -config_data = open("src/devedeng/configuration_data.py","r") -for line in config_data: - line = line.strip() - if (line.startswith("self.version")): - pos = line.find('"') - if pos == -1: - continue - current_version = line[pos+1:-1].replace(" ","").lower().replace("beta",".beta") - break -config_data.close() - #here = os.path.abspath(os.path.dirname(__file__)) setup( name='devedeng', - version=current_version, + version='1.0', description='A video DVD creator', long_description = "A program that allows to create video DVDs", diff --git a/src/devedeng/configuration_data.py b/src/devedeng/configuration_data.py index 385be38..bd9126b 100644 --- a/src/devedeng/configuration_data.py +++ b/src/devedeng/configuration_data.py @@ -19,6 +19,7 @@ from gi.repository import GObject import os +import pkg_resources class configuration(GObject.GObject): @@ -35,7 +36,8 @@ class configuration(GObject.GObject): def __init__(self): GObject.GObject.__init__(self) - self.version = "0.1.0 Beta 12" + self.version = str(pkg_resources.require("devedeng")[0].version) + print("Version: "+self.version) def fill_config(self): diff --git a/stdeb.cfg b/stdeb.cfg index bc141fb..052d392 100644 --- a/stdeb.cfg +++ b/stdeb.cfg @@ -1,2 +1,2 @@ [DEFAULT] -Depends = python3, python-support, python-urllib3, python-gi, libgtk-3-0 (>=2.16.0), ffmpeg (>= 7:1.2.6) | libav-tools(>= 6:9.16), mplayer, mpv | vlc, dvdauthor, mkisofs | genisoimage, vcdimager, libvorbis0a, libvorbisfile3 +Depends = python3, python-support, python3-urllib3, python3-gi, libgtk-3-0 (>=2.16.0), ffmpeg (>= 7:1.2.6) | libav-tools(>= 6:9.16), mplayer, mpv | vlc, dvdauthor, mkisofs | genisoimage, vcdimager, libvorbis0a, libvorbisfile3, python3-pkg-resources