Skip to content

Commit dddccd4

Browse files
Merge pull request mala-project#614 from mala-project/align_mala_version
Align MALA version
2 parents c2e1bb7 + a769f3e commit dddccd4

6 files changed

Lines changed: 133 additions & 142 deletions

File tree

.github/workflows/cpu-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,27 @@ jobs:
170170
# install mala package
171171
pip --no-cache-dir install -e .[opt,test] --no-build-isolation
172172
173+
173174
- name: Check if Conda environment meets the specified requirements
174175
shell: 'bash -c "docker exec -i mala-cpu bash < {0}"'
175176
run: |
176177
# export Conda environment _with_ mala package installed in it (and extra dependencies)
177178
conda env export -n mala-cpu > env_after.yml
178179
180+
# This command is necessary because conda includes even editable
181+
# packages in an export, at least in the versions we recently used.
182+
# That of course leads to the diff failing, since MALA can never
183+
# be there before it has been installed.
184+
sed -i '/materials-learning-algorithms/d' ./env_after.yml
185+
179186
# if comparison fails, `install/mala_cpu_[base]_environment.yml` needs to be aligned with
180187
# `requirements.txt` and/or extra dependencies are missing in the Docker Conda environment
181188
182189
if diff --brief env_before.yml env_after.yml
183190
then
184191
echo "Files env_before.yml and env_after.yml do not differ."
185192
else
186-
diff --side-by-side --color-always env_before.yml env_after.yml
193+
diff --side-by-side env_before.yml env_after.yml
187194
fi
188195
189196
- name: Download test data repository from RODARE

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Python
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: '3.12'
29+
python-version: '3.10.4'
3030

3131
- name: Upgrade pip
3232
run: python3 -m pip install --upgrade pip
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup Python
5151
uses: actions/setup-python@v5
5252
with:
53-
python-version: '3.12'
53+
python-version: '3.10.4'
5454

5555
- name: Upgrade pip
5656
run: python3 -m pip install --upgrade pip

docs/source/install/installing_mala.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Installing MALA
44
Prerequisites
55
**************
66

7-
MALA does not depend on a specific Python version. The most recent Python
8-
version it has been tested with successfully is Python ``3.10.4``.
7+
MALA supports any Python version starting from ``3.10.4``. No upper limit on
8+
Python versions are enforced. The most recent *tested* version is ``3.10.12``.
99

1010
MALA requires ``torch`` in order to function. As the installation of torch
1111
depends highly on the architecture you are using, ``torch`` will not

install/mala_cpu_base_environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python>=3.6, <3.9
6+
- python=3.10.4
77
- pip
88
- numpy
99
- scipy

install/mala_cpu_environment.yml

