Skip to content

Commit 45a816e

Browse files
authored
Align conda envs and add Windows 3.9 env (#5895)
* Remove conda sorter from `pre-commit` config
1 parent 7cc24bc commit 45a816e

12 files changed

+125
-44
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ repos:
5757
hooks:
5858
- id: no-print-statements
5959
files: ^pymc/
60-
- id: conda-env-sorter
61-
files: ^conda-envs/environment-dev-py.+\.yml$
6260
- repo: local
6361
hooks:
6462
- id: check-no-tests-are-ignored

conda-envs/environment-dev-py37.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,26 +13,27 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
16+
- numpy>=1.15.0
17+
- pandas>=0.24.0
18+
- pip
19+
- python=3.7
20+
- python-graphviz
21+
- scipy>=1.4.1
22+
- typing-extensions>=3.7.4
23+
# Extra dependencies for dev, testing and docs build
1524
- ipython>=7.16
1625
- jax
1726
- jupyter-sphinx
1827
- myst-nb
19-
- numpy>=1.15.0
2028
- numpydoc
21-
- pandas>=0.24.0
22-
- pip
2329
- pre-commit>=2.8.0
2430
- pydata-sphinx-theme
2531
- pytest-cov>=2.5
2632
- pytest>=3.0
27-
- python-graphviz
28-
- python=3.7
29-
- scipy>=1.4.1
3033
- sphinx-copybutton
3134
- sphinx-notfound-page
3235
- sphinx>=1.5
3336
- sphinxext-rediraffe
34-
- typing-extensions>=3.7.4
3537
- watermark
3638
- pip:
3739
- polyagamma

conda-envs/environment-dev-py38.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,26 +13,27 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
16+
- numpy>=1.15.0
17+
- pandas>=0.24.0
18+
- pip
19+
- python=3.8
20+
- python-graphviz
21+
- scipy>=1.4.1
22+
- typing-extensions>=3.7.4
23+
# Extra dependencies for dev, testing and docs build
1524
- ipython>=7.16
1625
- jax
1726
- jupyter-sphinx
1827
- myst-nb
19-
- numpy>=1.15.0
2028
- numpydoc
21-
- pandas>=0.24.0
22-
- pip
2329
- pre-commit>=2.8.0
2430
- pydata-sphinx-theme
2531
- pytest-cov>=2.5
2632
- pytest>=3.0
27-
- python-graphviz
28-
- python=3.8
29-
- scipy>=1.4.1
3033
- sphinx-copybutton
3134
- sphinx-notfound-page
3235
- sphinx>=1.5
3336
- sphinxext-rediraffe
34-
- typing-extensions>=3.7.4
3537
- watermark
3638
- pip:
3739
- polyagamma

conda-envs/environment-dev-py39.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,26 +13,27 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
16+
- numpy>=1.15.0
17+
- pandas>=0.24.0
18+
- pip
19+
- python=3.9
20+
- python-graphviz
21+
- scipy>=1.4.1
22+
- typing-extensions>=3.7.4
23+
# Extra dependencies for dev, testing and docs build
1524
- ipython>=7.16
1625
- jax
1726
- jupyter-sphinx
1827
- myst-nb
19-
- numpy>=1.15.0
2028
- numpydoc
21-
- pandas>=0.24.0
22-
- pip
2329
- pre-commit>=2.8.0
2430
- pydata-sphinx-theme
2531
- pytest-cov>=2.5
2632
- pytest>=3.0
27-
- python-graphviz
28-
- python=3.9
29-
- scipy>=1.4.1
3033
- sphinx-copybutton
3134
- sphinx-notfound-page
3235
- sphinx>=1.5
3336
- sphinxext-rediraffe
34-
- typing-extensions>=3.7.4
3537
- watermark
3638
- pip:
3739
- polyagamma

conda-envs/environment-test-py37.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,16 +13,17 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
15-
- ipython>=7.16
1616
- jax
1717
- libblas=*=*mkl
1818
- mkl-service
1919
- numpy>=1.15.0
2020
- pandas>=0.24.0
21-
- pre-commit>=2.8.0
22-
- pytest-cov>=2.5
23-
- pytest>=3.0
24-
- python-graphviz
2521
- python=3.7
22+
- python-graphviz
2623
- scipy>=1.4.1
2724
- typing-extensions>=3.7.4
25+
# Extra dependencies for testing
26+
- ipython>=7.16
27+
- pre-commit>=2.8.0
28+
- pytest-cov>=2.5
29+
- pytest>=3.0

conda-envs/environment-test-py38.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,16 +13,17 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
15-
- ipython>=7.16
1616
- jax
1717
- libblas=*=*mkl
1818
- mkl-service
1919
- numpy>=1.15.0
2020
- pandas>=0.24.0
21-
- pre-commit>=2.8.0
22-
- pytest-cov>=2.5
23-
- pytest>=3.0
24-
- python-graphviz
2521
- python=3.8
22+
- python-graphviz
2623
- scipy>=1.4.1
2724
- typing-extensions>=3.7.4
25+
# Extra dependencies for testing
26+
- ipython>=7.16
27+
- pre-commit>=2.8.0
28+
- pytest-cov>=2.5
29+
- pytest>=3.0

conda-envs/environment-test-py39.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7+
# Base dependencies
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -12,16 +13,17 @@ dependencies:
1213
- cloudpickle
1314
- fastprogress>=0.2.0
1415
- h5py>=2.7
15-
- ipython>=7.16
1616
- jax
1717
- libblas=*=*mkl
1818
- mkl-service
1919
- numpy>=1.15.0
2020
- pandas>=0.24.0
21-
- pre-commit>=2.8.0
22-
- pytest-cov>=2.5
23-
- pytest>=3.0
24-
- python-graphviz
2521
- python=3.9
22+
- python-graphviz
2623
- scipy>=1.4.1
2724
- typing-extensions>=3.7.4
25+
# Extra dependencies for testing
26+
- ipython>=7.16
27+
- pre-commit>=2.8.0
28+
- pytest-cov>=2.5
29+
- pytest>=3.0

conda-envs/windows-environment-dev-py38.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# "dev" conda envs are to be used by devs in setting their local environments
12
name: pymc-dev-py38
23
channels:
34
- conda-forge
45
- defaults
56
dependencies:
6-
# base dependencies (see install guide for Windows)
7+
# Base dependencies (see install guide for Windows)
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -20,7 +21,7 @@ dependencies:
2021
- python-graphviz
2122
- scipy>=1.4.1
2223
- typing-extensions>=3.7.4
23-
# Extra stuff for dev, testing and docs build
24+
# Extra dependencies for dev, testing and docs build
2425
- ipython>=7.16
2526
- myst-nb
2627
- numpydoc
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# "dev" conda envs are to be used by devs in setting their local environments
2+
name: pymc-dev-py39
3+
channels:
4+
- conda-forge
5+
- defaults
6+
dependencies:
7+
# Base dependencies (see install guide for Windows)
8+
- aeppl=0.0.31
9+
- aesara=2.6.6
10+
- arviz>=0.12.0
11+
- blas
12+
- cachetools>=4.2.1
13+
- cloudpickle
14+
- fastprogress>=0.2.0
15+
- h5py>=2.7
16+
- numpy>=1.15.0
17+
- pandas>=0.24.0
18+
- pip
19+
- python=3.9
20+
- python-graphviz
21+
- scipy>=1.4.1
22+
- typing-extensions>=3.7.4
23+
# Extra dependencies for dev, testing and docs build
24+
- ipython>=7.16
25+
- myst-nb
26+
- numpydoc
27+
- pre-commit>=2.8.0
28+
- pydata-sphinx-theme
29+
- pytest-cov>=2.5
30+
- pytest>=3.0
31+
- sphinx-autobuild>=0.7
32+
- sphinx-copybutton
33+
- sphinx-notfound-page
34+
- sphinx>=1.5
35+
- watermark
36+
- pip:
37+
- sphinx-design
38+
- sphinx-remove-toctrees

conda-envs/windows-environment-test-py38.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# "test" conda envs are used to set up our CI environment in GitHub actions
12
name: pymc-test-py38
23
channels:
34
- conda-forge
45
- defaults
56
dependencies:
6-
# base dependencies (see install guide for Windows)
7+
# Base dependencies (see install guide for Windows)
78
- aeppl=0.0.31
89
- aesara=2.7.2
910
- arviz>=0.12.0
@@ -23,7 +24,7 @@ dependencies:
2324
- python-graphviz
2425
- scipy>=1.4.1
2526
- typing-extensions>=3.7.4
26-
# Extra stuff for testing
27+
# Extra dependencies for testing
2728
- ipython>=7.16
2829
- pre-commit>=2.8.0
2930
- pytest-cov>=2.5
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# "test" conda envs are used to set up our CI environment in GitHub actions
2+
name: pymc-test-py39
3+
channels:
4+
- conda-forge
5+
- defaults
6+
dependencies:
7+
# Base dependencies (see install guide for Windows)
8+
- aeppl=0.0.31
9+
- aesara=2.6.6
10+
- arviz>=0.12.0
11+
- blas
12+
- cachetools>=4.2.1
13+
- cloudpickle
14+
- fastprogress>=0.2.0
15+
- h5py>=2.7
16+
- libpython
17+
- mkl==2020.4
18+
- mkl-service==2.3.0
19+
- m2w64-toolchain
20+
- numpy>=1.15.0
21+
- pandas>=0.24.0
22+
- pip
23+
- python=3.9
24+
- python-graphviz
25+
- scipy>=1.4.1
26+
- typing-extensions>=3.7.4
27+
# Extra dependencies for testing
28+
- ipython>=7.16
29+
- pre-commit>=2.8.0
30+
- pytest-cov>=2.5
31+
- pytest>=3.0

scripts/generate_pip_deps_from_conda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ def main(conda_fname, pip_fname):
126126
raise ValueError(f"Unexpected dependency {dep}")
127127

128128
header = (
129-
f"# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, "
129+
"# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, "
130130
"do not modify.\n# See that file for comments about the need/usage of each dependency.\n\n"
131131
)
132132
pip_content = header + "\n".join(sorted(pip_deps)) + "\n"
133133

134-
with open(pip_fname, "w") as pip_fd:
134+
with open(pip_fname, "w", newline="") as pip_fd:
135135
pip_fd.write(pip_content)
136136

137137

0 commit comments

Comments
 (0)