Skip to content

Commit bbf2d89

Browse files
authored
Merge pull request #9 from kattni/pypi
PyPi setup.
2 parents 44f52c5 + 574f941 commit bbf2d89

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ deploy:
2323
install:
2424
- pip install -r requirements.txt
2525
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26+
- pip install --force-reinstall pylint==1.9.2
2627
script:
2728
- pylint adafruit_crickit.py
2829
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace

examples/crickit_multi_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This is a mock example showing typical usage of the library for each kind of device.
22

3-
from adafruit_crickit import crickit
4-
53
# Add this import if using stepper motors.
64
# It will expose constants saying how to step: stepper.FORWARD, stepper.BACKWARD, etc.
75
from adafruit_motor import stepper
86

7+
from adafruit_crickit import crickit
8+
99
# Set servo 1 to 90 degrees
1010
crickit.servo_1.angle = 90
1111

examples/crickit_stepper_motor_simpletest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Crickit library demo - stepper motor
22

33
import time
4-
5-
from adafruit_crickit import crickit
64
from adafruit_motor import stepper
5+
from adafruit_crickit import crickit
76

87
# Step motor forward and then backward.
98
while True:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Adafruit-Blinka
22
adafruit-circuitpython-seesaw
3+
Adafruit-circuitpython-motor

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
author='Adafruit Industries',
3535
author_email='[email protected]',
3636

37-
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-seesaw"],
37+
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-seesaw",
38+
"adafruit-circuitpython-motor"],
3839

3940
# Choose your license
4041
license='MIT',

0 commit comments

Comments
 (0)