diff --git a/.travis.yml b/.travis.yml index 58273ab..93f71bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: cache: pip: true deploy: -- provider: releases + provider: releases api_key: "$GITHUB_TOKEN" file_glob: true file: "$TRAVIS_BUILD_DIR/bundles/*" @@ -23,7 +23,6 @@ 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_featherwing/*.py - ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/**/*.py) diff --git a/adafruit_featherwing/joy_featherwing.py b/adafruit_featherwing/joy_featherwing.py index 7189962..c864980 100644 --- a/adafruit_featherwing/joy_featherwing.py +++ b/adafruit_featherwing/joy_featherwing.py @@ -31,9 +31,9 @@ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git" -from micropython import const import adafruit_seesaw.seesaw from adafruit_featherwing import shared +from micropython import const BUTTON_A = const(1 << 6) BUTTON_B = const(1 << 7) diff --git a/docs/api.rst b/docs/api.rst index 0a79f28..98affa6 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1,13 +1,7 @@ -FeatherWing Modules -------------------- .. If you created a package, create one automodule per module in the package. .. automodule:: adafruit_featherwing.motor_featherwing - :members: - .. automodule:: adafruit_featherwing.ina219_featherwing - :members: - .. automodule:: adafruit_featherwing.joy_featherwing :members: diff --git a/docs/conf.py b/docs/conf.py index 8b5f02a..21f407e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,16 +18,13 @@ # Uncomment the below if you use native CircuitPython modules such as # digitalio, micropython and busio. List the modules you use. Without it, the # autodoc module docs will fail to generate with a warning. -autodoc_mock_imports = ["adafruit_featherwing"] intersphinx_mapping = { 'python': ('https://docs.python.org/3.4', None), 'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None), 'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None), 'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None), - 'motor': ('https://circuitpython.readthedocs.io/projects/motor/en/latest/', None), - 'seesaw': ('https://circuitpython.readthedocs.io/projects/seesaw/en/latest/', None), - 'INA219': ('https://circuitpython.readthedocs.io/projects/ina219/en/latest/', None)} + 'motor': ('https://circuitpython.readthedocs.io/projects/motor/en/latest/', None)} # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -38,9 +35,9 @@ master_doc = 'index' # General information about the project. -project = u'Adafruit Featherwing Library' +project = u'Adafruit featherwing Library' copyright = u'2017 Scott Shawcroft' -author = u'Scott Shawcroft, Kattni Rembor' +author = u'Scott Shawcroft' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/docs/index.rst b/docs/index.rst index 9f8a996..1750daf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -26,7 +26,7 @@ Table of Contents .. toctree:: :caption: Related Products - Adafruit FeatherWings + Adafruit Feather Wings .. toctree:: :caption: Other Links diff --git a/requirements.txt b/requirements.txt index 7c4952d..d73e889 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ Adafruit-Blinka -adafruit-circuitpython-busdevice +adafruit-circuitpython-bus-device adafruit-circuitpython-register +adafruit-circuitpython-pca9685 adafruit-circuitpython-motor -adafruit-circuitpython-ina219 +adafruit-ina219 adafruit-seesaw -adafruit-circuitpython-pca9685