From 4aca7117effcb4665287a9d3505410e9db799bcf Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Wed, 23 Nov 2022 22:21:48 -0600 Subject: [PATCH 1/2] Add environment.yml to create dev environment But, sometimes devs will developer versions of `networkx` or `python-graphblas` --- environment.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 environment.yml diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..bd1b86c --- /dev/null +++ b/environment.yml @@ -0,0 +1,40 @@ +# To use: +# $ conda env create -f environment.yml +# $ conda activate graphblas-algorithms-dev +# +# Or use mamba instead of conda. +# +# pre-commit should be set up once after the repo is cloned (see .pre-commit-config.yaml). +# In the `graphblas-algorithms-dev` environment, run: +# $ pre-commit install +# +# At times, one may need to use a development version of networkx or python-graphblas. +name: graphblas-algorithms-dev +channels: + - conda-forge + - nodefaults # Only install packages from conda-forge for faster solving +dependencies: + - python + - python-graphblas + - networkx + # python-graphblas default dependencies + - donfig + - numba + - python-suitesparse-graphblas + - pyyaml + # networkx default dependencies + - matplotlib + - pandas + - scipy + # networkx extra dependencies + - lxml + - pydot + - pygraphviz + - sympy + # For linting + - pre-commit + # For testing + - pytest-cov + # For debugging + - icecream + - ipython From 51b5b27f6e9472a1788b9734f240d08fcdc031c6 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Wed, 30 Nov 2022 11:25:04 -0600 Subject: [PATCH 2/2] Add note for how to set up dev versions of python-graphblas and networkx --- environment.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/environment.yml b/environment.yml index bd1b86c..24baea8 100644 --- a/environment.yml +++ b/environment.yml @@ -9,6 +9,17 @@ # $ pre-commit install # # At times, one may need to use a development version of networkx or python-graphblas. +# To do this, you will need to uninstall, git clone, and run setup.py develop. For example: +# +# $ conda remove --force python-graphblas +# $ git clone git@github.com:python-graphblas/python-graphblas.git +# $ cd python-graphblas +# $ python setup.py develop --no-deps +# +# $ conda remove --force networkx +# $ git clone git@github.com:networkx/networkx.git +# $ cd networkx +# $ python setup.py develop --no-deps name: graphblas-algorithms-dev channels: - conda-forge