Skip to content

Commit

Permalink
Merge pull request #9 from kattni/pypi
Browse files Browse the repository at this point in the history
PyPi setup.
  • Loading branch information
brennen committed Aug 3, 2018
2 parents 44f52c5 + 574f941 commit bbf2d89
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,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_crickit.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace
Expand Down
4 changes: 2 additions & 2 deletions examples/crickit_multi_example.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This is a mock example showing typical usage of the library for each kind of device.

from adafruit_crickit import crickit

# Add this import if using stepper motors.
# It will expose constants saying how to step: stepper.FORWARD, stepper.BACKWARD, etc.
from adafruit_motor import stepper

from adafruit_crickit import crickit

# Set servo 1 to 90 degrees
crickit.servo_1.angle = 90

Expand Down
3 changes: 1 addition & 2 deletions examples/crickit_stepper_motor_simpletest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Crickit library demo - stepper motor

import time

from adafruit_crickit import crickit
from adafruit_motor import stepper
from adafruit_crickit import crickit

# Step motor forward and then backward.
while True:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Adafruit-Blinka
adafruit-circuitpython-seesaw
Adafruit-circuitpython-motor
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
author='Adafruit Industries',
author_email='circuitpython@adafruit.com',

install_requires=["Adafruit-Blinka", "adafruit-circuitpython-seesaw"],
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-seesaw",
"adafruit-circuitpython-motor"],

# Choose your license
license='MIT',
Expand Down

0 comments on commit bbf2d89

Please sign in to comment.