Build

These are instructions for how to develop, build and deploy Blue Dot.

Develop

Install / upgrade tools:

sudo python3 -m pip install --upgrade pip setuptools wheel twine

Clone repo and install for dev:

git clone https://github.com/martinohanlon/BlueDot
cd BlueDot
git checkout dev
sudo python3 setup.py develop

Test

Install pytest:

sudo pip3 install -U pytest

Run tests:

cd BlueDot/tests
pytest -v

Deploy

Create .pypirc credentials file:

nano ~/.pypirc

[distutils]
index-servers =
    pypi

[pypi]
username:
password:

Build for deployment:

python3 setup.py sdist
python3 setup.py bdist_wheel
python setup.py bdist_wheel

Deploy to PyPI:

twine upload dist/* --skip-existing