Skip to main content

Detect dependencies necessary to build a project

Project description

Python PyPI version License

dependency-detector

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

Installation

pip install dependency-detector

Usage

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

Development

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

Publishing

  1. Bump the version in setup.py. Commit and push.
  2. Run python setup.py test and python setup.py dist to check that everything works.
  3. To build and upload the package, run python setup.py 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.

Files for dependency-detector, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size dependency_detector-0.7.0-py2.py3-none-any.whl (6.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dependency-detector-0.7.0.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page