-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RF24Network, RF24Mesh, and RXing BLE (#33)
- Loading branch information
Showing
49 changed files
with
6,400 additions
and
3,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.py text eol=lf | ||
*.rst text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,90 @@ | ||
name: Build CI | ||
|
||
on: [pull_request, push] | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Translate Repo Name For Build Tools filename_prefix | ||
id: repo-name | ||
run: | | ||
echo ::set-output name=repo-name::$( | ||
echo ${{ github.repository }} | | ||
awk -F '\/' '{ print tolower($2) }' | | ||
tr '_' '-' | ||
) | ||
- name: Translate Repo Name For Build Tools package_prefix | ||
id: pkg-name | ||
run: | | ||
echo ::set-output name=pkg-name::$( | ||
echo ${{ github.repository }} | | ||
awk -F '\/' '{ print tolower($2) }' | | ||
tr '-' '_' | ||
) | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Versions | ||
run: | | ||
python3 --version | ||
- name: Checkout Current Repo | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Checkout tools repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: adafruit/actions-ci-circuitpython-libs | ||
path: actions-ci | ||
- name: Install deps | ||
run: | | ||
source actions-ci/install.sh | ||
- name: Pip install pylint, black, & Sphinx stuff | ||
run: | | ||
pip install pylint black | ||
pip install -r docs/requirements.txt | ||
- name: Library version | ||
run: git describe --dirty --always --tags | ||
- name: PyLint | ||
run: | | ||
pylint --disable=too-many-instance-attributes,too-many-public-methods,duplicate-code circuitpython_nrf24l01/*.py | ||
([[ ! -d "examples" ]] || pylint --disable=invalid-name,duplicate-code $( find . -path "./examples/*.py" )) | ||
- name: Build assets | ||
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }} | ||
- name: Archive bundles | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bundles | ||
path: ${{ github.workspace }}/bundles/ | ||
- name: Build docs | ||
working-directory: docs | ||
run: sphinx-build -E -W -b html . _build/html | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
|
||
- name: Translate Repo Name For Build Tools filename_prefix | ||
id: repo-name | ||
run: | | ||
echo ::set-output name=repo-name::$( | ||
echo ${{ github.repository }} | | ||
awk -F '\/' '{ print tolower($2) }' | | ||
tr '_' '-' | ||
) | ||
- name: Translate Repo Name For Build Tools package_prefix | ||
id: pkg-name | ||
run: | | ||
echo ::set-output name=pkg-name::$( | ||
echo ${{ github.repository }} | | ||
awk -F '\/' '{ print tolower($2) }' | | ||
tr '-' '_' | ||
) | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Versions | ||
run: | | ||
python3 --version | ||
- name: Checkout Current Repo | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
|
||
- name: Checkout tools repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: adafruit/actions-ci-circuitpython-libs | ||
path: actions-ci | ||
|
||
- name: Install deps | ||
run: | | ||
source actions-ci/install.sh | ||
- name: Pip install pylint & Sphinx stuff (and graphviz) | ||
run: | | ||
pip install --upgrade setuptools twine wheel pylint | ||
pip install -r docs/requirements.txt | ||
sudo apt install graphviz | ||
- name: Library version | ||
run: git describe --dirty --always --tags | ||
|
||
- name: PyLint | ||
run: | | ||
pylint circuitpython_nrf24l01/*.py circuitpython_nrf24l01/*/*.py | ||
pylint --disable=c-extension-no-member examples/*.py | ||
- name: Build assets | ||
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }} | ||
|
||
- name: Archive bundles | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bundles | ||
path: ${{ github.workspace }}/bundles/ | ||
|
||
- name: Build docs | ||
working-directory: docs | ||
run: sphinx-build -E -W -b html . _build/html | ||
|
||
- name: Check package distribution | ||
run: | | ||
python setup.py sdist | ||
twine check dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
|
||
.. image:: https://readthedocs.org/projects/circuitpython-nrf24l01/badge/?version=stable | ||
:target: https://circuitpython-nrf24l01.readthedocs.io/en/stable/ | ||
:alt: Documentation Status | ||
|
||
.. image:: https://github.com/2bndy5/CircuitPython_nRF24L01/workflows/Build%20CI/badge.svg | ||
:target: https://github.com/2bndy5/CircuitPython_nRF24L01/actions?query=workflow%3A%22Build+CI%22 | ||
:alt: Build Status | ||
|
||
.. image:: https://img.shields.io/pypi/v/circuitpython-nrf24l01.svg | ||
:target: https://pypi.python.org/pypi/circuitpython-nrf24l01 | ||
:alt: latest version on PyPI | ||
|
||
.. image:: https://static.pepy.tech/personalized-badge/circuitpython-nrf24l01?period=total&units=international_system&left_color=grey&right_color=blue&left_text=PyPi%20Downloads | ||
:target: https://pepy.tech/project/circuitpython-nrf24l01 | ||
:alt: Total PyPI downloads | ||
|
||
Read The Docs | ||
============= | ||
|
||
Documentation for this library is hosted at | ||
`ReadTheDocs.org <http://circuitpython-nrf24l01.rtfd.io/>`_ | ||
|
||
About this Library | ||
================== | ||
|
||
This is a Circuitpython driver library for the nRF24L01 transceiver. | ||
|
||
Originally this code was a Micropython module written by Damien P. George | ||
& Peter Hinch which can still be found `here | ||
<https://github.com/micropython/micropython/tree/master/drivers/nrf24l01>`_ | ||
|
||
The Micropython source has since been rewritten to expose all the nRF24L01's | ||
features and for Circuitpython compatible devices (including linux-based | ||
SoC computers like the Raspberry Pi). | ||
Modified by Brendan Doherty & Rhys Thomas. | ||
|
||
* Authors: Damien P. George, Peter Hinch, Rhys Thomas, Brendan Doherty | ||
|
||
.. image:: https://readthedocs.org/projects/circuitpython-nrf24l01/badge/?version=stable | ||
:target: https://circuitpython-nrf24l01.readthedocs.io/en/stable/ | ||
:alt: Documentation Status | ||
|
||
.. image:: https://github.com/2bndy5/CircuitPython_nRF24L01/workflows/Build%20CI/badge.svg | ||
:target: https://github.com/2bndy5/CircuitPython_nRF24L01/actions?query=workflow%3A%22Build+CI%22 | ||
:alt: Build Status | ||
|
||
.. image:: https://img.shields.io/pypi/v/circuitpython-nrf24l01.svg | ||
:target: https://pypi.python.org/pypi/circuitpython-nrf24l01 | ||
:alt: latest version on PyPI | ||
|
||
.. image:: https://static.pepy.tech/personalized-badge/circuitpython-nrf24l01?period=total&units=international_system&left_color=grey&right_color=blue&left_text=PyPi%20Downloads | ||
:target: https://pepy.tech/project/circuitpython-nrf24l01 | ||
:alt: Total PyPI downloads | ||
|
||
Read The Docs | ||
============= | ||
|
||
Documentation for this library is hosted at https://circuitpython-nrf24l01.rtfd.io/ | ||
|
||
About this Library | ||
================== | ||
|
||
This is a Circuitpython driver library for the nRF24L01 transceiver. | ||
|
||
Originally this code was a Micropython module written by Damien P. George | ||
& Peter Hinch which can still be found `here | ||
<https://github.com/micropython/micropython/tree/master/drivers/nrf24l01>`_ | ||
|
||
The Micropython source has since been rewritten to expose all the nRF24L01's | ||
features and for Circuitpython compatible devices (including linux-based | ||
SoC computers like the Raspberry Pi). | ||
Modified by Brendan Doherty & Rhys Thomas. | ||
|
||
* Authors: Damien P. George, Peter Hinch, Rhys Thomas, Brendan Doherty |
Oops, something went wrong.