v0.0.4-a2, added __version__ so pypi version is dynamic
This commit is contained in:
parent
ffb9e4b8e0
commit
df21f4e4c0
5 changed files with 12 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 0.0.x
|
## 0.0.x
|
||||||
|
### 0.0.4-a2
|
||||||
|
- Adding __version__ to `__init__.py` so version is automaticly updated in program as well as pypi.
|
||||||
|
|
||||||
### 0.0.4-a1
|
### 0.0.4-a1
|
||||||
- Refactored project structure, moving all code to the `src` directory.
|
- Refactored project structure, moving all code to the `src` directory.
|
||||||
- Adjusted imports and setup to accommodate the new folder structure.
|
- Adjusted imports and setup to accommodate the new folder structure.
|
||||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "OptimaLab35"
|
name = "OptimaLab35"
|
||||||
version = "0.0.4-a1"
|
dynamic = ["version"]
|
||||||
authors = [{ name = "Mr. Finchum" }]
|
authors = [{ name = "Mr. Finchum" }]
|
||||||
description = "User interface for OPTIMA35."
|
description = "User interface for OPTIMA35."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -24,3 +24,6 @@ OptimaLab35 = "OptimaLab35.main:main"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["src/OptimaLab35"]
|
packages = ["src/OptimaLab35"]
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
path = "src/OptimaLab35/__init__.py"
|
||||||
|
|
|
@ -7,6 +7,7 @@ from OptimaLab35.utils.utility import Utilities
|
||||||
from OptimaLab35.ui.main_window import Ui_MainWindow
|
from OptimaLab35.ui.main_window import Ui_MainWindow
|
||||||
from OptimaLab35.ui.exif_handler_window import ExifEditor
|
from OptimaLab35.ui.exif_handler_window import ExifEditor
|
||||||
from OptimaLab35.ui.simple_dialog import SimpleDialog # Import the SimpleDialog class
|
from OptimaLab35.ui.simple_dialog import SimpleDialog # Import the SimpleDialog class
|
||||||
|
from OptimaLab35 import __version__
|
||||||
|
|
||||||
from PySide6 import QtWidgets
|
from PySide6 import QtWidgets
|
||||||
from PySide6.QtWidgets import (
|
from PySide6.QtWidgets import (
|
||||||
|
@ -28,7 +29,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(OptimaLab35, self).__init__()
|
super(OptimaLab35, self).__init__()
|
||||||
self.name = "OptimaLab35"
|
self.name = "OptimaLab35"
|
||||||
self.version = "0.0.4-a1"
|
self.version = __version__
|
||||||
self.ui = Ui_MainWindow()
|
self.ui = Ui_MainWindow()
|
||||||
self.ui.setupUi(self)
|
self.ui.setupUi(self)
|
||||||
self.o = OptimaManager()
|
self.o = OptimaManager()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from OptimaLab35 import gui, tui
|
from OptimaLab35 import gui, tui
|
||||||
|
from OptimaLab35 import __version__
|
||||||
# Mainly from ChatGPT
|
# Mainly from ChatGPT
|
||||||
def check_pyside_installed():
|
def check_pyside_installed():
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -4,11 +4,12 @@ from datetime import datetime
|
||||||
from optima35.core import OptimaManager
|
from optima35.core import OptimaManager
|
||||||
from OptimaLab35.utils.utility import Utilities
|
from OptimaLab35.utils.utility import Utilities
|
||||||
from OptimaLab35.ui.simple_tui import SimpleTUI
|
from OptimaLab35.ui.simple_tui import SimpleTUI
|
||||||
|
from OptimaLab35 import __version__
|
||||||
|
|
||||||
class OptimaLab35_lite():
|
class OptimaLab35_lite():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.name = "OptimaLab35-lite"
|
self.name = "OptimaLab35-lite"
|
||||||
self.version = "0.0.4-a1"
|
self.version = __version__
|
||||||
self.o = OptimaManager()
|
self.o = OptimaManager()
|
||||||
self.u = Utilities()
|
self.u = Utilities()
|
||||||
self.tui = SimpleTUI()
|
self.tui = SimpleTUI()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue