For CI, streamz uses environment files to create conda environments. Contributors can reuse those files to create development environments. A few basic quick start commands for creating a using a streamz conda environment are found below.
Environment files exist for all supported version under:
./ci/environment-py${VERSION}.ymlCreating a streamz conda environment can be achieved by running
export VERSION="314"
conda env create -f "./ci/environment-py$VERSION.yml" -n "streamz$VERSION"
conda activate "streamz${VERSION}"
pip install flake8
pip install --editable=. --no-depsThe streamz conda environment can be activated in the future by running
conda activate "streamz${VERSION}"If you do not want to use conda, there is a requirements-test.txt file
in the proejct root that will install packages into the current python
environment:
pip install --editable=. --requirement=requirements-test.txt
pip install flake8We do not use it for CI, so please submit a PR to update it if you notice that it has drifted away from the conda environments. (I.e. you cannot run the tests.)
Once you activate your environment of choice, running pytest and flake8 will work:
pytest -vvv
flake8 streamz