From 5916e504951a4f7919860220443a2408de15615e Mon Sep 17 00:00:00 2001 From: Maciej Banakiewicz Date: Thu, 28 Sep 2023 10:59:10 +0200 Subject: [PATCH 1/3] Two issues fixed: 1. Warning messages in the command line about unclosed files 2. Default values of keyword arguments (mostly booleans) are not processed correctly, e.g. ${True} is recognized as a string, not a boolean --- RobotDebug/RobotDebug.py | 3 ++- RobotDebug/robotlib.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RobotDebug/RobotDebug.py b/RobotDebug/RobotDebug.py index 330dd85..5b04dc3 100644 --- a/RobotDebug/RobotDebug.py +++ b/RobotDebug/RobotDebug.py @@ -44,7 +44,8 @@ def start_keyword(self, name, attrs): path = attrs["source"] if path and Path(path).exists() and path not in self.source_files: - self.source_files[path] = Path(path).open().readlines() + with open(Path(path)) as f: + self.source_files[path] = f.readlines() lineno = attrs["lineno"] self.library.current_source_path = path self.library.current_source_line = lineno diff --git a/RobotDebug/robotlib.py b/RobotDebug/robotlib.py index c0f687d..5d8e38b 100644 --- a/RobotDebug/robotlib.py +++ b/RobotDebug/robotlib.py @@ -44,7 +44,7 @@ def build(self, resource): type="RESOURCE", scope="GLOBAL", ) - libdoc.keywords = KeywordDocBuilder().build_keywords(resource) + libdoc.keywords = KeywordDocBuilder(resource=True).build_keywords(resource) return libdoc From e4aace5ca292f01ec70fa1e23918de10f420641b Mon Sep 17 00:00:00 2001 From: Maciej Banakiewicz Date: Fri, 29 Sep 2023 11:13:49 +0200 Subject: [PATCH 2/3] package release prep --- CreateWheel.sh | 2 +- RobotDebug/version.py | 2 +- setup.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CreateWheel.sh b/CreateWheel.sh index 1f9dfb3..09dfbd9 100644 --- a/CreateWheel.sh +++ b/CreateWheel.sh @@ -3,4 +3,4 @@ rm -f dist/*.* python setup.py bdist_wheel sdist twine check dist/* python setup.py check -r -s -twine upload dist/* \ No newline at end of file +#twine upload dist/* \ No newline at end of file diff --git a/RobotDebug/version.py b/RobotDebug/version.py index ecd88b4..3277f64 100644 --- a/RobotDebug/version.py +++ b/RobotDebug/version.py @@ -1 +1 @@ -VERSION = "4.3.4" +VERSION = "1.0.0" diff --git a/setup.py b/setup.py index a38491b..3a6ec39 100755 --- a/setup.py +++ b/setup.py @@ -23,12 +23,12 @@ def find_version(*file_paths): setup( - name="robotframework-debug", + name="robotframework-debug-dk", version=find_version("RobotDebug/version.py"), - description="RobotFramework debug shell", + description="RobotFramework debug shell originally implemented by René Rohner and modified by Maciej Banakiewicz", long_description=read("README.rst"), long_description_content_type=("text/x-rst"), - author="René Rohner", + author="René Rohner (modified by Maciej Banakiewicz)", author_email="snooz@postoe.de", license="New BSD", packages=["RobotDebug"], @@ -39,7 +39,7 @@ def find_version(*file_paths): ], }, zip_safe=False, - url="https://github.com/imbus/robotframework-debug/", + url="https://github.com/maciejbanakiewicz93/robotframework-debug/", keywords="robotframework,debug,shell,repl", install_requires=[ "prompt-toolkit >= 3.0.38", From c777fabaf74938bde5fbae6a0c18d97179f9215d Mon Sep 17 00:00:00 2001 From: Maciej Banakiewicz Date: Tue, 3 Oct 2023 16:03:34 +0200 Subject: [PATCH 3/3] Revert "package release prep" This reverts commit e4aace5ca292f01ec70fa1e23918de10f420641b. --- CreateWheel.sh | 2 +- RobotDebug/version.py | 2 +- setup.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CreateWheel.sh b/CreateWheel.sh index 09dfbd9..1f9dfb3 100644 --- a/CreateWheel.sh +++ b/CreateWheel.sh @@ -3,4 +3,4 @@ rm -f dist/*.* python setup.py bdist_wheel sdist twine check dist/* python setup.py check -r -s -#twine upload dist/* \ No newline at end of file +twine upload dist/* \ No newline at end of file diff --git a/RobotDebug/version.py b/RobotDebug/version.py index 3277f64..ecd88b4 100644 --- a/RobotDebug/version.py +++ b/RobotDebug/version.py @@ -1 +1 @@ -VERSION = "1.0.0" +VERSION = "4.3.4" diff --git a/setup.py b/setup.py index 3a6ec39..a38491b 100755 --- a/setup.py +++ b/setup.py @@ -23,12 +23,12 @@ def find_version(*file_paths): setup( - name="robotframework-debug-dk", + name="robotframework-debug", version=find_version("RobotDebug/version.py"), - description="RobotFramework debug shell originally implemented by René Rohner and modified by Maciej Banakiewicz", + description="RobotFramework debug shell", long_description=read("README.rst"), long_description_content_type=("text/x-rst"), - author="René Rohner (modified by Maciej Banakiewicz)", + author="René Rohner", author_email="snooz@postoe.de", license="New BSD", packages=["RobotDebug"], @@ -39,7 +39,7 @@ def find_version(*file_paths): ], }, zip_safe=False, - url="https://github.com/maciejbanakiewicz93/robotframework-debug/", + url="https://github.com/imbus/robotframework-debug/", keywords="robotframework,debug,shell,repl", install_requires=[ "prompt-toolkit >= 3.0.38",