File tree 11 files changed +26
-28
lines changed
11 files changed +26
-28
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,22 @@ jobs:
15
15
run : |
16
16
git pull --recurse-submodules
17
17
git submodule update --remote --recursive
18
-
18
+
19
19
- name : Download nanopb
20
20
run : |
21
21
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.6-linux-x86.tar.gz
22
22
tar xvzf nanopb-0.4.6-linux-x86.tar.gz
23
23
mv nanopb-0.4.6-linux-x86 nanopb-0.4.6
24
-
24
+
25
25
- name : Re-generate protocol buffers
26
26
run : |
27
- ./bin/regen-protos .sh
28
-
27
+ ./bin/regen-protobufs .sh
28
+
29
29
- name : Commit update
30
30
run : |
31
31
git config --global user.name 'github-actions'
32
32
git config --global user.email '[email protected] '
33
33
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
34
- git add proto
34
+ git add protobufs
35
35
git add meshtastic
36
36
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"
Original file line number Diff line number Diff line change 1
- [submodule "proto "]
2
- path = proto
3
- url = https ://github.com/meshtastic/Meshtastic- protobufs.git
1
+ [submodule "protobufs "]
2
+ path = protobufs
3
+ url = http ://github.com/meshtastic/protobufs
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ lint:
26
26
slow :
27
27
pytest -m unit --durations=5
28
28
29
- proto : FORCE
29
+ protobufs : FORCE
30
30
git submodule update --init --recursive
31
31
git pull --rebase
32
32
git submodule update --remote --merge
33
- ./bin/regen-protos .sh
33
+ ./bin/regen-protobufs .sh
34
34
35
35
# run the coverage report and open results in a browser
36
36
cov :
Original file line number Diff line number Diff line change 1
1
# Meshtastic Python
2
2
3
- [ ![ codecov] ( https://codecov.io/gh/meshtastic/Meshtastic- python/branch/master/graph/badge.svg?token=TIWPJL73KV )] ( https://codecov.io/gh/meshtastic/Meshtastic- python )
3
+ [ ![ codecov] ( https://codecov.io/gh/meshtastic/python/branch/master/graph/badge.svg?token=TIWPJL73KV )] ( https://codecov.io/gh/meshtastic/python )
4
4
![ PyPI - Downloads] ( https://img.shields.io/pypi/dm/meshtastic )
5
- [ ![ CI] ( https://img.shields.io/github/workflow/status/meshtastic/Meshtastic- python/CI?label=actions&logo=github&color=yellow )] ( https://github.com/meshtastic/Meshtastic- python/actions/workflows/ci.yml )
6
- [ ![ CLA assistant] ( https://cla-assistant.io/readme/badge/meshtastic/Meshtastic- python )] ( https://cla-assistant.io/meshtastic/Meshtastic- python )
5
+ [ ![ CI] ( https://img.shields.io/github/workflow/status/meshtastic/python/CI?label=actions&logo=github&color=yellow )] ( https://github.com/meshtastic/python/actions/workflows/ci.yml )
6
+ [ ![ CLA assistant] ( https://cla-assistant.io/readme/badge/meshtastic/python )] ( https://cla-assistant.io/meshtastic/python )
7
7
[ ![ Fiscal Contributors] ( https://opencollective.com/meshtastic/tiers/badge.svg?label=Fiscal%20Contributors&color=deeppink )] ( https://opencollective.com/meshtastic/ )
8
8
[ ![ Vercel] ( https://img.shields.io/static/v1?label=Powered%20by&message=Vercel&style=flat&logo=vercel&color=000000 )] ( https://vercel.com?utm_source=meshtastic&utm_campaign=oss )
9
9
@@ -14,12 +14,10 @@ This small library (and example application) provides an easy API for sending an
14
14
It also provides access to any of the operations/data available in the device user interface or the Android application.
15
15
Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
16
16
17
-
18
17
** [ Getting Started Guide] ( https://meshtastic.org/docs/software/python/python-installation ) **
19
18
20
19
** [ Documentation/API Reference] ( https://python.meshtastic.org/ ) **
21
20
22
-
23
21
## Stats
24
22
25
- ![ Alt] ( https://repobeats.axiom.co/api/embed/3d64492daee3a603497071b45e6cdb81d9b2d421 .svg " Repobeats analytics image ")
23
+ ![ Alt] ( https://repobeats.axiom.co/api/embed/c71ee8fc4a79690402e5d2807a41eec5e96d9039 .svg " Repobeats analytics image ")
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- ./nanopb-0.4.6/generator-bin/protoc -I=proto --python_out meshtastic ` ls proto /* .proto`
3
+ ./nanopb-0.4.6/generator-bin/protoc -I=protobufs --python_out meshtastic ` ls protobufs /* .proto`
4
4
5
5
# workaround for import bug in protoc https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-690618628
6
6
7
7
if [[ $OSTYPE == ' darwin' * ]]; then
8
8
sed -i ' ' -E ' s/^(import.*_pb2)/from . \1/' meshtastic/* .py
9
- # automate the current workaround (may be related to Meshtastic-protobufs issue #27 https://github.com/meshtastic/Meshtastic- protobufs/issues/27)
9
+ # automate the current workaround (may be related to Meshtastic-protobufs issue #27 https://github.com/meshtastic/protobufs/issues/27)
10
10
sed -i ' ' -E " s/^None = 0/globals()['None'] = 0/" meshtastic/mesh_pb2.py
11
11
else
12
12
sed -i -e ' s/^import.*_pb2/from . \0/' meshtastic/* .py
13
- # automate the current workaround (may be related to Meshtastic-protobufs issue #27 https://github.com/meshtastic/Meshtastic- protobufs/issues/27)
13
+ # automate the current workaround (may be related to Meshtastic-protobufs issue #27 https://github.com/meshtastic/protobufs/issues/27)
14
14
sed -i -e " s/^None = 0/globals()['None'] = 0/" meshtastic/mesh_pb2.py
15
15
fi
Original file line number Diff line number Diff line change 3
3
4
4
Primary class: SerialInterface
5
5
Install with pip: "[pip3 install meshtastic](https://pypi.org/project/meshtastic/)"
6
- Source code on [github](https://github.com/meshtastic/Meshtastic- python)
6
+ Source code on [github](https://github.com/meshtastic/python)
7
7
8
8
properties of SerialInterface:
9
9
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def support_info():
196
196
print ('' )
197
197
print ('If having issues with meshtastic cli or python library' )
198
198
print ('or wish to make feature requests, visit:' )
199
- print ('https://github.com/meshtastic/Meshtastic- python/issues' )
199
+ print ('https://github.com/meshtastic/python/issues' )
200
200
print ('When adding an issue, be sure to include the following info:' )
201
201
print (f' System: { platform .system ()} ' )
202
202
print (f' Platform: { platform .platform ()} ' )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
description = "Python API & client shell for talking to Meshtastic devices" ,
17
17
long_description = long_description ,
18
18
long_description_content_type = "text/markdown" ,
19
- url = "https://github.com/meshtastic/Meshtastic- python" ,
20
- author = "Kevin Hester " ,
21
-
22
- license = "MIT " ,
19
+ url = "https://github.com/meshtastic/python" ,
20
+ author = "Meshtastic Developers " ,
21
+
22
+ license = "GPL-3.0-only " ,
23
23
classifiers = [
24
- "License :: OSI Approved :: MIT License" ,
24
+ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
25
25
"Development Status :: 4 - Beta" ,
26
26
"Programming Language :: Python :: 3.7" ,
27
27
"Programming Language :: Python :: 3.8" ,
Original file line number Diff line number Diff line change 1
1
readme.txt for single standalone executable zip files that can be
2
- downloaded from https://github.com/meshtastic/Meshtastic- python/releases
2
+ downloaded from https://github.com/meshtastic/python/releases
3
3
4
4
If you do not want to install python and/or the python libraries, you can download one of these
5
5
files to run the Meshtastic command line interface (CLI) as a standalone executable.
You can’t perform that action at this time.
0 commit comments