-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
setup: Use packaging version <22 #3177
setup: Use packaging version <22 #3177
Conversation
Same locking version is used in requirements. If we do not lock, the 22.0 removed Legacy version, see the error: `ImportError: cannot import name 'LegacyVersion' from 'packaging.version'` Signed-off-by: Martin Kojtal <[email protected]>
@pombredanne Can you review please? |
@0xc0170 Thank you ++ for the PR, we used a different approach to fix this as pinning the |
Reference: #3177 Reference: #3171 Signed-off-by: Philippe Ombredanne <[email protected]>
Reference: #3177 Reference: #3171 Signed-off-by: Philippe Ombredanne <[email protected]>
I am pushing a hotfix in this branch https://github.com/nexB/scancode-toolkit/tree/v31.2.2-branch-hotfix as vv31.2.3 |
Thanks, I'll restart our tests and if there is any issue I'll get back. It should be all good |
* Switch to using packvers fork of packaging * Bump pip requirements parser, but it still using packaging. * Bump dparse2 which is using packvers * Pin SPDX tools for cope with breaking APIs * Update release script to build one release wheel for each Python version that each contain a pickle of the License index * Streamline the app build * Bump version and use correct SPDX version Signed-off-by: Philippe Ombredanne <[email protected]>
* Switch to using packvers fork of packaging * Bump pip requirements parser, but it still using packaging. * Bump dparse2 which is using packvers * Pin SPDX tools for cope with breaking APIs * Update release script to build one release wheel for each Python version that each contain a pickle of the License index * Streamline the app build * Bump version and use correct SPDX version Signed-off-by: Philippe Ombredanne <[email protected]>
Same locking version is used in requirements. If we do not lock, the 22.0 removed Legacy version, the error I am seeing:
ImportError: cannot import name 'LegacyVersion' from 'packaging.version'
I verified packaging version 22.0 what was breaking there, it really removed LegacyVersion, we should lock to < 22.0.
Requirements (txt files in the root) have the version properly locked (using exact 21 version match), not certain why setup config has different version match. I also wonder why this has not been reported so far, have I missed anything?
See ARMmbed/mbed-os#15357 (we got license check job failing since few days ago).
Tasks
Run tests locally to check for errors.