Skip to content

Commit b2593e4

Browse files
committed
Changes
1 parent 6e3c759 commit b2593e4

File tree

11 files changed

+26
-28
lines changed

11 files changed

+26
-28
lines changed

.github/workflows/update_protobufs.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ jobs:
1515
run: |
1616
git pull --recurse-submodules
1717
git submodule update --remote --recursive
18-
18+
1919
- name: Download nanopb
2020
run: |
2121
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.6-linux-x86.tar.gz
2222
tar xvzf nanopb-0.4.6-linux-x86.tar.gz
2323
mv nanopb-0.4.6-linux-x86 nanopb-0.4.6
24-
24+
2525
- name: Re-generate protocol buffers
2626
run: |
27-
./bin/regen-protos.sh
28-
27+
./bin/regen-protobufs.sh
28+
2929
- name: Commit update
3030
run: |
3131
git config --global user.name 'github-actions'
3232
git config --global user.email '[email protected]'
3333
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
34-
git add proto
34+
git add protobufs
3535
git add meshtastic
3636
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"

.gitmodules

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ lint:
2626
slow:
2727
pytest -m unit --durations=5
2828

29-
proto: FORCE
29+
protobufs: FORCE
3030
git submodule update --init --recursive
3131
git pull --rebase
3232
git submodule update --remote --merge
33-
./bin/regen-protos.sh
33+
./bin/regen-protobufs.sh
3434

3535
# run the coverage report and open results in a browser
3636
cov:

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Meshtastic Python
22

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)
44
![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)
77
[![Fiscal Contributors](https://opencollective.com/meshtastic/tiers/badge.svg?label=Fiscal%20Contributors&color=deeppink)](https://opencollective.com/meshtastic/)
88
[![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)
99

@@ -14,12 +14,10 @@ This small library (and example application) provides an easy API for sending an
1414
It also provides access to any of the operations/data available in the device user interface or the Android application.
1515
Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
1616

17-
1817
**[Getting Started Guide](https://meshtastic.org/docs/software/python/python-installation)**
1918

2019
**[Documentation/API Reference](https://python.meshtastic.org/)**
2120

22-
2321
## Stats
2422

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 numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

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`
44

55
# workaround for import bug in protoc https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-690618628
66

77
if [[ $OSTYPE == 'darwin'* ]]; then
88
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)
1010
sed -i '' -E "s/^None = 0/globals()['None'] = 0/" meshtastic/mesh_pb2.py
1111
else
1212
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)
1414
sed -i -e "s/^None = 0/globals()['None'] = 0/" meshtastic/mesh_pb2.py
1515
fi

meshtastic/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Primary class: SerialInterface
55
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)
77
88
properties of SerialInterface:
99

meshtastic/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def support_info():
196196
print('')
197197
print('If having issues with meshtastic cli or python library')
198198
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')
200200
print('When adding an issue, be sure to include the following info:')
201201
print(f' System: {platform.system()}')
202202
print(f' Platform: {platform.platform()}')

proto

-1
This file was deleted.

protobufs

Submodule protobufs added at ed9f249

setup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
description="Python API & client shell for talking to Meshtastic devices",
1717
long_description=long_description,
1818
long_description_content_type="text/markdown",
19-
url="https://github.com/meshtastic/Meshtastic-python",
20-
author="Kevin Hester",
21-
author_email="[email protected]",
22-
license="MIT",
19+
url="https://github.com/meshtastic/python",
20+
author="Meshtastic Developers",
21+
author_email="[email protected]",
22+
license="GPL-3.0-only",
2323
classifiers=[
24-
"License :: OSI Approved :: MIT License",
24+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
2525
"Development Status :: 4 - Beta",
2626
"Programming Language :: Python :: 3.7",
2727
"Programming Language :: Python :: 3.8",

standalone_readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33

44
If you do not want to install python and/or the python libraries, you can download one of these
55
files to run the Meshtastic command line interface (CLI) as a standalone executable.

0 commit comments

Comments
 (0)