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

Prevent the tests/migrations directory from getting packaged #1118

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

brianhelba
Copy link
Contributor

@brianhelba brianhelba commented Feb 16, 2022

Simply excluding tests is not enough to prevent subpackages from also being excluded. If a wildcard is provided to find_packages(exclude=, it will only match a single hierarchy level.

Without this, a directory site-packages/tests/migrations gets created upon package install.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@brianhelba brianhelba requested a review from n2ygk February 16, 2022 06:15
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #1118 (3871085) into master (492a867) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1118   +/-   ##
=======================================
  Coverage   96.62%   96.62%           
=======================================
  Files          32       32           
  Lines        1806     1806           
=======================================
  Hits         1745     1745           
  Misses         61       61           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 492a867...3871085. Read the comment docs.

@n2ygk n2ygk added this to the 2.0.0 milestone Feb 16, 2022
n2ygk
n2ygk previously requested changes Feb 16, 2022
Copy link
Member

@n2ygk n2ygk left a comment

Choose a reason for hiding this comment

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

Thanks for this! No need for the CHANGELOG update.

CHANGELOG.md Outdated Show resolved Hide resolved
Simply excluding "tests" is not enough to prevent subpackages from also being
excluded. If a wildcard is provided to "find_packages(exclude=", it will only
match a single hierarchy level.

Without this, a directory "site-packages/tests/migrations" gets created upon
package install.
@n2ygk n2ygk merged commit 769c8e7 into jazzband:master Feb 16, 2022
@brianhelba brianhelba deleted the exclude-tests branch February 16, 2022 19:59
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