Skip to content

Edit exit() function #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 87 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
e129bdb
Add travis config for mpy generation.
tdicola Oct 20, 2017
0feedd0
Added pylint to project with update to code
mrmcwethy Dec 9, 2017
a9bdb62
Adding repo info to .py file
mrmcwethy Dec 9, 2017
bb311b7
Fixed .yml file
mrmcwethy Dec 9, 2017
88dc030
Fixed typo
mrmcwethy Dec 9, 2017
ad18649
Merge branch 'master' into lint
mrmcwethy Dec 10, 2017
66e8866
Merge branch 'master' into lint
mrmcwethy Dec 10, 2017
617628d
Merge pull request #3 from mrmcwethy/lint
kattni Dec 10, 2017
fd756be
added simpletest example
sommersoft Feb 25, 2018
d8e0222
renamed led display example
sommersoft Feb 25, 2018
70479e9
setup docs folder
sommersoft Feb 25, 2018
662fe45
updated .travis & .readthedocs yml
sommersoft Feb 25, 2018
fecbbfa
updated README
sommersoft Feb 25, 2018
49db26f
sphinx fix; README
sommersoft Feb 25, 2018
b5d59b3
updated examples; requested change in PR #4
sommersoft Feb 25, 2018
42bc581
Merge pull request #4 from sommersoft/new_docs
kattni Feb 28, 2018
cffe919
updated README; added Travis badge
sommersoft Mar 10, 2018
5794b1c
updated conf.py; bus device intersphinx link
sommersoft Mar 10, 2018
d3b830a
Merge pull request #5 from sommersoft/new_docs
kattni Mar 11, 2018
2531cb0
added LICENSE file
sommersoft Mar 16, 2018
7f2dad7
Merge pull request #6 from sommersoft/new_docs
kattni Mar 17, 2018
354dbf9
modifued get_pulses to reduce errors - wait for timeout then use las…
jerryneedell Apr 16, 2018
053e0f4
pylint fix
jerryneedell Apr 16, 2018
0cf82dc
pylint fix
jerryneedell Apr 16, 2018
45a7fb5
remove commented code
jerryneedell Apr 16, 2018
ddda939
Merge pull request #8 from jerryneedell/jerryn_dht
tannewt Apr 20, 2018
2046e8e
fix DHT22 handling of negative temperatures
jerryneedell Apr 28, 2018
c8dbbdb
fix typo
jerryneedell Apr 28, 2018
2aaaf1b
fix pylint issue
jerryneedell Apr 28, 2018
a384b7d
Merge pull request #10 from jerryneedell/jerryn_negative
dhalbert Apr 29, 2018
eaa625d
add setup.py & better .gitignore, misc. tweaks for pypi
brennen Jul 27, 2018
28efad4
Merge pull request #11 from adafruit/pypi
tannewt Jul 30, 2018
ef73b96
Updates for PyPi, linting.
kattni Aug 3, 2018
bd8aa8e
linting
kattni Aug 3, 2018
da125e7
Merge pull request #13 from kattni/pypi-fixes
kattni Aug 3, 2018
23254ca
ignore the board module imports in .pylintrc
sommersoft Aug 15, 2018
93aed21
fix first read issue
jerryneedell Oct 14, 2018
8d7ce76
fix pylint issue - line too long
jerryneedell Oct 14, 2018
ddb9d66
fix continuation line
jerryneedell Oct 15, 2018
bcdc7a7
fix continuation line - add comment
jerryneedell Oct 15, 2018
125890e
Fix typo
tannewt Oct 16, 2018
5493703
Merge pull request #17 from jerryneedell/jerryn_None
tannewt Oct 16, 2018
d4ec646
resolve pr_14 conflicts - fix bug with sample delay
jerryneedell Oct 17, 2018
de4f5f3
pylint - indent error
jerryneedell Oct 17, 2018
d122696
tweak to RPi pulse detect
jerryneedell Oct 17, 2018
d2da873
make delay for bitbang same as for pulseio
jerryneedell Oct 17, 2018
1051579
create private functions for pulseio and bitbang version of getting …
jerryneedell Oct 19, 2018
5dbcca1
Merge pull request #18 from jerryneedell/jerryn_fix_pr_14
tannewt Oct 23, 2018
98fcb2b
removed context for pulse_in to make linux happy, and change delay to…
ladyada Dec 1, 2018
90149ac
nicetabs
ladyada Dec 1, 2018
507f643
Merge pull request #20 from ladyada/master
kattni Dec 2, 2018
62bb5c8
change 'travis-ci.org' to 'travis-ci.com'
sommersoft Dec 21, 2018
ef20e99
Merge pull request #21 from sommersoft/readme_fix_travis
kattni Dec 21, 2018
0643ebb
Lack of PulseIn detection now working
makermelissa Sep 11, 2019
558e53e
Merge pull request #25 from makermelissa/master
ladyada Sep 11, 2019
097531b
Added PyPi installation instructions & documentation section
evaherrada Oct 18, 2019
b88c893
Merge pull request #26 from adafruit/dherrada-patch-1
siddacious Oct 20, 2019
3248e3e
Moved repository from Travis to GitHub Actions
evaherrada Jan 4, 2020
fe36b5f
Merge pull request #30 from adafruit/dherrada-patch-1
ladyada Jan 5, 2020
0ea15b6
Update pylint examples directive
evaherrada Jan 23, 2020
7060d64
#34 update readme
Feb 28, 2020
6176550
Merge pull request #35 from yashino91/readme
ladyada Feb 28, 2020
c23e740
update code of conduct
sommersoft Mar 16, 2020
be6d7e9
Merge pull request #36 from sommersoft/patch_coc_2
sommersoft Mar 16, 2020
b9ef1b5
update pylintrc for black
sommersoft Mar 6, 2020
cd063e5
update build.yml to pip install pylint black sphinx
sommersoft Mar 17, 2020
01c7d78
Ran black, updated to pylint 2.x
evaherrada Mar 20, 2020
20c4da3
Merge pull request #37 from adafruit/pylint-update
kattni Mar 20, 2020
1833318
Do not update sensor values on error
michaellass Jan 28, 2020
e6880d7
Reject humidity outside of range (0, 100) as unplausible
michaellass Jan 28, 2020
efda9b8
Reduce number of branches to make pylint happy
michaellass Feb 2, 2020
92a195b
Merge pull request #31 from michaellass/error_handling
FoamyGuy Apr 4, 2020
b770bb4
build.yml: add black formatting check
sommersoft Apr 7, 2020
b9acab8
Black reformatting with Python 3 target.
kattni Apr 8, 2020
2625687
Merge pull request #41 from adafruit/black-update
tannewt Apr 9, 2020
35cc6b4
Fixed discord invite link
evaherrada Jul 8, 2020
5c1da73
Deinitialize pulsein object on exit, gave option to choose whether or…
evaherrada Jul 16, 2020
16400df
Cleaned up example
evaherrada Jul 17, 2020
5ea7589
Formatting
evaherrada Jul 17, 2020
a554d72
Added exception for trying to bitbang in circuitpython
evaherrada Jul 24, 2020
847ce95
Immediately pause pulse_in after initialization
michaellass Aug 6, 2020
a515f92
add docstring for use_pulseio kwarg
jerryneedell Aug 19, 2020
a67ac23
Merge pull request #46 from adafruit/pulseio-fix
kattni Aug 19, 2020
91f6e8c
Merge pull request #47 from michaellass/start_paused
kattni Aug 25, 2020
9a0cb0b
Linted
evaherrada Aug 31, 2020
85a8f32
Merge pull request #48 from adafruit/lint
evaherrada Aug 31, 2020
5fad2ce
Removed a print() in exit function
SecT0uch Nov 13, 2020
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
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build CI

