Skip to main content

Checks whether imported packages are available on sys.path

Project description

This package provides a dependencychecker script that checks whether an egg declares all packages it imports in its setup.py.

Usage

dependencychecker <package-spec>

package-spec is a setuptools requirement specifier, for example:

dependencychecker ws.dependencychecker
dependencychecker ws.dependencychecker[test]

Although dependencychecker does not import any files, it needs the package and its dependencies to be on the PYTHONPATH so they are accessible via pkg_resources.working_set.

To use ws.dependencychecker within a buildout, use a snippet like this, for example:

[depcheck]
recipe = zc.recipe.egg
eggs =
    ${test:eggs}
    ws.dependencychecker

Development

The source code is available in the mercurial repository at http://code.wosc.de/hg/public/ws.dependencychecker

Please report any bugs you find to Wolfgang Schnerring.

Todo

  • Support ZCML files

  • stdlib packages for different python versions

  • Allow specifying additional modules per commandline

  • Support zipped eggs (pkg_resources.resource_listdir etc. instead of os.walk)

Changelog

1.0 (2011-12-06)

  • first release.

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

ws.dependencychecker-1.0.tar.gz (7.2 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