Skip to content

Commit 4bf5630

Browse files
authored
drop support for python 3.9 (#121)
* drop support for python 3.9 * Update README.md * Update README.md
1 parent 9e06217 commit 4bf5630

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
17+
python-version: ['3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
2222

2323
- name: Update environment.yaml with Python ${{ matrix.python-version }}
2424
run: |
25-
sed -i.bak "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
25+
sed -i.bak "s/- python=3.10/- python=${{ matrix.python-version }}/" environment.yaml
2626
cat environment.yaml
2727
2828
- name: Set up Micromamba
@@ -56,15 +56,15 @@ jobs:
5656
strategy:
5757
matrix:
5858
os: [ubuntu-latest, macos-latest]
59-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
59+
python-version: ['3.10', '3.11', '3.12', '3.13']
6060

6161
steps:
6262
- name: Checkout repository
6363
uses: actions/checkout@v3
6464

6565
- name: Update environment.yaml with Python ${{ matrix.python-version }}
6666
run: |
67-
sed -i.bak "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
67+
sed -i.bak "s/- python=3.10/- python=${{ matrix.python-version }}/" environment.yaml
6868
cat environment.yaml
6969
7070
- name: Restore build artifacts

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h4 align="center">
1010

1111
[![arXiv](https://img.shields.io/badge/arXiv-2405.04967-blue?logo=arxiv&logoColor=white.svg)](https://arxiv.org/abs/2405.04967)
12-
[![Requires Python 3.9+](https://img.shields.io/badge/Python-3.9+-blue.svg?logo=python&logoColor=white)](https://python.org/downloads)
12+
[![Requires Python 3.10+](https://img.shields.io/badge/Python-3.10+-blue.svg?logo=python&logoColor=white)](https://python.org/downloads)
1313
[![PyPI Downloads](https://static.pepy.tech/badge/mattersim)](https://pepy.tech/projects/mattersim)
1414
</h4>
1515

@@ -23,7 +23,7 @@ This README provides a quick start guide. For more comprehensive information, pl
2323
## Installation
2424

2525
### Prerequisite
26-
* `Python >= 3.9`
26+
* `Python >= 3.10`
2727

2828

2929
### Install from PyPI
@@ -32,13 +32,12 @@ This README provides a quick start guide. For more comprehensive information, pl
3232
>
3333
> ```bash
3434
> # create the environment
35-
> conda create -n mattersim python=3.9
35+
> conda create -n mattersim python=3.10
3636
>
3737
> # activate the environment
3838
> conda activate mattersim
3939
> ```
4040
>
41-
> Although MatterSim can be installed with `Python > 3.9`, we recommend using `Python == 3.9` for optimal compatibility.
4241
4342
To install MatterSim, use the following command. Please note that downloading the dependencies may take some time:
4443
```bash

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: mattersim
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3.10
66
- ca-certificates
77
- openssl
88
- cython>=0.29.32

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"Cython>=0.29.32",
4-
"numpy>=2.0.0 ",
4+
"numpy>=2.0.0",
55
"setuptools>=45",
66
"setuptools_scm",
77
"wheel",
@@ -19,7 +19,7 @@ authors = [
1919
{ name = "Ziheng Lu", email = "zihenglu@microsoft.com" },
2020
]
2121
readme = "README.md"
22-
requires-python = ">=3.9"
22+
requires-python = ">=3.10"
2323
classifiers = [
2424
"License :: OSI Approved :: MIT License",
2525
"Operating System :: OS Independent",
@@ -37,7 +37,8 @@ dependencies = [
3737
"emmet-core<0.84; python_version < '3.10'",
3838
"loguru",
3939
"mp-api",
40-
"numpy>=2.0.0",
40+
"numpy>=2.0.0; python_version >= '3.10'",
41+
"numpy<2.0.0; python_version < '3.10'",
4142
"opt_einsum_fx",
4243
"pydantic>=2.9.2",
4344
"pymatgen",

0 commit comments

Comments
 (0)