Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Get rid of pkg_resources#8480

Merged
kmaehashi merged 8 commits into
cupy:mainfrom
EarlMilktea:no-more-pkg-resources
Aug 15, 2024
Merged

Get rid of pkg_resources#8480
kmaehashi merged 8 commits into
cupy:mainfrom
EarlMilktea:no-more-pkg-resources

Conversation

@EarlMilktea

@EarlMilktea EarlMilktea commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

Resolves #8479 and #7654.

@jakirkham

Copy link
Copy Markdown
Member

/test mini

Comment thread cupy/testing/_helper.py Outdated
@kmaehashi kmaehashi self-assigned this Aug 13, 2024
@jakirkham

Copy link
Copy Markdown
Member

Could you please add issue ( #7654 ) to the fixed issues in the top-level post of this PR?

@jakirkham jakirkham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps something like this would work?

Comment thread cupy/testing/_helper.py Outdated
Comment thread cupy/testing/_helper.py
Comment thread setup.py
@kmaehashi kmaehashi linked an issue Aug 13, 2024 that may be closed by this pull request
@EarlMilktea EarlMilktea force-pushed the no-more-pkg-resources branch from f06b34e to 429af64 Compare August 13, 2024 11:14
@jakirkham

Copy link
Copy Markdown
Member

/test mini

@EarlMilktea EarlMilktea marked this pull request as ready for review August 13, 2024 11:26
@jakirkham

Copy link
Copy Markdown
Member

Sorry was bit by a pkg_resources issue recently. So am eager to help move this fix forward 😅

@jakirkham

Copy link
Copy Markdown
Member

Seeing a few errors on CI

/opt/pyenv/versions/3.11.0/lib/python3.11/importlib/metadata/__init__.py:561: in from_name	
    raise PackageNotFoundError(name)	
E   importlib.metadata.PackageNotFoundError: No package metadata was found for opencv-python
/opt/pyenv/versions/3.11.0/lib/python3.11/importlib/metadata/__init__.py:561: in from_name	
    raise PackageNotFoundError(name)	
E   importlib.metadata.PackageNotFoundError: No package metadata was found for matplotlib

Maybe we need to tweak the logic in the package check somehow?

@EarlMilktea

Copy link
Copy Markdown
Contributor Author

@jakirkham

I submitted a fix in 9efd74d.
Now PackageNotFoundError results in return False instead of abort.

@jakirkham jakirkham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙏

That seems like a good fix

Had a minor suggestion on imports

Comment thread cupy/testing/_helper.py Outdated
Comment thread cupy/testing/_helper.py Outdated
@jakirkham

Copy link
Copy Markdown
Member

/test mini

@jakirkham

Copy link
Copy Markdown
Member

/test mini

@jakirkham

Copy link
Copy Markdown
Member

Thanks for all of your work here! 🙏

Looks like it is now passing 🥳

Let's see what Kenichi thinks 🙂

@kmaehashi

Copy link
Copy Markdown
Member

Thanks @EarlMilktea and @jakirkham, LGTM!

@kmaehashi kmaehashi merged commit c903102 into cupy:main Aug 15, 2024
@kmaehashi kmaehashi added the cat:enhancement Improvements to existing features label Aug 15, 2024
@kmaehashi kmaehashi added to-be-backported Pull-requests to be backported to stable branch prio:high labels Aug 15, 2024
@kmaehashi kmaehashi added this to the v14.0.0a1 milestone Aug 15, 2024
chainer-ci pushed a commit to chainer-ci/cupy that referenced this pull request Aug 15, 2024
@EarlMilktea EarlMilktea deleted the no-more-pkg-resources branch August 15, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:enhancement Improvements to existing features prio:high to-be-backported Pull-requests to be backported to stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get rid of pkg_resources Remove use of pkg_resources

3 participants