Skip to content
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

__package_pip: Fall back to __object_id if the package name can't be deduced from --requirement #46

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sideeffect42
Copy link
Member

This PR should fix #45.

Please test.

@sideeffect42 sideeffect42 requested a review from 4nd3r April 28, 2022 11:19
@sideeffect42 sideeffect42 marked this pull request as draft April 28, 2022 11:19
@4nd3r
Copy link
Member

4nd3r commented May 2, 2022

__package_pip mkosi --requirement mkosi@git+https://github.com/systemd/mkosi.git seems to be working, at least for me. Now we need to fix documentation too. I'll add suggestions as inline comments.

package manager.
Furthermore, if a URL does not start with ``[packagename]@``, the type will fall
back to assume the ``__object_id`` contains the package name what would be
installed by the given ``--requirement``.
Copy link
Member

Choose a reason for hiding this comment

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

let's move this section to requirement parameter section?


def check_requirement(r):
try:
pkg_resources.require(requirement)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to self: incorrect variable name.

@4nd3r 4nd3r force-pushed the main branch 3 times, most recently from 88ec47e to 5425f2a Compare May 2, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

__package_pip: explorer/state breaks when --requirement is not package name
2 participants