cyrusyc commited on
Commit
1a2d805
·
1 Parent(s): bbbaa46

strip direct dependencies

Browse files
.github/README.md CHANGED
@@ -33,7 +33,7 @@ bash scripts/install-dgl.sh
33
  pip install -e .[test]
34
  pip install -e .[mace]
35
  # DeePMD
36
- DP_ENABLE_TENSORFLOW=0 pip install deepmd-kit@git+https://github.com/deepmodeling/deepmd-kit.git@v3.0.0b4
37
  ```
38
 
39
  ## Contribute
 
33
  pip install -e .[test]
34
  pip install -e .[mace]
35
  # DeePMD
36
+ DP_ENABLE_TENSORFLOW=0 pip install -e .[deepmd]
37
  ```
38
 
39
  ## Contribute
.github/workflows/release.yaml CHANGED
@@ -109,6 +109,29 @@ jobs:
109
  echo "Version bumped. Proceeding."
110
  echo "version_bumped=true" >> $GITHUB_ENV
111
  fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  # Step 7: Install Flit (only if version bumped)
114
  - name: Install Flit
 
109
  echo "Version bumped. Proceeding."
110
  echo "version_bumped=true" >> $GITHUB_ENV
111
  fi
112
+
113
+ # Step 5: Remove problematic optional dependencies
114
+ - name: Strip problematic optional dependencies
115
+ run: |
116
+ python - <<EOF
117
+ import toml
118
+ from pathlib import Path
119
+
120
+ pyproject_path = Path("pyproject.toml")
121
+ data = toml.loads(pyproject_path.read_text())
122
+
123
+ # Process optional dependencies
124
+ optional_deps = data.get("project", {}).get("optional-dependencies", {})
125
+ for key, deps in optional_deps.items():
126
+ new_deps = []
127
+ for dep in deps:
128
+ if "@git" in dep:
129
+ dep = dep.split("@git")[0].strip() # Remove everything after "@git"
130
+ new_deps.append(dep)
131
+ optional_deps[key] = new_deps
132
+
133
+ pyproject_path.write_text(toml.dumps(data))
134
+ EOF
135
 
136
  # Step 7: Install Flit (only if version bumped)
137
  - name: Install Flit
pyproject.toml CHANGED
@@ -67,6 +67,10 @@ test = [
67
  mace = [
68
  "mace-torch==0.3.9",
69
  ]
 
 
 
 
70
 
71
  [project.urls]
72
  Homepage = "https://github.com/atomind-ai/mlip-arena"
 
67
  mace = [
68
  "mace-torch==0.3.9",
69
  ]
70
+ deepmd = [
71
+ "torch==2.2.0",
72
+ "deepmd-kit@git+https://github.com/deepmodeling/deepmd-kit.git@v3.0.0b4"
73
+ ]
74
 
75
  [project.urls]
76
  Homepage = "https://github.com/atomind-ai/mlip-arena"