Skip to content

Commit 08fce52

Browse files
brentrubrentru
brentru
authored and
brentru
committed
fresh cookiecutter
1 parent 3b50809 commit 08fce52

13 files changed

+93
-413
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ install:
4242
- pip install --force-reinstall pylint==1.9.2
4343

4444
script:
45-
- pylint adafruit_cursor.py
45+
- pylint adafruit_cursorcontrol.py
4646
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
47-
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-cursor --library_location .
47+
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-cursorcontrol --library_location .
4848
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..

README.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Introduction
22
============
33

4-
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-cursor/badge/?version=latest
5-
:target: https://circuitpython.readthedocs.io/projects/cursor/en/latest/
4+
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-cursorcontrol/badge/?version=latest
5+
:target: https://circuitpython.readthedocs.io/projects/cursorcontrol/en/latest/
66
:alt: Documentation Status
77

88
.. image:: https://img.shields.io/discord/327254708534116352.svg
99
:target: https://discord.gg/nBQh6qu
1010
:alt: Discord
1111

12-
.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Cursor.svg?branch=master
13-
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Cursor
12+
.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_CursorControl.svg?branch=master
13+
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_CursorControl
1414
:alt: Build Status
1515

16-
Mouse cursor for interaction with CircuitPython UI elements such as
17-
`buttons <https://github.com/adafruit/Adafruit_CircuitPython_Display_Button>`_.
16+
Mouse cursor for interaction with CircuitPython UI elements.
17+
1818

1919
Dependencies
2020
=============
@@ -31,18 +31,21 @@ Installing from PyPI
3131
.. note:: This library is not available on PyPI yet. Install documentation is included
3232
as a standard element. Stay tuned for PyPI availability!
3333

34+
.. todo:: Remove the above note if PyPI version is/will be available at time of release.
35+
If the library is not planned for PyPI, remove the entire 'Installing from PyPI' section.
36+
3437
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
35-
PyPI <https://pypi.org/project/adafruit-circuitpython-cursor/>`_. To install for current user:
38+
PyPI <https://pypi.org/project/adafruit-circuitpython-cursorcontrol/>`_. To install for current user:
3639

3740
.. code-block:: shell
3841
39-
pip3 install adafruit-circuitpython-cursor
42+
pip3 install adafruit-circuitpython-cursorcontrol
4043
4144
To install system-wide (this may be required in some cases):
4245

4346
.. code-block:: shell
4447
45-
sudo pip3 install adafruit-circuitpython-cursor
48+
sudo pip3 install adafruit-circuitpython-cursorcontrol
4649
4750
To install in a virtual environment in your current project:
4851

@@ -51,18 +54,18 @@ To install in a virtual environment in your current project:
5154
mkdir project-name && cd project-name
5255
python3 -m venv .env
5356
source .env/bin/activate
54-
pip3 install adafruit-circuitpython-cursor
57+
pip3 install adafruit-circuitpython-cursorcontrol
5558
5659
Usage Example
5760
=============
5861

59-
See examples in examples/ folder.
62+
.. todo:: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
6063

6164
Contributing
6265
============
6366

6467
Contributions are welcome! Please read our `Code of Conduct
65-
<https://github.com/adafruit/Adafruit_CircuitPython_Cursor/blob/master/CODE_OF_CONDUCT.md>`_
68+
<https://github.com/adafruit/Adafruit_CircuitPython_CursorControl/blob/master/CODE_OF_CONDUCT.md>`_
6669
before contributing to help this project stay welcoming.
6770

6871
Building locally
@@ -90,7 +93,7 @@ Then run the build:
9093

9194
.. code-block:: shell
9295
93-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-cursor --library_location .
96+
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-cursorcontrol --library_location .
9497
9598
Sphinx documentation
9699
-----------------------

adafruit_cursor.py

Lines changed: 0 additions & 179 deletions
This file was deleted.

