microsoftgraph / microsoftgraph/msgraph-beta-sdk-python

exclude extraneous files from package

Open
#600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug type:bug
Dominant language
Python
Stars
44
Forks
16
Avg merge
20h 39m
Merged PRs (30d)
3

Description

similar to https://github.com/microsoftgraph/msgraph-sdk-python-core/pull/709 those extra files slow down the installation, and can pose security issues like this https://github.com/microsoftgraph/msgraph-sdk-php-core/security/advisories/GHSA-mhhp-c3cm-2r86
directories to be excluded:

  • .github
  • docs
    files to be excluded:
  • .gitignore
  • .release-please-manifest
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • release-please-config
  • UPGRADING.md

to test simply run python -m build locally, and check what's in the archive under dist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run python -m build locally and inspect the archive under dist to see which listed directories and files are included. Find the package-build configuration that controls archive contents, exclude the named paths, and rerun the build to confirm they are absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.