Skip to content

Commit

Permalink
convert: Remove old changelog code.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Jul 29, 2024
1 parent 0e6fe2d commit 3f32291
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 77 deletions.
1 change: 0 additions & 1 deletion openage/convert/service/init/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
add_py_modules(
__init__.py
api_export_required.py
changelog.py
conversion_required.py
modpack_search.py
mount_asset_dirs.py
Expand Down
2 changes: 1 addition & 1 deletion openage/convert/service/init/api_export_required.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def api_export_required(asset_dir: UnionPath) -> bool:
"""
Returns true if the openage nyan API modpack cannot be found.
Returns true if the openage nyan API modpack cannot be found or is outdated.
TODO: Remove once the API modpack is generated by default.
Expand Down
69 changes: 0 additions & 69 deletions openage/convert/service/init/changelog.py

This file was deleted.

10 changes: 5 additions & 5 deletions openage/convert/tool/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from ..service.debug_info import debug_gamedata_format
from ..service.debug_info import debug_string_resources, \
debug_registered_graphics, debug_modpack, debug_execution_time
from ..service.init.changelog import (ASSET_VERSION)
from ..service.read.gamedata import get_gamespec
from ..service.read.palette import get_palettes
from ..service.read.register_media import get_existing_graphics
Expand All @@ -40,8 +39,6 @@ def convert(args: Namespace) -> None:
# clean args (set by convert_metadata for convert_media)
del args.palettes

info(f"asset conversion complete; asset version: {ASSET_VERSION}", )


def convert_metadata(args: Namespace) -> None:
"""
Expand Down Expand Up @@ -105,8 +102,11 @@ def convert_metadata(args: Namespace) -> None:
ModpackExporter.export(modpack, args)
debug_modpack(args.debugdir, args.debug_info, modpack)

export_end = timeit.default_timer()
info("Finished modpack export (%.2f seconds)", export_end - export_start)
export_end = timeit.default_timer()
info("Finished export of modpack '%s' v%s (%.2f seconds)",
modpack.info.packagename,
modpack.info.version,
export_end - export_start)

stages_time = {
"read": read_end - read_start,
Expand Down
1 change: 0 additions & 1 deletion openage/testing/testlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def tests_py():
yield "openage.assets.test"
yield ("openage.cabextract.test.test", "test CAB archive extraction",
lambda env: env["has_assets"])
yield "openage.convert.service.init.changelog.test"
yield "openage.cppinterface.exctranslate_tests.cpp_to_py"
yield ("openage.cppinterface.exctranslate_tests.cpp_to_py_bounce",
"translates the exception back and forth a few times")
Expand Down

0 comments on commit 3f32291

Please sign in to comment.