@@ -25,71 +25,51 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
25
25
This is easily achieved by downloading
26
26
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
27
27
28
- Usage Example
29
- =============
30
-
31
- .. code-block :: python
32
-
33
- import adafruit_miniqr
34
-
35
- qr = adafruit_miniqr.QRCode()
36
- qr.add_data(b ' https://www.adafruit.com' )
37
- qr.make()
38
- print (qr.matrix)
28
+ Installing from PyPI
29
+ ====================
39
30
40
- Contributing
41
- ============
42
-
43
- Contributions are welcome! Please read our `Code of Conduct
44
- <https://github.com/adafruit/Adafruit_CircuitPython_miniQR/blob/master/CODE_OF_CONDUCT.md> `_
45
- before contributing to help this project stay welcoming.
46
-
47
- Building locally
48
- ================
49
-
50
- Zip release files
51
- -----------------
52
-
53
- To build this library locally you'll need to install the
54
- `circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools >`_ package.
31
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
32
+ PyPI <https://pypi.org/project/adafruit-circuitpython-miniqr/> `_. To install for current user:
55
33
56
34
.. code-block :: shell
57
35
58
- python3 -m venv .env
59
- source .env/bin/activate
60
- pip install circuitpython-build-tools
36
+ pip3 install adafruit-circuitpython-miniqr
61
37
62
- Once installed, make sure you are in the virtual environment :
38
+ To install system-wide (this may be required in some cases) :
63
39
64
40
.. code-block :: shell
65
41
66
- source .env/bin/activate
42
+ sudo pip3 install adafruit-circuitpython-miniqr
67
43
68
- Then run the build :
44
+ To install in a virtual environment in your current project :
69
45
70
46
.. code-block :: shell
71
47
72
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-miniqr --library_location .
48
+ mkdir project-name && cd project-name
49
+ python3 -m venv .env
50
+ source .env/bin/activate
51
+ pip3 install adafruit-circuitpython-miniqr
73
52
74
- Sphinx documentation
75
- -----------------------
53
+ Usage Example
54
+ =============
76
55
77
- Sphinx is used to build the documentation based on rST files and comments in the code. First,
78
- install dependencies (feel free to reuse the virtual environment from above):
56
+ .. code-block :: python
79
57
80
- .. code-block :: shell
58
+ import adafruit_miniqr
81
59
82
- python3 -m venv .env
83
- source .env/bin/activate
84
- pip install Sphinx sphinx-rtd-theme
60
+ qr = adafruit_miniqr.QRCode()
61
+ qr.add_data(b ' https://www.adafruit.com' )
62
+ qr.make()
63
+ print (qr.matrix)
85
64
86
- Now, once you have the virtual environment activated:
65
+ Contributing
66
+ ============
87
67
88
- .. code-block :: shell
68
+ Contributions are welcome! Please read our `Code of Conduct
69
+ <https://github.com/adafruit/Adafruit_CircuitPython_miniQR/blob/master/CODE_OF_CONDUCT.md> `_
70
+ before contributing to help this project stay welcoming.
89
71
90
- cd docs
91
- sphinx-build -E -W -b html . _build/html
72
+ Documentation
73
+ =============
92
74
93
- This will output the documentation to ``docs/_build/html ``. Open the index.html in your browser to
94
- view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
95
- locally verify it will pass.
75
+ 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