Unverified Commit 30ddb019 authored by AJ Fite's avatar AJ Fite 🚀
Browse files

Change versioning strategy

parent ee0d0273
Loading
Loading
Loading
Loading

SimfPythonGUI/VERSION

0 → 100644
+1 −0
Original line number Diff line number Diff line
0.0.4-BETA
 No newline at end of file
+4 −5
Original line number Diff line number Diff line
from PyQt5 import uic
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog
import pkg_resources
import os


class AboutDialog(QDialog):
    def __init__(self):
        super().__init__(flags=Qt.WindowStaysOnTopHint)
        version_file = open(os.path.join('.', 'VERSION'))
        version = version_file.read().strip()
        uic.loadUi('AboutDialog.ui', self)
        self.show()
        self.versionLabel.setText(
            "Version: " +
            pkg_resources.get_distribution('SimfPythonGUI').version)
        print(str(pkg_resources.get_distribution('SimfPythonGUI').version))
        self.versionLabel.setText("Version: " + version)
+6 −2
Original line number Diff line number Diff line
#!/usr/bin/env python

import setuptools
import os

with open("README.md", "r") as fh:
    long_description = fh.read()

version_file = open(os.path.join('SimfPythonGUI', 'VERSION'))
version = version_file.read().strip()

setuptools.setup(
    name="SimfPythonGUI",
    version="0.0.5",
    version=version,
    author="A.J. Fite, Sara Kipps",
    author_email="[email protected], [email protected]",
    description="A GUI controller for the closed source SIMF camera capture utility",
@@ -15,7 +19,7 @@ setuptools.setup(
    long_description_content_type="text/markdown",
    url="https://git.nclf.net/SIMF/simf-python-gui",
    packages=setuptools.find_packages(),
    package_data={'SimfPythonGUI': ['*.ui']},
    package_data={'SimfPythonGUI': ['*.ui', 'VERSION']},
    entry_points={
        'gui_scripts': ['simfgui = SimfPythonGUI.guientry:main'],
    },