adafruit_cursorcontrol.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# The MIT License (MIT)
2+
#
3+
# Copyright (c) 2019 Brent Rubell for Adafruit Industries
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in
13+
# all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
# THE SOFTWARE.
22+
"""
23+
`adafruit_cursorcontrol`
24+
================================================================================
25+
26+
Mouse cursor for interaction with CircuitPython UI elements.
27+
28+
29+
* Author(s): Brent Rubell
30+
31+
Implementation Notes
32+
--------------------
33+
34+
**Hardware:**
35+
36+
.. todo:: Add links to any specific hardware product page(s), or category page(s). Use unordered list & hyperlink rST
37+
inline format: "* `Link Text <url>`_"
38+
39+
**Software and Dependencies:**
40+
41+
* Adafruit CircuitPython firmware for the supported boards:
42+
https://github.com/adafruit/circuitpython/releases
43+
44+
.. todo:: Uncomment or remove the Bus Device and/or the Register library dependencies based on the library's use of either.
45+
46+
# * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
47+
# * Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
48+
"""
49+
50+
# imports
51+
52+
__version__ = "0.0.0-auto.0"
53+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_CursorControl.git"

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
55
.. use this format as the module name: "adafruit_foo.foo"
66
7-
.. automodule:: adafruit_cursor
7+
.. automodule:: adafruit_cursorcontrol
88
:members:

docs/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Uncomment the below if you use native CircuitPython modules such as
2121
# digitalio, micropython and busio. List the modules you use. Without it, the
2222
# autodoc module docs will fail to generate with a warning.
23-
autodoc_mock_imports = ["displayio"]
23+
# autodoc_mock_imports = ["digitalio", "busio"]
2424

2525

2626
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
@@ -34,7 +34,7 @@
3434
master_doc = 'index'
3535

3636
# General information about the project.
37-
project = u'Adafruit Cursor Library'
37+
project = u'Adafruit CursorControl Library'
3838
copyright = u'2019 Brent Rubell'
3939
author = u'Brent Rubell'
4040

@@ -109,7 +109,7 @@
109109
html_favicon = '_static/favicon.ico'
110110

111111
# Output file base name for HTML help builder.
112-
htmlhelp_basename = 'AdafruitCursorLibrarydoc'
112+
htmlhelp_basename = 'AdafruitCursorcontrolLibrarydoc'
113113

114114
# -- Options for LaTeX output ---------------------------------------------
115115

@@ -135,7 +135,7 @@
135135
# (source start file, target name, title,
136136
# author, documentclass [howto, manual, or own class]).
137137
latex_documents = [
138-
(master_doc, 'AdafruitCursorLibrary.tex', u'AdafruitCursor Library Documentation',
138+
(master_doc, 'AdafruitCursorControlLibrary.tex', u'AdafruitCursorControl Library Documentation',
139139
author, 'manual'),
140140
]
141141

@@ -144,7 +144,7 @@
144144
# One entry per manual page. List of tuples
145145
# (source start file, name, description, authors, manual section).
146146
man_pages = [
147-
(master_doc, 'AdafruitCursorlibrary', u'Adafruit Cursor Library Documentation',
147+
(master_doc, 'AdafruitCursorControllibrary', u'Adafruit CursorControl Library Documentation',
148148
[author], 1)
149149
]
150150

@@ -154,7 +154,7 @@
154154
# (source start file, target name, title, author,
155155
# dir menu entry, description, category)
156156
texinfo_documents = [
157-
(master_doc, 'AdafruitCursorLibrary', u'Adafruit Cursor Library Documentation',
158-
author, 'AdafruitCursorLibrary', 'One line description of project.',
157+
(master_doc, 'AdafruitCursorControlLibrary', u'Adafruit CursorControl Library Documentation',
158+
author, 'AdafruitCursorControlLibrary', 'One line description of project.',
159159
'Miscellaneous'),
160160
]

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ Simple test
33

44
Ensure your device works with this simple test.
55

6-
.. literalinclude:: ../examples/cursor_simpletest.py
7-
:caption: examples/cursor_simpletest.py
6+
.. literalinclude:: ../examples/cursorcontrol_simpletest.py
7+
:caption: examples/cursorcontrol_simpletest.py
88
:linenos:

0 commit comments

Comments
 (0)