Skip to content

Add support for PyYAML v5 #1 - #3

Merged
pombredanne merged 8 commits into
masterfrom
pyyaml-v5
Mar 31, 2021
Merged

Add support for PyYAML v5 #1#3
pombredanne merged 8 commits into
masterfrom
pyyaml-v5

Conversation

@pombredanne

Copy link
Copy Markdown
Member

Reported-by: Dan Kegel dank@kegel.com
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This avoid dealing with PyYaml referecnes ids and works on 3.x and 5.x

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Appveyor was failng and Travis not enabled.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne

Copy link
Copy Markdown
Member Author

@dankegel ping. Do you mind testing this in your config?

@pombredanne

Copy link
Copy Markdown
Member Author

@dankegel I also tagged and pushed a release 0.4 https://pypi.org/project/saneyaml/0.4/

@dankegel

dankegel commented Apr 10, 2019

Copy link
Copy Markdown

I installed https://launchpad.net/~dank/+archive/ubuntu/python-fixes to work around the nastier problems in the system pip + python ecosystem, then ran 'pip install scancode-toolkit; scancode --version' across my fleet.

I can still see the original problem like this:

$ rm -rf ~/.local
$ pip install scancode-toolkit
$ scancode --version
ScanCode version 3.0.2
$ pip list | grep -i pyyaml
PyYAML (3.13)
$ pip install PyYaml==5.1
$ scancode --version
pluggy.manager.PluginValidationError: Plugin 'json-pp' could not be loaded: (PyYAML 5.1 (/home/buildbot/.local/lib/python2.7/site-packages), Requirement.parse('PyYAML<=3.13,>=3.11'))!

I'm a bit dense, though, since that's probably expected until scancode drops its own strict
PyYAML dependency...

Incidentally, I learned that pip 8.1 at least seems to lie when you ask it to uninstall things; it leaves
behind foo-x.y.dist-info directories that confuse things. So when troubleshooting, rm -rf ~/.local (or, more sanely, mv ~/.local ~/.local.bad) is crucial for figuring out wtf is going on.

@jelmer

jelmer commented Mar 2, 2021

Copy link
Copy Markdown

Any news on this?

@pombredanne

Copy link
Copy Markdown
Member Author

@jelmer let me merge this and push a few new updates. Thanks for the reminder!

@pombredanne
pombredanne merged commit fd19438 into master Mar 31, 2021
@pombredanne
pombredanne deleted the pyyaml-v5 branch March 31, 2021 13:43
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