Skip to content

chore: Ignore examples directory for dist #6314#6315

Merged
oz123 merged 1 commit intopypa:mainfrom
shaneikennedy:ignore-example-on-build
Dec 11, 2024
Merged

chore: Ignore examples directory for dist #6314#6315
oz123 merged 1 commit intopypa:mainfrom
shaneikennedy:ignore-example-on-build

Conversation

@shaneikennedy
Copy link
Copy Markdown
Contributor

@shaneikennedy shaneikennedy commented Nov 18, 2024

fixes #6314

The issue

When you install pipenv you are getting the examples/ directory in this project which includes a Pipfile and it's lock file, and some security scanners will start reporting the packages declared in these as vulnerabilities (even thought the packages only get installed if you pipenv sync).

The fix

Update the MANIFEST to exclude the examples directory

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@oz123 oz123 merged commit c4c1f76 into pypa:main Dec 11, 2024
matteius added a commit that referenced this pull request Dec 15, 2025
Fixes #5937

The docs/ directory was being installed to site-packages root instead of
being excluded from the package distribution. This could cause conflicts
with other packages that have a docs/ directory (similar to the previously
fixed examples/ directory issue in #6315).

Added 'docs*' and 'docs.*' to the exclude pattern in
[tool.setuptools.packages.find] to prevent the documentation files from
being included in the wheel distribution.
matteius added a commit that referenced this pull request Dec 16, 2025
Fixes #5937

The docs/ directory was being installed to site-packages root instead of
being excluded from the package distribution. This could cause conflicts
with other packages that have a docs/ directory (similar to the previously
fixed examples/ directory issue in #6315).

Added 'docs*' and 'docs.*' to the exclude pattern in
[tool.setuptools.packages.find] to prevent the documentation files from
being included in the wheel distribution.
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.

Exclude examples from the dist

2 participants