Skip to content

Commit 8a4c4bc

Browse files
committed
Remove cbc from requirements file (it isn't available on pypi) and update docs
1 parent b130752 commit 8a4c4bc

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

.github/workflows/commit-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
create-args: >-
3434
-f requirements/dev.txt
3535
python=3.11
36+
coin-or-cbc
3637
gurobi::gurobi
3738
post-cleanup: all
3839
cache-environment: true

.github/workflows/pr-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
-f requirements/dev.txt
5353
curl
5454
python=3.${{ matrix.py3version }}
55+
coin-or-cbc
5556
gurobi::gurobi
5657
post-cleanup: all
5758
cache-environment: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Calliope comes with several built-in analysis and visualisation tools. Having so
3737

3838
## Quick start
3939

40-
Calliope can run on Windows, macOS and Linux. Installing it is quickest with the `mamba` package manager by running a single command: `mamba create -c conda-forge -n calliope calliope`.
40+
Calliope can run on Windows, macOS and Linux. Installing it is quickest with the `mamba` package manager by running a single command: `mamba create -n calliope -c conda-forge/label/calliope_dev -c conda-forge calliope`.
4141

4242
See the documentation for more [information on installing](https://calliope.readthedocs.io/en/stable/user/installation.html).
4343

docs/contributing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To create a development environment for calliope, with all libraries required fo
3636
1. Open the command line (or the "miniforge prompt" in Windows).
3737
1. Download (a.k.a., clone) the calliope repository: `git clone git@github.com:calliope-project/calliope.git`
3838
1. Change into the `calliope` directory: `cd calliope`
39-
1. Create the calliope mamba environment: `mamba create -n calliope -c conda-forge --file requirements/base.txt --file requirements/dev.txt gurobi::gurobi`
39+
1. Create the calliope mamba environment: `mamba create -n calliope -c conda-forge --file requirements/base.txt --file requirements/dev.txt coin-or-cbc gurobi::gurobi`
4040
1. Activate the calliope mamba environment: `mamba activate calliope`
4141
1. Install the calliope package into the environment, in editable mode and ignoring dependencies (we have dealt with those when creating the mamba environment): `pip install --no-deps -e .`
4242
1. Install the interactive python shell (necessary when testing our documentation locally): `ipython kernel install --user --name=calliope_docs_build`
@@ -46,7 +46,7 @@ All together:
4646
``` shell
4747
git clone git@github.com:calliope-project/calliope.git
4848
cd calliope
49-
mamba create -n calliope -c conda-forge --file requirements/base.txt --file requirements/dev.txt gurobi::gurobi
49+
mamba create -n calliope -c conda-forge --file requirements/base.txt --file requirements/dev.txt coin-or-cbc gurobi::gurobi
5050
mamba activate calliope
5151
pip install --no-deps -e .
5252
ipython kernel install --user --name=calliope_docs_build

docs/installation.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ With the package manager installed, you can create a new environment called `cal
2727
Run the following command in a terminal or command-line window:
2828

2929
```shell
30-
mamba create -n calliope -c conda-forge/label/calliope_dev -c conda-forge calliope coin-or-cbc
30+
mamba create -n calliope -c conda-forge/label/calliope_dev -c conda-forge calliope
3131
```
3232

3333
!!! note
@@ -49,11 +49,9 @@ mamba activate calliope
4949

5050
## Updating an existing installation
5151

52-
If following the recommended installation method above, the following command, assuming the mamba environment is active, will update Calliope to the newest version
53-
54-
```bash
55-
mamba update -c conda-forge calliope
56-
```
52+
We recommend that if you want to update an existing installation, you re-create your environment from scratch.
53+
This will mitigate any possible unwanted updates to additional dependencies that you may have installed into your environment since you first created it.
54+
Therefore, run the same command found in the [recommended installation instructions](#recommended-installation-method) and say yes when prompted about whether you want to overwrite the existing environment.
5755

5856
## Choosing a solver
5957

@@ -66,12 +64,12 @@ This list is not exhaustive; any solvers [supported by Pyomo](https://pyomo.read
6664
### CBC
6765

6866
[CBC](https://github.com/coin-or/Cbc) is our recommended option if you want a free and open-source solver.
69-
If you do not have it in your working environment (i.e. there is nothing listed when you call `conda list cbc`) then it can be installed by running `mamba install -c conda-forge coin-or-cbc`.
67+
If you do not have it in your working environment (i.e. there is nothing listed when you call `conda list cbc`) then it can be installed by running `mamba install conda-forge::coin-or-cbc`.
7068

7169
### GLPK
7270

7371
[GLPK](https://anaconda.org/conda-forge/glpk) is free and open-source, but can take too much time and/or too much memory on larger problems.
74-
`GLPK` can be installed from `conda-forge` on all platforms: `mamba install -c conda-forge glpk`.
72+
`GLPK` can be installed from `conda-forge` on all platforms: `mamba install conda-forge::glpk`.
7573
Unlike [CBC](#cbc), it is possible to extract [shadow prices](./advanced/shadow_prices.md) from a model solved with GLPK, which is why you may with to use it instead of CBC.
7674

7775
### Gurobi

requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ bottleneck >= 1
22
click >= 8
33
geographiclib >= 2
44
ipdb >= 0.13
5-
ipykernel < 7
5+
ipykernel >= 6
66
jinja2 >= 3
77
jsonref >= 1.1
88
jsonschema >= 4

requirements/dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
coin-or-cbc >= 2.10
21
glpk == 5.0
32
jsonschema2md >= 1
43
mkdocs >= 1.5

0 commit comments

Comments
 (0)