Skip to content

Commit 7693aa8

Browse files
authored
Merge pull request #21 from sommersoft/pypi_fix
Pypi fix
2 parents aa4ebe0 + 9ed981d commit 7693aa8

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

README.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,30 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2828
This is easily achieved by downloading
2929
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3030

31+
Installing from PyPI
32+
--------------------
33+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
34+
PyPI <https://pypi.org/project/adafruit-circuitpython-pca9685/>`_. To install for current user:
35+
36+
.. code-block:: shell
37+
38+
pip3 install adafruit-circuitpython-pca9685
39+
40+
To install system-wide (this may be required in some cases):
41+
42+
.. code-block:: shell
43+
44+
sudo pip3 install adafruit-circuitpython-pca9685
45+
46+
To install in a virtual environment in your current project:
47+
48+
.. code-block:: shell
49+
50+
mkdir project-name && cd project-name
51+
python3 -m venv .env
52+
source .env/bin/activate
53+
pip3 install adafruit-circuitpython-pca9685
54+
3155
Usage Example
3256
=============
3357

@@ -85,4 +109,4 @@ Now, once you have the virtual environment activated:
85109
86110
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
87111
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
88-
locally verify it will pass.
112+
locally verify it will pass.

docs/examples.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Ensure your device works with this simple test.
77
:caption: examples/pca9685_simpletest.py
88
:linenos:
99

10-
.. literalinclude:: ../examples/calibration.py
11-
:caption: examples/calibration.py
10+
.. literalinclude:: ../examples/pca9685_calibration.py
11+
:caption: examples/pca9685_calibration.py
1212
:linenos:
1313

14-
.. literalinclude:: ../examples/servo.py
15-
:caption: examples/servo.py
16-
:linenos:
14+
.. literalinclude:: ../examples/pca9685_servo.py
15+
:caption: examples/pca9685_servo.py
16+
:linenos:
File renamed without changes.
File renamed without changes.

setup.py

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

37-
install_requires=['adafruit-circuitpython-busdevice', 'adafruit-circuitpython-register'],
37+
install_requires=['Adafruit-Blinka', 'adafruit-circuitpython-busdevice', 'adafruit-circuitpython-register'],
3838

3939
# Choose your license
4040
license='MIT',

0 commit comments

Comments
 (0)