Skip to content

Comments

Fix #3285#124

Merged
sdispater merged 2 commits intopython-poetry:masterfrom
cognitedata:fix-3285
Jan 29, 2021
Merged

Fix #3285#124
sdispater merged 2 commits intopython-poetry:masterfrom
cognitedata:fix-3285

Conversation

@audunska
Copy link
Contributor

Resolves: python-poetry#3285

  • Added tests for changed code.
  • Updated documentation for changed code.

Fix python-poetry#3285 by removing explicitly included files from the set in poetry.core.masonry.builders.builder.Builder.find_excluded_files. If files are both included and excluded, they are usually excluded because of vcs, so it makes sense to override by explicitly including.

Added a test for this case.

Paths for generated code that's excluded by vcs, but then included
explicitly, were wrong because they appared in the exclude list during
Builder.find_excluded_files(). I changed find_excluded_files to not
exclude files which are explicitly included, by taking a set difference.

Added a test for this case.
Copy link
Member

@sdispater sdispater 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 to me 👍

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.

2 participants