mirror of
https://github.com/meshtastic/python.git
synced 2026-01-19 21:28:07 -05:00
Compare commits
7 Commits
1.3alpha.3
...
1.3.35a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b60a438c9d | ||
|
|
3b3a610375 | ||
|
|
38f928bdb7 | ||
|
|
6272e992a4 | ||
|
|
3263fbca28 | ||
|
|
f0e7af389c | ||
|
|
471dfc7a29 |
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Bump the version number"""
|
"""Bump the version number"""
|
||||||
|
import re
|
||||||
|
|
||||||
version_filename = "setup.py"
|
version_filename = "setup.py"
|
||||||
|
|
||||||
@@ -19,7 +20,9 @@ with open(version_filename, 'w', encoding='utf-8') as f:
|
|||||||
words = line.split("=")
|
words = line.split("=")
|
||||||
# split the version into parts (by period)
|
# split the version into parts (by period)
|
||||||
v = words[1].split(".")
|
v = words[1].split(".")
|
||||||
ver = f'{v[0]}.{v[1]}.{int(v[2]) + 1}'
|
build_num = re.findall(r"\d+", v[2])[0]
|
||||||
|
new_build_num = str(int(build_num)+1)
|
||||||
|
ver = f'{v[0]}.{v[1]}.{v[2].replace(build_num, new_build_num)}'
|
||||||
f.write(f' version="{ver}",\n')
|
f.write(f' version="{ver}",\n')
|
||||||
else:
|
else:
|
||||||
f.write(line)
|
f.write(line)
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -12,7 +12,7 @@ with open("README.md", "r") as fh:
|
|||||||
# This call to setup() does all the work
|
# This call to setup() does all the work
|
||||||
setup(
|
setup(
|
||||||
name="meshtastic",
|
name="meshtastic",
|
||||||
version="1.3alpha.31",
|
version="1.3.34a",
|
||||||
description="Python API & client shell for talking to Meshtastic devices",
|
description="Python API & client shell for talking to Meshtastic devices",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|||||||
Reference in New Issue
Block a user