Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
f
m
o
q
s
v
Enumerations
Enumerator
a
b
c
d
g
h
n
o
r
s
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
g
h
i
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
d
e
f
h
i
n
o
p
q
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Typedefs
b
c
d
f
i
m
p
q
r
s
t
v
Enumerations
Enumerator
b
e
m
n
o
q
r
s
t
w
x
z
Macros
_
b
c
d
e
f
g
h
m
n
o
p
q
r
s
t
w
z
cmake
pyproject.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_pyproject_version
(version):
15
with
open(
"pyproject.toml"
)
as
f:
16
doc = tomlkit.load(f)
17
if
"project"
not
in
doc
or
"version"
not
in
doc[
"project"
]:
18
print(
"pyproject.toml doesn't contain project / version"
)
19
return
20
doc[
"project"
][
"version"
] = version
21
with
open(
"pyproject.toml"
,
"w"
)
as
f:
22
tomlkit.dump(doc, f)
23
24
25
if
__name__ ==
"__main__"
:
26
if
len(sys.argv) == 2:
27
update_pyproject_version
(sys.argv[1])
28
else
:
29
print(
"you must provide the version as argument."
)
30
exit(1)
pyproject::update_pyproject_version
def update_pyproject_version(version)
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14