-
-
Couldn't load subscription status.
- Fork 613
packagedcode: replace unmaintained toml with tomllib/tomli #4532
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
Conversation
toml has been unmaintained for years and was superseded by tomli on PyPI which was eventually added to the stdlib as tomllib in Python 3.11. Signed-off-by: Maxwell G <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gotmax23 Thanks++ for bringing this up and adding a PR.
Everything looks good to me, just one update required:
- Also update the requirements file similarly: https://github.com/aboutcode-org/scancode-toolkit/blob/develop/requirements.txt#L72, this is used for release archives and local development installations.
Is there a command to update them? Usually, they'd be be generated by |
|
I will link here the Fedora Change page that contains more info about deprecation of toml and availability of tomli in older systems https://fedoraproject.org/wiki/Changes/DeprecatePythonToml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Updates setup-mini.cfg and various requirement files to use the intended version of tomli for various installation methods. Reference: #4532 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
a372ce2
into
aboutcode-org:develop
|
Thanks++ @gotmax23 @xsuchy , this is merged with some minor updates at #4594
You can run https://github.com/aboutcode-org/scancode-toolkit/blob/develop/etc/scripts/gen_requirements.py to update a requirements file (from a vritualenv, after doing a configure and Note that we also have to use https://github.com/aboutcode-org/scancode-toolkit/blob/develop/etc/scripts/fetch_thirdparty.py and update https://github.com/aboutcode-org/thirdparty-packages before we release so we have the wheels/sources and .ABOUT files used to create the release archive apps. |
toml has been unmaintained for years and was superseded by tomli on PyPI which was eventually added to the stdlib as tomllib in Python 3.11.
Tasks
Run tests locally to check for errors.