Skip to content

PyPi setup. #9

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
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='[email protected]',

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

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