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

Poetry does not build a package succesfully if the project resides within a folder that is ignored by .gitignore. #6028

Closed
3 tasks done
levilime opened this issue Jul 18, 2022 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@levilime
Copy link

levilime commented Jul 18, 2022

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: MacOS Monterey
  • Poetry version: 1.1.8

Issue

When the entire poetry project resides in a folder ignored by .gitignore, in this case tmp, poetry does not add any of the package folder. So given I have folder structure:

.gitignore
tmp
     test_package
          __init__.py
          code.py
     pyproject.toml -> (with the name of the project in the pyproject.toml being `test-package` or `test_package`)

Doing poetry build results in a build artifact that does not contain the test_package folder.

The expected behavior is for the test_package folder to be included, even if it is in tmp (a .gitignored) folder. The reason for building poetry packages in tmp folders is the following: dynamically pushing packages based on generated code.

@levilime levilime added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 18, 2022
@levilime levilime changed the title Poetry does not build a package succesfully if the project resides within a tmp folder. Poetry does not build a package succesfully if the project resides within a folder that is ignored by .gitignore. Jul 18, 2022
@finswimmer
Copy link
Member

Hello @levilime,

this is a duplicate of #5547

fin swimmer

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jul 31, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants