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

Bundle fails when calling from another folder than the repo itself #98

Open
ClementPinard opened this issue Apr 8, 2024 · 0 comments
Open

Comments

@ClementPinard
Copy link

ClementPinard commented Apr 8, 2024

Using --directory option should let you run a command as if you were in the repo folder.

This fails and probably shouldn't:

poetry new -n issue_test
poetry bundle venv issue_test_bundle --directory=issue_test

  • Bundling issue-test (0.1.0) into issue_test_bundle: Installing issue-test (0.1.0)

[Errno 2] No such file or directory: '/home/clementpinard/issue_test/issue_test/issue_test/__init__.py'

As you can see, it seems that there is a confusion between directory and file discovery. the bundle plugins probably assumes that issue_test is the library folder while it's the repo folder, which happens to be named the same
As such, the issue_test/issue_test/__init__.py' relative path that gets appended to the given working folder with the --directory option.

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

No branches or pull requests

1 participant