Commit 30ddb019 authored by AJ Fite's avatar AJ Fite 🛫

Change versioning strategy

parent ee0d0273
0.0.4-BETA
\ No newline at end of file
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)
#!/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="me@ajfite.com, skipps@calpoly.edu",
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'],
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment