Skip to content

Commit 5cac5b3

Browse files
authored
Merge pull request #304 from pymc-labs/some-devops
Move to a conda only install of pymc
2 parents 3dc2ffe + 2bf31e1 commit 5cac5b3

13 files changed

+395
-403
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ For more instructions see the [Pull request checklist](#pull-request-checklist)
4747

4848
Always use a feature branch. It's good practice to never routinely work on the `main` branch of any repository.
4949
50-
1. Create a new environment using Python >=3.10, for example 3.11
50+
1. Create the environment from the `environment.yml` file.
5151
5252
```bash
53-
conda create --name CausalPy python=3.11
53+
mamba env create -f environment.yml
5454
```
5555
5656
Activate the environment.
@@ -59,7 +59,7 @@ For more instructions see the [Pull request checklist](#pull-request-checklist)
5959
conda activate CausalPy
6060
```
6161
62-
Install the package (in editable mode) and its development dependencies:
62+
Install the package (in editable mode) and its development dependencies. The `--no-deps` flag is used to avoid installing the dependencies of `CausalPy` as they are already installed when installing the development dependencies. This can end up interfering with the conda-only install of pymc.
6363
6464
```bash
6565
pip install --no-deps -e .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: init lint check_lint test
22

33
init:
4-
python -m pip install -e .
4+
python -m pip install -e . --no-deps
55

66
lint:
77
ruff check --fix .

docs/source/notebooks/did_pymc.ipynb

Lines changed: 9 additions & 17 deletions
Large diffs are not rendered by default.

docs/source/notebooks/did_pymc_banks.ipynb

Lines changed: 31 additions & 30 deletions
Large diffs are not rendered by default.

docs/source/notebooks/geolift1.ipynb

Lines changed: 12 additions & 20 deletions
Large diffs are not rendered by default.

docs/source/notebooks/its_covid.ipynb

Lines changed: 15 additions & 23 deletions
Large diffs are not rendered by default.

docs/source/notebooks/its_pymc.ipynb

Lines changed: 28 additions & 36 deletions
Large diffs are not rendered by default.

docs/source/notebooks/rd_pymc.ipynb

Lines changed: 20 additions & 27 deletions
Large diffs are not rendered by default.

docs/source/notebooks/rd_pymc_drinking.ipynb

Lines changed: 51 additions & 28 deletions
Large diffs are not rendered by default.

docs/source/notebooks/rkink_pymc.ipynb

Lines changed: 30 additions & 35 deletions
Large diffs are not rendered by default.

docs/source/notebooks/sc_pymc.ipynb

Lines changed: 32 additions & 38 deletions
Large diffs are not rendered by default.

docs/source/notebooks/sc_pymc_brexit.ipynb

Lines changed: 146 additions & 145 deletions
Large diffs are not rendered by default.

environment.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CausalPy
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- arviz>=0.14.0
6+
- graphviz
7+
- ipython!=8.7.0
8+
- matplotlib>=3.5.3
9+
- numpy<1.26.0
10+
- pandas
11+
- patsy
12+
- pymc>=5.14.0
13+
- scikit-learn>=1
14+
- scipy
15+
- seaborn>=0.11.2
16+
- statsmodels
17+
- xarray>=v2022.11.0

0 commit comments

Comments
 (0)