refactor: update name for v1.0.0

This commit is contained in:
jlw4049 2024-01-24 12:31:46 -05:00
parent 33670e0659
commit 2f4ae6001e
5 changed files with 13 additions and 13 deletions

@ -1,12 +1,12 @@
from pathlib import Path
from argparse import ArgumentParser
from image_generator import GenerateImages
from image_generator.exceptions import ImageGeneratorError
from image_generator.utils import exit_application
from frame_forge import GenerateImages
from frame_forge.exceptions import FrameForgeError
from frame_forge.utils import exit_application
program_name = "Comparison Image Generator"
__version__ = "1.1.0"
program_name = "FrameForge"
__version__ = "1.0.0"
if __name__ == "__main__":
@ -106,5 +106,5 @@ if __name__ == "__main__":
img_gen = img_generator.process_images()
if img_gen:
exit_application(f"Output: {img_gen}", 0)
except ImageGeneratorError as error:
except FrameForgeError as error:
exit_application(error, 1)

@ -6,8 +6,8 @@ from numpy import linspace
from unidecode import unidecode
import awsmfunc
import vapoursynth as vs
from image_generator.exceptions import ImageGeneratorError
from image_generator.utils import get_working_dir, hex_to_bgr
from frame_forge.exceptions import FrameForgeError
from frame_forge.utils import get_working_dir, hex_to_bgr
class GenerateImages:
@ -362,7 +362,7 @@ class GenerateImages:
frame += 1
b_frames[i] = frame
except ValueError:
raise ImageGeneratorError(
raise FrameForgeError(
"Error! Your encode file is likely an incomplete or corrupted encode"
)
@ -579,7 +579,7 @@ class GenerateImages:
def load_plugins(self):
plugin_path = get_working_dir() / "img_plugins"
if not plugin_path.is_dir() and not plugin_path.exists():
raise ImageGeneratorError("Can not detect plugin directory")
raise FrameForgeError("Can not detect plugin directory")
else:
for plugin in plugin_path.glob("*.dll"):
self.core.std.LoadPlugin(Path(plugin).resolve())

@ -1,2 +1,2 @@
class ImageGeneratorError(Exception):
class FrameForgeError(Exception):
"""Handle all exceptions thrown by image generation"""

@ -1,6 +1,6 @@
[tool.poetry]
name = "image-generator"
version = "1.1.0"
name = "frame-forge"
version = "1.0.0"
description = "CLI to offload image generation to"
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
license = "MIT"