Skip to content

Commit 134ef39

Browse files
authored
Merge pull request #17 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents ecb4b4f + efb3d46 commit 134ef39

File tree

1 file changed

+23
-43
lines changed

1 file changed

+23
-43
lines changed

README.rst

+23-43
Original file line numberDiff line numberDiff line change
@@ -26,64 +26,44 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2626
This is easily achieved by downloading
2727
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
2828

29-
Usage Example
30-
=============
29+
Installing from PyPI
30+
====================
3131

32-
See examples/mcp230xx_simpletest.py for a demo of the usage.
33-
34-
Contributing
35-
============
36-
37-
Contributions are welcome! Please read our `Code of Conduct
38-
<https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx/blob/master/CODE_OF_CONDUCT.md>`_
39-
before contributing to help this project stay welcoming.
40-
41-
Building locally
42-
================
43-
44-
Zip release files
45-
-----------------
46-
47-
To build this library locally you'll need to install the
48-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
32+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
33+
PyPI <https://pypi.org/project/adafruit-circuitpython-mcp230xx/>`_. To install for current user:
4934

5035
.. code-block:: shell
5136
52-
python3 -m venv .env
53-
source .env/bin/activate
54-
pip install circuitpython-build-tools
37+
pip3 install adafruit-circuitpython-mcp230xx
5538
56-
Once installed, make sure you are in the virtual environment:
39+
To install system-wide (this may be required in some cases):
5740

5841
.. code-block:: shell
5942
60-
source .env/bin/activate
43+
sudo pip3 install adafruit-circuitpython-mcp230xx
6144
62-
Then run the build:
63-
64-
.. code-block:: shell
65-
66-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-mcp230xx --library_location .
67-
68-
Sphinx documentation
69-
-----------------------
70-
71-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
72-
install dependencies (feel free to reuse the virtual environment from above):
45+
To install in a virtual environment in your current project:
7346

7447
.. code-block:: shell
7548
49+
mkdir project-name && cd project-name
7650
python3 -m venv .env
7751
source .env/bin/activate
78-
pip install Sphinx sphinx-rtd-theme
52+
pip3 install adafruit-circuitpython-mcp230xx
7953
80-
Now, once you have the virtual environment activated:
54+
Usage Example
55+
=============
8156

82-
.. code-block:: shell
57+
See examples/mcp230xx_simpletest.py for a demo of the usage.
8358

84-
cd docs
85-
sphinx-build -E -W -b html . _build/html
59+
Contributing
60+
============
61+
62+
Contributions are welcome! Please read our `Code of Conduct
63+
<https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx/blob/master/CODE_OF_CONDUCT.md>`_
64+
before contributing to help this project stay welcoming.
65+
66+
Documentation
67+
=============
8668

87-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
88-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
89-
locally verify it will pass.
69+
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

0 commit comments

Comments
 (0)