Skip to main content

Inspect Python package distributions and raise warnings on common problems.

Project description

pydistcheck

GitHub Actions

Warning

This project is very-very-very new and will change significantly. The next time you look at this repo, this might not even be written in the same programming language. If I was you, I wouldn't use it.

Analyzes the contents of a Python package and warns about common issues, like:

  • inclusion of unnecessary files
  • use of multiple file extensions with the same meaning

Minimal Example

Get information about the files associated with the most recent release of a package to PyPI.

make full-run \
    -e PACKAGE_NAME=lightgbm

or, using the CLI

make build install

pydistcheck summarize \
  --file dist/pydistcheck*.tar.gz \
  --output-file "$(pwd)/sizes.csv"

Questions to be answered?

  • what are the n largest files in this artifact?
  • what is the total size (compressed and uncompressed) of this artifact?
  • what file types (by extension) exist in this artifact? how much space do they take up?

Ideas for a file content linter:

  • mixes of extensions for the same file type (e.g. .yaml and .yml)
  • file types not expected to be found in a Python package
  • executable files
  • a directory called "tests/"

Related Projects

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydistcheck-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page