Skip to content

Commit da125e7

Browse files
authored
Merge pull request #13 from kattni/pypi-fixes
Updates for PyPi, linting.
2 parents 28efad4 + bd8aa8e commit da125e7

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ python:
66
cache:
77
pip: true
88
deploy:
9-
provider: releases
9+
- provider: releases
1010
api_key: "$GITHUB_TOKEN"
1111
file_glob: true
1212
file: "$TRAVIS_BUILD_DIR/bundles/*"
1313
skip_cleanup: true
14+
overwrite: true
1415
on:
1516
tags: true
1617
- provider: pypi
@@ -22,6 +23,7 @@ deploy:
2223
install:
2324
- pip install -r requirements.txt
2425
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26+
- pip install --force-reinstall pylint==1.9.2
2527
script:
2628
- pylint adafruit_dht.py
2729
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
'sphinx.ext.viewcode',
1616
]
1717

18+
autodoc_mock_imports = ["pulseio"]
19+
1820
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
1921
'BusDevice': ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),
2022
'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),

examples/dht_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
2-
import adafruit_dht
32
from board import D2
3+
import adafruit_dht
44

55
#initial the dht device
66
dhtDevice = adafruit_dht.DHT22(D2)

examples/dht_to_led_display.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"""
66
# import for dht devices and 7-segment display devices
77
import time
8-
import adafruit_dht
9-
from adafruit_max7219 import bcddigits
8+
from board import D2, TX, RX, D1
109
import busio
1110
import digitalio
11+
import adafruit_dht
12+
from adafruit_max7219 import bcddigits
1213

13-
from board import D2, TX, RX, A2
1414

1515
clk = RX
1616
din = TX
17-
cs = digitalio.DigitalInOut(A2)
17+
cs = digitalio.DigitalInOut(D1)
1818
spi = busio.SPI(clk, MOSI=din)
1919
display = bcddigits.BCDDigits(spi, cs, nDigits=8)
2020
display.brightness(5)

0 commit comments

Comments
 (0)