Skip to content

Conversation

@salexspb
Copy link
Contributor

@salexspb salexspb commented Aug 8, 2024

Issue 1:

--target bug, "/main" was hardcoded

Issue 2:

Relative imports are hard to work with. E.g.

~/stack_pr

~/my_repo

In my repo, I can not python -m call into ~/stack_pr, because I can not go up in the directory hierarhy, I think.

So my approach is:

  1. remove relative imports
  2. add src root into PYTHONPATH

then within ~/my_repo I can do

python /home/salex/stack-pr/src/stack_pr/cli.py submit --target my_base

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link
Collaborator

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

Fix for the first part looks good to me, thanks for catching that! I'll defer to @zbowling for the second part of the PR as I'm less familiar with how packaging works

Copy link
Contributor

@zbowling zbowling left a comment

Choose a reason for hiding this comment

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

looks good!

@zbowling zbowling merged commit 495a5f8 into modular:main Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants