Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0459046
Update language support to tested python versions
destos Mar 30, 2022
4cce115
Update README.md
destos Mar 30, 2022
b3ab576
Docs cleanup and config
destos Mar 31, 2022
b343e9a
Move board module out of msp, add tests
destos Apr 1, 2022
a5d0a52
Create .tool-versions
destos Apr 1, 2022
4f5f10f
Update usage.md
destos Apr 1, 2022
c11a641
Typing fixes
destos Apr 1, 2022
95bbd6c
Adding rate and pid profile selection struct and adapters
destos Apr 4, 2022
8b0b2bf
temporary fix for cli loading error
destos Apr 4, 2022
ce118e0
Update README.md
destos Apr 4, 2022
66ae10d
refactoring Board, switching to async serial, initial profile switchi…
destos Apr 11, 2022
9b17395
Get rid of INAV codes for now
destos Apr 11, 2022
e94bb8f
add pytest-asyncio
destos Apr 11, 2022
97d24eb
Start profiles usage docs
destos Apr 12, 2022
f0ca0dc
Profile class adjustments and start tests
destos Apr 15, 2022
86460b8
Update pyproject.toml
destos Apr 15, 2022
8e19a18
Update README.md
destos Apr 15, 2022
132facf
Adding and fixing profile tests
destos Apr 15, 2022
4658375
proper yaml indent
destos Apr 16, 2022
f733b57
Slight doc re-org, adding md_in_html and tweaking nav on usage
destos Apr 16, 2022
732d3be
autoflake8
destos Apr 16, 2022
ece60bd
BuildInfo struct updated, added arrow
destos Apr 16, 2022
d9880dc
Move msp structs to fields, starting new message handling and yaml ideas
destos Apr 17, 2022
4e518a4
introduce MSPVersion struct
destos Apr 20, 2022
85c6fdf
Create test_structs.py
destos Apr 20, 2022
1f7420b
Big restructuring of message field structs to use dataclasses
destos Apr 21, 2022
f45a8b4
Making construct-typing not optional as construct_typed modules are u…
destos Apr 21, 2022
b6635f3
Make 3.11 alpha experimental and failures continue tests
destos Apr 21, 2022
e8b41dc
Update dev.yml
destos Apr 21, 2022
b4fd58a
Update dev.yml
destos Apr 21, 2022
63ef67b
Update dev.yml
destos Apr 21, 2022
2feb1dc
convert board to dataclass, init messages
destos Apr 30, 2022
9742a65
mypy fixes, ignore cli
destos Apr 30, 2022
2d59952
move gh-actions build/lint/format back to 3.9
destos Apr 30, 2022
da62454
Update setup.cfg
destos Apr 30, 2022
b48f9e9
separate profile into own module, add board tests
destos May 1, 2022
9d3beb3
Disabled experimental python versions for now
destos May 1, 2022
4111ba5
Merge pull request #7 from destos/profiles
destos May 1, 2022
404d903
Docs, adding board usage page + messages, some styles
destos May 5, 2022
819d0c2
board message operators, fixes, re-worked field struct generation
destos May 5, 2022
de40bba
fix issues with mkdocs
destos May 8, 2022
701cf6e
Adding more fields, more docs, test fixes + failures
destos May 8, 2022
0789f4d
Add textual
destos May 10, 2022
637b9ab
cli pass through, wip typing
destos May 10, 2022
c645e0f
fix tests
destos May 19, 2022
1c56a99
Remove typing from messaging methods for now
destos May 20, 2022
7f945e3
Create dependabot.yml
destos May 18, 2022
938ed8b
Update dependabot.yml
destos May 18, 2022
60dadad
Bump rich-click from 1.3.0 to 1.4
dependabot[bot] May 21, 2022
8b22cb8
Bump mkdocs-material from 8.2.13 to 8.2.15
dependabot[bot] May 21, 2022
17b82f8
Bump dataclass-wizard from 0.22.0 to 0.22.1
dependabot[bot] May 21, 2022
3c85006
Bump mkdocs-include-markdown-plugin from 3.4.0 to 3.4.1
dependabot[bot] May 21, 2022
571f0d9
Merge pull request #14 from destos/dependabot/pip/mkdocs-material-8.2.15
destos May 21, 2022
afa231c
Merge pull request #12 from destos/dependabot/pip/dataclass-wizard-0.…
destos May 21, 2022
413688d
Merge pull request #11 from destos/dependabot/pip/mkdocs-include-mark…
destos May 21, 2022
a9302de
Merge pull request #15 from destos/dependabot/pip/rich-click-1.4
destos May 21, 2022
61f3da3
Update poetry.lock
destos May 21, 2022
4049bac
Bump mypy from 0.940 to 0.950
dependabot[bot] May 21, 2022
ac60527
Merge pull request #13 from destos/dependabot/pip/mypy-0.950
destos May 21, 2022
1d2f753
Bump mkdocs-material from 8.2.15 to 8.5.4
dependabot[bot] Oct 1, 2022
91296bd
Merge pull request #31 from destos/dependabot/pip/mkdocs-material-8.5.4
destos Feb 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ insert_final_newline = false
[makefile]
indent_style = tab

[*.{yml, yaml}]
[*.{yml,yaml}]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Bonfo configuration management version:
* Bonfo version:
* Python version:
* Operating System:

Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
assignees:
- "destos"
23 changes: 17 additions & 6 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: dev workflow
on:
# Triggers the workflow on push or pull request events but only for the dev branch
push:
branches: [ dev ]
branches: [dev]
pull_request:
branches: [ dev ]
branches: [dev]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -20,26 +20,37 @@ jobs:
# The type of runner that the job will run on
strategy:
matrix:
python-versions: ["3.9", "3.10", "3.11.0-alpha - 3.11.0"]
python-version: ["3.9", "3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
experimental: [false]
# include:
# - python-version: 3.11.0-alpha - 3.11.0
# os: ubuntu-latest
# experimental: true
# - python-version: 3.11.0-alpha - 3.11.0
# os: macos-latest
# experimental: true
# - python-version: 3.11.0-alpha - 3.11.0
# os: windows-latest
# experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-versions }}
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox tox-gh-actions

- name: test with tox
run:
tox
run: tox

- name: list files
run: ls -l .
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: stage & preview workflow
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,22 +18,21 @@ jobs:

strategy:
matrix:
python-versions: [ "3.10" ]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-versions }}
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox tox-gh-actions

- name: test with tox
run:
tox
run: tox

- name: Build wheels and source tarball
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Triggers the workflow on push events but only for new version tags
push:
tags:
- 'v*'
- "v*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -21,7 +21,7 @@ jobs:

strategy:
matrix:
python-versions: ["3.10"]
python-version: ["3.10"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -43,7 +43,7 @@ jobs:

- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-versions }}
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ ENV/

# mkdocs build dir
site/

# examples are not commited for now
examples/
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.10.4
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog
## 0.1.1 (2022-04-XX)

## [0.1.0] - 2022-03-29
* Switched to asyncio
* Added profile management to Board class
* Added tests for Board and Profile classes
* Switched to dataclasses for message struct generation

## 0.1.0 (2022-03-29)

* First release on PyPI.
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.

Expand Down Expand Up @@ -29,8 +27,8 @@ and "help wanted" is open to whoever wants to implement it.

### Write Documentation

Bonfo configuration management could always use more documentation, whether as part of the
official Bonfo configuration management docs, in docstrings, or even on the web in blog posts,
Bonfo could always use more documentation, whether as part of the
official Bonfo docs, in docstrings, or even on the web in blog posts,
articles, and such.

### Submit Feedback
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Bonfo - Betaflight configuration management
# Bonfo - drone configuration management

[![pypi](https://img.shields.io/pypi/v/bonfo.svg)](https://pypi.org/project/bonfo/)
[![python](https://img.shields.io/pypi/pyversions/bonfo.svg)](https://pypi.org/project/bonfo/)
[![Build Status](https://github.com/destos/bonfo/actions/workflows/dev.yml/badge.svg)](https://github.com/destos/bonfo/actions/workflows/dev.yml)
[![Build Status](https://github.com/destos/bonfo/actions/workflows/release.yml/badge.svg)](https://github.com/destos/bonfo/actions/workflows/release.yml)
[![Dev Build Status](https://github.com/destos/bonfo/actions/workflows/dev.yml/badge.svg?branch=dev)](https://github.com/destos/bonfo/actions/workflows/dev.yml)
[![codecov](https://codecov.io/gh/destos/bonfo/branch/main/graphs/badge.svg)](https://codecov.io/github/destos/bonfo)

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

* Documentation: <https://destos.github.io/bonfo>
* GitHub: <https://github.com/destos/bonfo>
Expand All @@ -19,3 +20,5 @@
## Credits

This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [waynerv/cookiecutter-pypackage](https://github.com/waynerv/cookiecutter-pypackage) project template.

Inspired by some of the existing multi-wii protocol packages like [YAMSPy](https://pypi.org/project/yamspy/)
9 changes: 6 additions & 3 deletions bonfo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Top-level package for Bonfo configuration management."""
"""Top-level package for Bonfo."""

__author__ = """Patrick Forringer"""
__email__ = 'patrick@forringer.com'
__version__ = '0.1.0'
__email__ = "patrick@forringer.com"
__version__ = "0.1.0"

from .board import Board # noqa
from .profile import Profile # noqa
Loading