on: [pull_request, 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: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- 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 dependencies
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
run: |
source actions-ci/install.sh
- name: Pip install pylint, black, & Sphinx
run: |
pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
- name: Library version
run: git describe --dirty --always --tags
- name: Check formatting
run: |
black --check --target-version=py35 .
- name: PyLint
run: |
pylint $( find . -path './adafruit*.py' )
([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
- name: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
81 changes: 81 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Release Actions

on:
release:
types: [published]

jobs:
upload-release-assets:
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: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- 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: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
- name: Upload Release Assets
# the 'official' actions version does not yet support dynamically
# supplying asset names to upload. @csexton's version chosen based on
# discussion in the issue below, as its the simplest to implement and
# allows for selecting files with a pattern.
# https://github.com/actions/upload-release-asset/issues/4
#uses: actions/[email protected]
uses: csexton/release-asset-action@master
with:
pattern: "bundles/*"
github-token: ${{ secrets.GITHUB_TOKEN }}

upload-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check For setup.py
id: need-pypi
run: |
echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
- name: Set up Python
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- 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 }}
run: |
python setup.py sdist
twine upload dist/*
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.mpy
.idea
__pycache__
_build
*.pyc
.env
bundles
*.DS_Store
.eggs
dist
**/*.egg-info
Loading