Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 881 Bytes

deploying.md

File metadata and controls

33 lines (25 loc) · 881 Bytes

Deploy CellPhoneDB

Based on the python official documentation for packaging python products

Run CellPhoneDB from local package

Enables to run cellphonedb command from local source code.

# Create and mount new environment
python3 -m venv cpdb-venv
source cpdb-venv/bin/activate

# Install cellphonedb package from local source
pip install --editable .

Deploy a new version of CellPhoneDB

Update the CellPhoneDB version editing version line in setup.py.

Make sure you have the latest versions of setuptools and wheel installed:

python -m pip install --user --upgrade setuptools wheel 

Create new package

python setup.py sdist bdist_wheel

This will create a CellPhoneDB package ready to be distributed in the dist folder, i.e.

dist/CellPhoneDB-0.0.5.tar.gz