dependency-detector

Detect dependencies necessary to build a project


Keywords
apt, build, python, ubuntu
License
MIT
Install
pip install dependency-detector==0.7.0

Documentation

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
apt-get -q -y install software-properties-common; add-apt-repository ppa:deadsnakes/ppa; apt-get -q update; apt-get -q -y install python3.7

$ dependency-detector tests/java8-and-maven
apt-get -q -y install openjdk-8-jdk-headless; apt-get -q -y 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.