Updated distutils.Version to packaging.Version by hoxbro · Pull Request #3897 · plotly/plotly.py · GitHub

github.com

Tin mới

hoxbro:change_version

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Security and quality 0

contributing notes

Updated distutils.Version to packaging.Version

Fix warnings holoviz/holoviews#5470

Resolve deprecation warnings on Kedro CLI kedro-org/kedro#2202

Merge branch 'master' into change_version

python/cpython#99061

Long story short, distutils was deprecated in Python 3.10 https://peps.python.org/pep-0632/ and is slated for removal in Python 3.12 python/cpython#99061

https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/codegen/__init__.py#L273

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/plo

Update codegen with packaging.Version changes #4055

pypa/packaging#500

That's right: pypa/packaging#500 I think pip will pick up the right version in this case

LooseVersion is deprecated, use packaging.version instead

Successfully merging this pull request may close these issues.