File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ import tomlkit
2
+
3
+
4
+ if __name__ == "__main__" :
5
+ with open ("pyproject.toml" , "r" ) as f :
6
+ data = tomlkit .load (f )
7
+
8
+ lst = []
9
+ for sub_lst in data ["project" ]["optional-dependencies" ].values ():
10
+ for el in sub_lst :
11
+ lst .append (el )
12
+
13
+ data ["project" ]["dependencies" ] += [el for el in set (lst ) if not el .startswith ("nglview" )]
14
+
15
+ with open ("pyproject.toml" , "w" ) as f :
16
+ f .writelines (tomlkit .dumps (data ))
Original file line number Diff line number Diff line change 80
80
- name : Pip check
81
81
shell : bash -l {0}
82
82
run : |
83
- pip install versioneer[toml]==0.29
83
+ pip install versioneer[toml]==0.29 tomlkit
84
+ python .ci_support/check.py
85
+ cat pyproject.toml
84
86
pip install . --no-deps --no-build-isolation
85
87
python -m pip check
86
88
You can’t perform that action at this time.
0 commit comments