Skip to content

Conversation

@KazuCocoa
Copy link
Member

uv version can be used to manage versions. The getting version code has references, so this PR keeps the version file to return importlib.metadata.version('Appium-Python-Client'). It is available since Python v3.8, and we require Python v3.9+ so should be ok.

current = io.open(os.path.join(os.path.dirname('__file__'), 'appium', 'version.py'), encoding='utf-8').read().rstrip()
print('The current version is {}, type a new one'.format(MESSAGE_YELLOW.format(current)))
return current
os.system('uv version')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method does not return anything, but looks like it should

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original one was also to print the version in the stdout, so return value is not matter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then the method name is confusing as get prefix implicitly assumes it must return something

@KazuCocoa
Copy link
Member Author

KazuCocoa commented Aug 7, 2025

-> I think we can use #1161 after initial release with uv to check the metadata to drop existing release.sh stuff. Haven't checked well yet but I expect this is similar to JS's one. Then this can also be released via CI.

@KazuCocoa KazuCocoa merged commit ee8af97 into master Aug 7, 2025
12 checks passed
@KazuCocoa KazuCocoa deleted the uv-version branch August 7, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants