pixi.py
Go to the documentation of this file.
1 #! /usr/bin/env python3
2 import sys
3 
4 try:
5  import tomlkit
6 except ImportError as e:
7  print(
8  "tomlkit not found. Please make sure to install the package.\n"
9  "If it is already installed, make sure that it is included in the search path."
10  )
11  raise e
12 
13 
14 def update_pixi_version(version):
15  with open("pixi.toml") as f:
16  doc = tomlkit.load(f)
17  if "project" not in doc or "version" not in doc["project"]:
18  print("pixi.toml doesn't contain project / version")
19  return
20  doc["project"]["version"] = version
21  with open("pixi.toml", "w") as f:
22  tomlkit.dump(doc, f)
23 
24 
25 if __name__ == "__main__":
26  if len(sys.argv) == 2:
27  update_pixi_version(sys.argv[1])
28  else:
29  print("you must provide the version as argument.")
30  exit(1)
print
void print(const Eigen::SparseMatrix< Scalar, Options > &mat)
Definition: sparse_matrix.cpp:50
pixi.update_pixi_version
def update_pixi_version(version)
Definition: pixi.py:14


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45