Skip to content

Commit 683d68c

Browse files
committed
Merge remote-tracking branch 'adafruit/main' into faster-I2C
2 parents bae21e5 + 2ec52f9 commit 683d68c

23 files changed

+367
-380
lines changed

.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Thank you for contributing! Before you submit a pull request, please read the following.
66

7-
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://circuitpython.readthedocs.io/en/latest/docs/design_guide.html
7+
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://docs.circuitpython.org/en/latest/docs/design_guide.html
88

99
If your changes are to documentation, please verify that the documentation builds locally by following the steps found here: https://adafru.it/build-docs
1010

.github/workflows/build.yml

+2-63
Original file line numberDiff line numberDiff line change
@@ -10,66 +10,5 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Dump GitHub context
14-
env:
15-
GITHUB_CONTEXT: ${{ toJson(github) }}
16-
run: echo "$GITHUB_CONTEXT"
17-
- name: Translate Repo Name For Build Tools filename_prefix
18-
id: repo-name
19-
run: |
20-
echo ::set-output name=repo-name::$(
21-
echo ${{ github.repository }} |
22-
awk -F '\/' '{ print tolower($2) }' |
23-
tr '_' '-'
24-
)
25-
- name: Set up Python 3.7
26-
uses: actions/setup-python@v1
27-
with:
28-
python-version: 3.7
29-
- name: Versions
30-
run: |
31-
python3 --version
32-
- name: Checkout Current Repo
33-
uses: actions/checkout@v1
34-
with:
35-
submodules: true
36-
- name: Checkout tools repo
37-
uses: actions/checkout@v2
38-
with:
39-
repository: adafruit/actions-ci-circuitpython-libs
40-
path: actions-ci
41-
- name: Install dependencies
42-
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
43-
run: |
44-
source actions-ci/install.sh
45-
- name: Pip install Sphinx, pre-commit
46-
run: |
47-
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
48-
- name: Library version
49-
run: git describe --dirty --always --tags
50-
- name: Pre-commit hooks
51-
run: |
52-
pre-commit run --all-files
53-
- name: Build assets
54-
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
55-
- name: Archive bundles
56-
uses: actions/upload-artifact@v2
57-
with:
58-
name: bundles
59-
path: ${{ github.workspace }}/bundles/
60-
- name: Build docs
61-
working-directory: docs
62-
run: sphinx-build -E -W -b html . _build/html
63-
- name: Check For setup.py
64-
id: need-pypi
65-
run: |
66-
echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
67-
- name: Build Python package
68-
if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
69-
run: |
70-
pip install --upgrade setuptools wheel twine readme_renderer testresources
71-
python setup.py sdist
72-
python setup.py bdist_wheel --universal
73-
twine check dist/*
74-
- name: Setup problem matchers
75-
uses: adafruit/circuitpython-action-library-ci-problem-matchers@v1
13+
- name: Run Build CI workflow
14+
uses: adafruit/workflows-circuitpython-libs/build@main

.github/workflows/release.yml

-85
This file was deleted.

.github/workflows/release_gh.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: GitHub Release Actions
6+
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
upload-release-assets:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run GitHub Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-gh@main
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
upload-url: ${{ github.event.release.upload_url }}

.github/workflows/release_pypi.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: PyPI Release Actions
6+
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
upload-release-assets:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run PyPI Release CI workflow
16+
uses: adafruit/workflows-circuitpython-libs/release-pypi@main
17+
with:
18+
pypi-username: ${{ secrets.pypi_username }}
19+
pypi-password: ${{ secrets.pypi_password }}

.gitignore

+41-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,48 @@
1-
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2022 Kattni Rembor, written for Adafruit Industries
22
#
3-
# SPDX-License-Identifier: Unlicense
3+
# SPDX-License-Identifier: MIT
44

5+
# Do not include files and directories created by your personal work environment, such as the IDE
6+
# you use, except for those already listed here. Pull requests including changes to this file will
7+
# not be accepted.
8+
9+
# This .gitignore file contains rules for files generated by working with CircuitPython libraries,
10+
# including building Sphinx, testing with pip, and creating a virual environment, as well as the
11+
# MacOS and IDE-specific files generated by using MacOS in general, or the PyCharm or VSCode IDEs.
12+
13+
# If you find that there are files being generated on your machine that should not be included in
14+
# your git commit, you should create a .gitignore_global file on your computer to include the
15+
# files created by your personal setup. To do so, follow the two steps below.
16+
17+
# First, create a file called .gitignore_global somewhere convenient for you, and add rules for
18+
# the files you want to exclude from git commits.
19+
20+
# Second, configure Git to use the exclude file for all Git repositories by running the
21+
# following via commandline, replacing "path/to/your/" with the actual path to your newly created
22+
# .gitignore_global file:
23+
# git config --global core.excludesfile path/to/your/.gitignore_global
24+
25+
# CircuitPython-specific files
526
*.mpy
6-
.idea
27+
28+
# Python-specific files
729
__pycache__
8-
_build
930
*.pyc
31+
32+
# Sphinx build-specific files
33+
_build
34+
35+
# This file results from running `pip -e install .` in a local repository
36+
*.egg-info
37+
38+
# Virtual environment-specific files
1039
.env
11-
bundles
40+
.venv
41+
42+
# MacOS-specific files
1243
*.DS_Store
13-
.eggs
14-
dist
15-
**/*.egg-info
44+
45+
# IDE-specific files
46+
.idea
47+
.vscode
48+
*~

