From 9b0766aec9d89d56a1cc036bcec5180cd0fe0b04 Mon Sep 17 00:00:00 2001 From: "Andreas H. Kelch" Date: Fri, 23 Sep 2022 06:25:54 +0200 Subject: [PATCH] fix: viur 2-to-3 script --- CHANGELOG.md | 3 +++ pyproject.toml | 4 ++-- setup.cfg | 2 +- src/viur_cli/scripts/{viur-2to3.py => viur_2to3.py} | 5 ++++- src/viur_cli/version.py | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) rename src/viur_cli/scripts/{viur-2to3.py => viur_2to3.py} (99%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63758b0..bba8358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog This file documents any relevant changes. +## [0.7.4] - 2022-09-23 +- fix: 2-to-3 script was broken + ## [0.7.3] - 2022-09-16 - feat: added 2-to-3 script - fix: proejctname enforces lowercase diff --git a/pyproject.toml b/pyproject.toml index b5a3c46..7b305f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools>=42", + "setuptools>=65", "wheel" ] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index e3cac15..eca57f5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,6 @@ where = src [options.entry_points] console_scripts = viur = viur_cli:cli - viur-2to3 = viur_cli.scripts.viur-2to3:main + viur-2to3 = viur_cli.scripts.viur_2to3:main flare = viur_cli.scripts.flare:main get-pyodide = viur_cli.scripts.get_pyodide:main diff --git a/src/viur_cli/scripts/viur-2to3.py b/src/viur_cli/scripts/viur_2to3.py similarity index 99% rename from src/viur_cli/scripts/viur-2to3.py rename to src/viur_cli/scripts/viur_2to3.py index 6c6b579..2ff3680 100644 --- a/src/viur_cli/scripts/viur-2to3.py +++ b/src/viur_cli/scripts/viur_2to3.py @@ -48,7 +48,7 @@ f"{name}Bone": f"{name[0].upper()}{name[1:]}Bone" for name in bones }) -if __name__ == "__main__": +def main(): # Get arguments ap = argparse.ArgumentParser( description="ViUR2-to-ViUR3 porting tool" @@ -116,3 +116,6 @@ ) ) ) + +if __name__ == "__main__": + main() diff --git a/src/viur_cli/version.py b/src/viur_cli/version.py index 4910b9e..ed9d4d8 100644 --- a/src/viur_cli/version.py +++ b/src/viur_cli/version.py @@ -1 +1 @@ -__version__ = "0.7.3" +__version__ = "0.7.4"