meshtastic2hass 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meshtastic2hass-1.0.2/.coveragerc +28 -0
- meshtastic2hass-1.0.2/.github/workflows/python-package.yml +37 -0
- meshtastic2hass-1.0.2/.github/workflows/python-publish.yml +39 -0
- meshtastic2hass-1.0.2/.gitignore +56 -0
- meshtastic2hass-1.0.2/LICENSE +674 -0
- meshtastic2hass-1.0.2/PKG-INFO +20 -0
- meshtastic2hass-1.0.2/README.md +27 -0
- meshtastic2hass-1.0.2/pyproject.toml +12 -0
- meshtastic2hass-1.0.2/setup.cfg +59 -0
- meshtastic2hass-1.0.2/setup.py +21 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass/__init__.py +16 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass/globals.py +250 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass/meshtastic2hass.py +319 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/PKG-INFO +20 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/SOURCES.txt +18 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/dependency_links.txt +1 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/not-zip-safe +1 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/requires.txt +6 -0
- meshtastic2hass-1.0.2/src/meshtastic2hass.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# .coveragerc to control coverage.py
|
|
2
|
+
[run]
|
|
3
|
+
branch = True
|
|
4
|
+
source = meshtastic2hass
|
|
5
|
+
# omit = bad_file.py
|
|
6
|
+
|
|
7
|
+
[paths]
|
|
8
|
+
source =
|
|
9
|
+
src/
|
|
10
|
+
*/site-packages/
|
|
11
|
+
|
|
12
|
+
[report]
|
|
13
|
+
# Regexes for lines to exclude from consideration
|
|
14
|
+
exclude_lines =
|
|
15
|
+
# Have to re-enable the standard pragma
|
|
16
|
+
pragma: no cover
|
|
17
|
+
|
|
18
|
+
# Don't complain about missing debug-only code:
|
|
19
|
+
def __repr__
|
|
20
|
+
if self\.debug
|
|
21
|
+
|
|
22
|
+
# Don't complain if tests don't hit defensive assertion code:
|
|
23
|
+
raise AssertionError
|
|
24
|
+
raise NotImplementedError
|
|
25
|
+
|
|
26
|
+
# Don't complain if non-runnable code isn't run:
|
|
27
|
+
if 0:
|
|
28
|
+
if __name__ == .__main__.:
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
|
|
4
|
+
name: Python package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "main" ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "main" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.9", "3.10", "3.11"]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
24
|
+
uses: actions/setup-python@v3
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python-version }}
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install flake8 pytest
|
|
31
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
32
|
+
- name: Lint with flake8
|
|
33
|
+
run: |
|
|
34
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
35
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
36
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
37
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v3
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@v3
|
|
27
|
+
with:
|
|
28
|
+
python-version: '3.x'
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install build
|
|
33
|
+
- name: Build package
|
|
34
|
+
run: python -m build
|
|
35
|
+
- name: Publish package
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
37
|
+
with:
|
|
38
|
+
user: __token__
|
|
39
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Temporary and binary files
|
|
2
|
+
*~
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.so
|
|
5
|
+
*.cfg
|
|
6
|
+
!.isort.cfg
|
|
7
|
+
!setup.cfg
|
|
8
|
+
*.orig
|
|
9
|
+
*.log
|
|
10
|
+
*.pot
|
|
11
|
+
__pycache__/*
|
|
12
|
+
.cache/*
|
|
13
|
+
.*.swp
|
|
14
|
+
*/.ipynb_checkpoints/*
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.code-workspace
|
|
17
|
+
|
|
18
|
+
# Project files
|
|
19
|
+
.ropeproject
|
|
20
|
+
.project
|
|
21
|
+
.pydevproject
|
|
22
|
+
.settings
|
|
23
|
+
.idea
|
|
24
|
+
.vscode
|
|
25
|
+
.trunk
|
|
26
|
+
tags
|
|
27
|
+
|
|
28
|
+
# Package files
|
|
29
|
+
*.egg
|
|
30
|
+
*.eggs/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg-info
|
|
33
|
+
|
|
34
|
+
# Unittest and coverage
|
|
35
|
+
htmlcov/*
|
|
36
|
+
.coverage
|
|
37
|
+
.coverage.*
|
|
38
|
+
.tox
|
|
39
|
+
junit*.xml
|
|
40
|
+
coverage.xml
|
|
41
|
+
.pytest_cache/
|
|
42
|
+
|
|
43
|
+
# Build and docs folder/files
|
|
44
|
+
build/*
|
|
45
|
+
dist/*
|
|
46
|
+
sdist/*
|
|
47
|
+
docs/api/*
|
|
48
|
+
docs/_rst/*
|
|
49
|
+
docs/_build/*
|
|
50
|
+
cover/*
|
|
51
|
+
MANIFEST
|
|
52
|
+
|
|
53
|
+
# Per-project virtualenvs
|
|
54
|
+
.venv*/
|
|
55
|
+
.conda*/
|
|
56
|
+
.python-version
|