Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools/mec] Fix the NOX to use the latest package #14367

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

batcheu
Copy link
Contributor

@batcheu batcheu commented Nov 26, 2024

If there're multiple versions of package in the dist directory, the NOX used the oldest version.
So, it fixes the NOX script to find the latest version even if there're multiple packages.

If there're multiple versions of package in the dist directory,
the NOX used the oldest version. So, it fixes the NOX script to
find the latest version even if there're multiple packages.

ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <[email protected]>
@batcheu
Copy link
Contributor Author

batcheu commented Nov 26, 2024

>>> generated_files
['model_explorer_circle-0.0.1-py3-none-any.whl', 'model_explorer_circle-0.0.1.tar.gz', 
 'model_explorer_circle-0.0.2-py3-none-any.whl', 'model_explorer_circle-0.0.2.tar.gz', 
 'model_explorer_circle-0.1.0-py3-none-any.whl', 'model_explorer_circle-0.1.0.tar.gz']

>>> generated_files.sort(key=lambda x: [int(i, 10) for i in x.split('-')[1].split('.')[:3]], reverse=True)
>>> generated_files
['model_explorer_circle-0.1.0-py3-none-any.whl', 'model_explorer_circle-0.1.0.tar.gz', 
 'model_explorer_circle-0.0.2-py3-none-any.whl', 'model_explorer_circle-0.0.2.tar.gz', 
 'model_explorer_circle-0.0.1-py3-none-any.whl', 'model_explorer_circle-0.0.1.tar.gz']

Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

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

LGTM

@seanshpark seanshpark merged commit fe7b781 into Samsung:master Nov 26, 2024
4 checks passed
@batcheu batcheu deleted the me_adapter/fix_noxfile branch November 27, 2024 00:30
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.

2 participants