Skip to content

Conversation

@Shahzaibahmad97
Copy link

@Shahzaibahmad97 Shahzaibahmad97 commented Oct 30, 2025

This PR is to resolve the issue of pyminizip compilation error on Mac M series machines using python 3.11. Detail of the issue is attached here: Compilation Error with Pyminizip

As pyminizip was only used in one function and there is a python default package called zipfile, which also provides the same functionality, we can resolve this issue by replacing the pyminizip package with zipfile, which will also reduce external dependency.

@Shahzaibahmad97 Shahzaibahmad97 self-assigned this Oct 30, 2025
Copy link

@weilu weilu left a comment

Choose a reason for hiding this comment

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

LGTM

)
with zipfile.ZipFile(zip_file.name, 'w', zipfile.ZIP_DEFLATED) as zf:
zf.setpassword(bytes(ToolsConfig.get_master_data_password(), 'utf-8'))
zf.write(master_data_file_path, os.path.basename(master_data_file_path))
Copy link

Choose a reason for hiding this comment

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

Would be good to add a unit test to cover this.

@Shahzaibahmad97 Shahzaibahmad97 marked this pull request as draft December 10, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants