Skip to main content

Detect dependencies necessary to build a project

Project description

Python PyPI version License


Tool to analyse a project for packages necessary to build it.


pip install dependency-detector


Specify a directory containing a project. This will output the commands necessary to install build dependencies on a Ubuntu 20.04 environment:

$ dependency-detector tests/python37-from-pipfile 
add-apt-repository ppa:deadsnakes/ppa; apt update; apt install python3.7

$ dependency-detector tests/java8-and-maven      
apt install openjdk-8-jdk-headless; apt install maven


  1. Create a new virtual environment.
  2. Install dependencies: pip install --upgrade -e '.[dev]'
  3. Install pyright.
  4. Run python test to test.
  5. Run pip install dependency-detector to install the command-line tool


  1. Bump the version in Commit and push.
  2. Run python test and python dist to check that everything works.
  3. To build and upload the package, run python upload. Insert PyPI credentials to upload the package to PyPI. The command will also run git tag to tag the commit as a release and push the tags to remote.

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

dependency-detector-0.7.0.tar.gz (5.1 kB view hashes)

Uploaded source

Built Distribution

dependency_detector-0.7.0-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page