-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix pip check for optional dependencies (#405)
* fix pip check for optional dependencies * install optional dependencies * Update pipeline.yml * add new line * Update check.py * Update pipeline.yml * Update environment-mace.yml
- Loading branch information
1 parent
39a63ac
commit 091eb1b
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import tomlkit | ||
|
||
|
||
if __name__ == "__main__": | ||
with open("pyproject.toml", "r") as f: | ||
data = tomlkit.load(f) | ||
|
||
lst = [] | ||
for sub_lst in data["project"]["optional-dependencies"].values(): | ||
for el in sub_lst: | ||
lst.append(el) | ||
|
||
data["project"]["dependencies"] += [el for el in set(lst) if not el.startswith("pwtools")] | ||
|
||
with open("pyproject.toml", "w") as f: | ||
f.writelines(tomlkit.dumps(data)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ channels: | |
- conda-forge | ||
dependencies: | ||
- pymace =0.3.6 | ||
- pytorch =2.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ channels: | |
- conda-forge | ||
dependencies: | ||
- qe =7.2 | ||
- pwtools =1.2.3 | ||
- pwtools =1.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters