Uh oh!
There was an error while loading. Please reload this page.
Updated distutils.Version to packaging.Version - #3897
Conversation
astrojuanlu
commented
Jan 31, 2023
Looks like the CI failures were unrelated, although some time has passed and it would be good to rebase this I think. Any other reason to not merge it? If @hoxbro is not interested in pursuing this, I'll be happy to take over. |
nicolaskruchten
commented
Jan 31, 2023
This seems like an interesting PR but I'd like more information about what problems it solves and what risks it entails... What concrete problems are being experienced with the current code? Is the replacement a well-tested, drop-in replacement for the deprecated one, or are there caveats we need to be aware of and check? Why is the old thing being deprecated in favour of the new thing? |
astrojuanlu
commented
Jan 31, 2023
Long story short, The "Migration Advice" section of PEP 632 lists |
nicolaskruchten
commented
Jan 31, 2023
Thanks for the explanation! So |
nicolaskruchten
commented
Jan 31, 2023
(I believe the build failure is indeed unrelated, or at least can be fixed elsewhere, so the only thing blocking a merge here is my understanding of the change :) |
astrojuanlu
commented
Jan 31, 2023
Funny, They're not the same, but for the purposes that matter to us, they are. |
nicolaskruchten
commented
Jan 31, 2023
Lol! I do wonder if moving to something stricter might not cause some hard to diagnose breaking changes... Maybe migrating to something that claims to be compatible might be a better choice? Something like https://pypi.org/project/looseversion/ ? |
astrojuanlu
commented
Jan 31, 2023
There's a tiny possibility of breaking changes, but for that to happen an invalid version of ipywidgets, matplotlib, or orca should reach the user environment, which is highly unlikely because PyPI disallowed invalid versions a long time ago. On the other hand, in the event of a breaking change, it wouldn't be hard to diagnose at all: a loud I see how adopting Either way, removing the |
nicolaskruchten
commented
Jan 31, 2023
OK. Thanks @astrojuanlu ! |
nicolaskruchten
commented
Jan 31, 2023
And thanks @hoxbro for the PR :) |
nicolaskruchten
commented
Feb 3, 2023
Hehe so I just realized that this PR modified auto-generated code... I'll need to modify the source of that code-gen process for these changes to stick: https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/codegen/__init__.py#L273 |
nicolaskruchten
commented
Feb 25, 2023
@astrojuanlu I didn't check on this earlier but... it seems like |
nicolaskruchten
commented
Feb 25, 2023
Ah it seems like older versions of |
astrojuanlu
commented
Feb 25, 2023
That's right: pypa/packaging#500 I think pip will pick up the right version in this case |
Code PR
plotly.graph_objects, my modifications concern thecodegenfiles and not generated files.modified existing tests.
new tutorial notebook (please see the doc checklist as well).
Fixes#3893