Skip to content

Commit

Permalink
Merge pull request #22 from 2bndy5/dev
Browse files Browse the repository at this point in the history
What I learned from contributing to TMRh20's library.
  • Loading branch information
2bndy5 authored Jan 25, 2021
2 parents 66fa552 + d2114f9 commit 2ce7a1b
Show file tree
Hide file tree
Showing 35 changed files with 3,448 additions and 2,407 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
awk -F '\/' '{ print tolower($2) }' |
tr '-' '_'
)
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Versions
run: |
python3 --version
Expand All @@ -46,9 +46,10 @@ jobs:
run: |
source actions-ci/install.sh
- name: Pip install pylint, black, & Sphinx
- name: Pip install pylint, black, & Sphinx stuff
run: |
pip install pylint black Sphinx sphinx-rtd-theme
pip install pylint black
pip install -r docs/requirements.txt
- name: Library version
run: git describe --dirty --always --tags
- name: PyLint
Expand All @@ -57,6 +58,11 @@ jobs:
([[ ! -d "examples" ]] || pylint --disable=invalid-name $( 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
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
awk -F '\/' '{ print tolower($2) }' |
tr '-' '_'
)
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Versions
run: |
python3 --version
Expand Down Expand Up @@ -82,8 +82,8 @@ jobs:
- name: Build and publish
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
python setup.py sdist
twine upload dist/*
8 changes: 6 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
version: 2

python:
version: 3
requirements_file: requirements.txt
version: 3.7
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
:alt: Build Status

.. image:: https://img.shields.io/pypi/v/circuitpython-nrf24l01.svg
:alt: latest version on PyPI
:target: https://pypi.python.org/pypi/circuitpython-nrf24l01
:alt: latest version on PyPI

.. image:: https://pepy.tech/badge/circuitpython-nrf24l01?label=pypi%20downloads&logo=python
:alt: Total PyPI downloads
.. 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
=============
Expand Down
Loading

0 comments on commit 2ce7a1b

Please sign in to comment.