From ea83f9dd71cd7455083d5741c4a83cee1c2a41b1 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sat, 28 Jan 2023 16:13:29 -0500 Subject: [PATCH] pin parmed version for py37 The new version of parmed drops Python 3.7. However, it did not set `requires-python`, making pip on Python 3.7 still installs the latest version. --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ee926aaeb..8c1dac023 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,10 @@ dpdata = "dpdata.cli:dpdata_cli" [project.optional-dependencies] ase = ['ase'] -amber = ['parmed'] +amber = [ + 'parmed; python_version >= "3.8"', + 'parmed<4; python_version < "3.8"', +] pymatgen = ['pymatgen'] docs = [ 'sphinx',