Skip to content

Updates for PyPi, linting. #13

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

Merged
merged 2 commits into from
Aug 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ python:
cache:
pip: true
deploy:
provider: releases
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: "$TRAVIS_BUILD_DIR/bundles/*"
skip_cleanup: true
overwrite: true
on:
tags: true
- provider: pypi
Expand All @@ -22,6 +23,7 @@ deploy:
install:
- pip install -r requirements.txt
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
- pip install --force-reinstall pylint==1.9.2
script:
- pylint adafruit_dht.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sphinx.ext.viewcode',
]

autodoc_mock_imports = ["pulseio"]

intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
'BusDevice': ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),
Expand Down
2 changes: 1 addition & 1 deletion examples/dht_simpletest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import time
import adafruit_dht
from board import D2
import adafruit_dht

#initial the dht device
dhtDevice = adafruit_dht.DHT22(D2)
Expand Down
8 changes: 4 additions & 4 deletions examples/dht_to_led_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"""
# import for dht devices and 7-segment display devices
import time
import adafruit_dht
from adafruit_max7219 import bcddigits
from board import D2, TX, RX, D1
import busio
import digitalio
import adafruit_dht
from adafruit_max7219 import bcddigits

from board import D2, TX, RX, A2

clk = RX
din = TX
cs = digitalio.DigitalInOut(A2)
cs = digitalio.DigitalInOut(D1)
spi = busio.SPI(clk, MOSI=din)
display = bcddigits.BCDDigits(spi, cs, nDigits=8)
display.brightness(5)
Expand Down