Skip to content

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

Description

@ClementPinard

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions