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
- Create a new virtual environment.
- Install dependencies:
pip install --upgrade -e '.[dev]'
- Install pyright.
- Run
python setup.py test
to test. - Run
pip install dependency-detector
to install the command-line tool
Publishing
- Bump the version in setup.py. Commit and push.
- Run
python setup.py test
andpython setup.py dist
to check that everything works. - To build and upload the package, run
python setup.py upload
. Insert PyPI credentials to upload the package toPyPI
. The command will also rungit tag
to tag the commit as a release and push the tags to remote.