.pre-commit-config.yaml

+16-16
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@
33
# SPDX-License-Identifier: Unlicense
44

55
repos:
6-
- repo: https://github.com/python/black
6+
- repo: https://github.com/python/black
77
rev: 23.3.0
88
hooks:
9-
- id: black
10-
- repo: https://github.com/fsfe/reuse-tool
11-
rev: v1.1.1
9+
- id: black
10+
- repo: https://github.com/fsfe/reuse-tool
11+
rev: v1.1.2
1212
hooks:
13-
- id: reuse
14-
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
- id: reuse
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
1515
rev: v4.4.0
1616
hooks:
17-
- id: check-yaml
18-
- id: end-of-file-fixer
19-
- id: trailing-whitespace
20-
- repo: https://github.com/pycqa/pylint
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- repo: https://github.com/pycqa/pylint
2121
rev: v3.3.1
2222
hooks:
23-
- id: pylint
23+
- id: pylint
2424
name: pylint (library code)
2525
types: [python]
2626
args:
27-
- --disable=consider-using-f-string,duplicate-code
27+
- --disable=consider-using-f-string
2828
exclude: "^(docs/|examples/|tests/|setup.py$)"
29-
- id: pylint
29+
- id: pylint
3030
name: pylint (example code)
3131
description: Run pylint rules on "examples/*.py" files
3232
types: [python]
3333
files: "^examples/"
3434
args:
35-
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
36-
- id: pylint
35+
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
36+
- id: pylint
3737
name: pylint (test code)
3838
description: Run pylint rules on "tests/*.py" files
3939
types: [python]
4040
files: "^tests/"
4141
args:
42-
- --disable=missing-docstring,consider-using-f-string,duplicate-code
42+
- --disable=missing-docstring,consider-using-f-string,duplicate-code

.readthedocs.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
# Required
99
version: 2
1010

11+
build:
12+
os: ubuntu-20.04
13+
tools:
14+
python: "3"
15+
1116
python:
12-
version: "3.7"
1317
install:
1418
- requirements: docs/requirements.txt
1519
- requirements: requirements.txt

README.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ Introduction
22
============
33

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

8-
.. image :: https://img.shields.io/discord/327254708534116352.svg
8+
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
99
:target: https://adafru.it/discord
1010
:alt: Discord
1111

1212
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_CharLCD/workflows/Build%20CI/badge.svg
1313
:target: https://github.com/adafruit/Adafruit_CircuitPython_CharLCD/actions/
1414
:alt: Build Status
1515

16+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
17+
:target: https://github.com/psf/black
18+
:alt: Code Style: Black
19+
1620
This library is compatible with standard Character LCDs such as:
1721

1822
* `Adafruit Standard LCD 16x2 <https://www.adafruit.com/product/181>`_
@@ -40,8 +44,8 @@ To install in a virtual environment in your current project:
4044
.. code-block:: shell
4145
4246
mkdir project-name && cd project-name
43-
python3 -m venv .env
44-
source .env/bin/activate
47+
python3 -m venv .venv
48+
source .venv/bin/activate
4549
pip3 install adafruit-circuitpython-charlcd
4650
4751
Dependencies
@@ -113,16 +117,12 @@ Custom character example with ``create_char()`` is provided within /examples/
113117
Documentation
114118
=============
115119

116-
API documentation for this library can be found on `Read the Docs <https://circuitpython.readthedocs.io/projects/charlcd/en/latest/>`_.
120+
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/charlcd/en/latest/>`_.
121+
122+
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>`_.
117123

118124
Contributing
119125
============
120126

121127
Contributions are welcome! Please read our `Code of Conduct
122128
<https://github.com/adafruit/Adafruit_CircuitPython_CharLCD/blob/main/CODE_OF_CONDUCT.md>`_ before contributing to help this project stay welcoming.
123-
124-
125-
Documentation
126-
=============
127-
128-
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)