Lines changed: 119 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -5,154 +5,137 @@ channels:
55
dependencies:
66
- _libgcc_mutex=0.1
77
- _openmp_mutex=4.5
8-
- absl-py=1.3.0
9-
- aiohttp=3.8.3
10-
- aiosignal=1.3.1
11-
- alembic=1.9.1
12-
- ase=3.22.1
13-
- async-timeout=4.0.2
14-
- attrs=22.2.0
15-
- autopage=0.5.1
16-
- backports=1.0
17-
- backports.functools_lru_cache=1.6.4
18-
- blinker=1.5
19-
- brotli=1.0.9
20-
- brotli-bin=1.0.9
21-
- brotlipy=0.7.0
8+
- absl-py=2.1.0
9+
- alembic=1.14.0
10+
- ase=3.23.0
11+
- blinker=1.9.0
12+
- brotli-bin=1.1.0
13+
- brotli-python=1.0.9
2214
- bzip2=1.0.8
23-
- c-ares=1.18.1
24-
- ca-certificates=2022.12.7
25-
- cachetools=5.2.0
26-
- certifi=2022.12.7
27-
- cffi=1.15.1
28-
- charset-normalizer=2.1.1
29-
- click=8.1.3
30-
- cliff=3.10.1
31-
- cmaes=0.9.0
32-
- cmd2=2.4.2
15+
- c-ares=1.34.3
16+
- ca-certificates=2024.9.24
17+
- click=8.1.7
3318
- colorama=0.4.6
34-
- colorlog=6.7.0
35-
- contourpy=1.0.6
36-
- cryptography=38.0.4
37-
- cycler=0.11.0
38-
- flask=2.2.2
39-
- fonttools=4.38.0
19+
- colorlog=6.9.0
20+
- cycler=0.12.1
21+
- filelock=3.16.1
22+
- flask=3.1.0
4023
- freetype=2.12.1
41-
- frozenlist=1.3.3
42-
- google-auth=2.15.0
43-
- google-auth-oauthlib=0.4.6
44-
- greenlet=2.0.1
45-
- grpcio=1.51.1
46-
- icu=70.1
47-
- idna=3.4
48-
- importlib-metadata=4.11.4
49-
- importlib_resources=5.10.1
50-
- itsdangerous=2.1.2
51-
- jinja2=3.1.2
52-
- jpeg=9e
53-
- kiwisolver=1.4.4
54-
- lcms2=2.14
55-
- ld_impl_linux-64=2.39
24+
- fsspec=2024.10.0
25+
- gmp=6.3.0
26+
- importlib-metadata=8.5.0
27+
- importlib_resources=6.4.5
28+
- itsdangerous=2.2.0
29+
- jinja2=3.1.4
30+
- lcms2=2.16
31+
- ld_impl_linux-64=2.43
5632
- lerc=4.0.0
57-
- libabseil=20220623.0
33+
- libabseil=20240722.0
5834
- libblas=3.9.0
59-
- libbrotlicommon=1.0.9
60-
- libbrotlidec=1.0.9
61-
- libbrotlienc=1.0.9
35+
- libbrotlicommon=1.1.0
36+
- libbrotlidec=1.1.0
37+
- libbrotlienc=1.1.0
6238
- libcblas=3.9.0
63-
- libdeflate=1.14
39+
- libdeflate=1.22
6440
- libffi=3.4.2
65-
- libgcc-ng=12.2.0
66-
- libgfortran-ng=12.3.0
67-
- libgfortran5=12.3.0
68-
- libgrpc=1.51.1
69-
- libhwloc=2.8.0
41+
- libgcc=14.2.0
42+
- libgcc-ng=14.2.0
43+
- libgfortran=14.2.0
44+
- libgfortran5=14.2.0
45+
- libgrpc=1.67.1
46+
- libhwloc=2.11.1
7047
- libiconv=1.17
48+
- libjpeg-turbo=3.0.0
7149
- liblapack=3.9.0
72-
- libnsl=2.0.0
73-
- libopenblas=0.3.21
74-
- libpng=1.6.39
75-
- libprotobuf=3.21.12
76-
- libsqlite=3.40.0
77-
- libstdcxx-ng=12.2.0
78-
- libtiff=4.5.0
79-
- libuuid=2.32.1
80-
- libwebp-base=1.2.4
81-
- libxcb=1.13
82-
- libxml2=2.10.3
83-
- libzlib=1.2.13
84-
- llvm-openmp=15.0.6
85-
- mako=1.2.4
86-
- markdown=3.4.1
87-
- markupsafe=2.1.1
88-
- matplotlib-base=3.6.2
89-
- mkl=2022.2.1
90-
- mpmath=1.2.1
91-
- multidict=6.0.2
50+
- libnsl=2.0.1
51+
- libopenblas=0.3.28
52+
- libpng=1.6.44
53+
- libprotobuf=5.28.2
54+
- libre2-11=2024.07.02
55+
- libsqlite=3.47.0
56+
- libstdcxx=14.2.0
57+
- libstdcxx-ng=14.2.0
58+
- libtiff=4.7.0
59+
- libtorch=2.5.1
60+
- libuuid=2.38.1
61+
- libuv=1.49.2
62+
- libwebp-base=1.4.0
63+
- libxcb=1.17.0
64+
- libxml2=2.13.5
65+
- libzlib=1.3.1
66+
- llvm-openmp=19.1.4
67+
- mako=1.3.6
68+
- markdown=3.6
69+
- matplotlib-base=3.9.2
70+
- mkl=2024.2.2
71+
- mpc=1.3.1
72+
- mpfr=4.2.1
73+
- mpmath=1.3.0
9274
- munkres=1.1.4
93-
- ncurses=6.3
94-
- ninja=1.11.0
95-
- numpy=1.24.0
96-
- oauthlib=3.2.2
97-
- openjpeg=2.5.0
98-
- openssl=3.3.1
99-
- optuna=3.0.5
100-
- packaging=22.0
101-
- pandas=1.5.2
102-
- pbr=5.11.0
103-
- pillow=9.2.0
104-
- pip=22.3.1
105-
- prettytable=3.5.0
106-
- protobuf=4.21.12
75+
- ncurses=6.5
76+
- networkx=3.4.2
77+
- openjpeg=2.5.2
78+
- openssl=3.4.0
79+
- optuna=4.1.0
80+
- packaging=24.2
81+
- pip=24.3.1
10782
- pthread-stubs=0.4
108-
- pyasn1=0.4.8
109-
- pyasn1-modules=0.2.7
110-
- pycparser=2.21
111-
- pyjwt=2.6.0
112-
- pyopenssl=22.1.0
113-
- pyparsing=3.0.9
114-
- pyperclip=1.8.2
115-
- pysocks=1.7.1
116-
- python=3.8.16
117-
- python-dateutil=2.8.2
118-
- python_abi=3.8
119-
- pytorch=1.13.0
120-
- pytorch-cpu=1.13.0
121-
- pytz=2022.7
122-
- pyu2f=0.1.5
123-
- pyyaml=6.0
124-
- re2=2022.06.01
125-
- readline=8.1.2
126-
- requests=2.28.1
127-
- requests-oauthlib=1.3.1
128-
- rsa=4.9
129-
- scipy=1.8.1
130-
- scikit-spatial=6.8.1
131-
- setuptools=59.8.0
83+
- pyparsing=3.2.0
84+
- python=3.10.4
85+
- python-dateutil=2.9.0.post0
86+
- python-tzdata=2024.2
87+
- python_abi=3.10
88+
- pytorch=2.5.1
89+
- pytorch-cpu=2.5.1
90+
- pytz=2024.1
91+
- qhull=2020.2
92+
- re2=2024.07.02
93+
- readline=8.2
94+
- scikit-spatial=8.0.0
95+
- setuptools=75.6.0
13296
- six=1.16.0
133-
- sleef=3.5.1
134-
- sqlalchemy=1.4.45
135-
- stevedore=4.1.1
136-
- tbb=2021.7.0
137-
- tensorboard=2.11.0
138-
- tensorboard-data-server=0.6.1
139-
- tensorboard-plugin-wit=1.8.1
140-
- tk=8.6.12
141-
- tqdm=4.64.1
142-
- typing-extensions=4.4.0
143-
- typing_extensions=4.4.0
144-
- unicodedata2=15.0.0
145-
- urllib3=1.26.13
146-
- wcwidth=0.2.5
147-
- werkzeug=2.2.2
148-
- wheel=0.38.4
149-
- xorg-libxau=1.0.9
150-
- xorg-libxdmcp=1.1.3
97+
- sleef=3.7
98+
- sqlite=3.47.0
99+
- sympy=1.13.3
100+
- tbb=2021.13.0
101+
- tensorboard=2.18.0
102+
- tk=8.6.13
103+
- tqdm=4.67.1
104+
- typing-extensions=4.12.2
105+
- typing_extensions=4.12.2
106+
- tzdata=2024b
107+
- werkzeug=3.1.3
108+
- wheel=0.45.1
109+
- xorg-libxau=1.0.11
110+
- xorg-libxdmcp=1.1.5
151111
- xz=5.2.6
152112
- yaml=0.2.5
153-
- yarl=1.8.1
154-
- zipp=3.11.0
155-
- zlib=1.2.13
156-
- zstd=1.5.5
113+
- zipp=3.21.0
114+
- zstd=1.5.6
157115
- pip:
158-
- openpmd-api==0.15.2
116+
- brotli==1.0.9
117+
- certifi==2024.8.30
118+
- charset-normalizer==3.4.0
119+
- contourpy==1.3.1
120+
- fonttools==4.55.0
121+
- gmpy2==2.1.5
122+
- greenlet==3.1.1
123+
- grpcio==1.67.1
124+
- idna==3.10
125+
- kiwisolver==1.4.7
126+
- markupsafe==3.0.2
127+
- matplotlib==3.9.2
128+
- numpy==1.26.4
129+
- oauthlib==3.2.2
130+
- openpmd-api==0.15.2
131+
- pandas==2.2.3
132+
- pillow==11.0.0
133+
- protobuf==3.19.6
134+
- pysocks==1.7.1
135+
- pyyaml==6.0.2
136+
- requests==2.32.3
137+
- scipy==1.14.1
138+
- sqlalchemy==2.0.36
139+
- tensorboard-data-server==0.7.0
140+
- torch==2.5.1.post103
141+
- unicodedata2==15.1.0

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@
4141
zip_safe=False,
4242
install_requires=open("requirements.txt").read().splitlines(),
4343
extras_require=extras,
44+
python_requires=">=3.10.4",
4445
)

0 commit comments

Comments
 (0)