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

py-findpython: new port #27690

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

py-findpython: new port #27690

wants to merge 1 commit into from

Conversation

dgilman
Copy link
Contributor

@dgilman dgilman commented Feb 17, 2025

Description

New dependency for poetry

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 14.6.1 23G93 x86_64
Xcode 16.2 16C5032a

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

# borrowed from https://trac.macports.org/ticket/72050
if {${name} ne ${subport}} {
if {${python.version} eq 39} {
build.args --skip-dependency-check
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was hitting the same dependency issue with pdm as seen in that ticket. You can also see it in the GH actions logs for the first commits I pushed to this PR, e.g. https://github.com/macports/macports-ports/actions/runs/13361861384/job/37312763006

It is only on python 3.9. I would drop 3.9 as a subport but poetry still will want it.

Copy link
Contributor

Choose a reason for hiding this comment

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

looks like you're missing a dependency on py-packaging. Not sure where the message about missing pdm-backend and importlib-metadata originate from but just skipping the dependency check doesn't seem like a good idea....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Take a look at the GH action output under "Installing dependencies for py39-findpython", you can see it is installing py-packaging. I was able to reproduce this locally too, where I could confirm that py39-packaging was installed but it would still fail with that error.

Copy link
Contributor

Choose a reason for hiding this comment

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

you are not declaring a dependency on py-packaging, so it can't/shouldn't be installing that. I am not sure what the pdm backend is doing with the pdm.lock file - perhaps it's getting dependencies from there. But either way, this isn't correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll do a push with suggested fixes and we'll see if it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants