id: repo-name
run: |
echo ::set-output name=repo-name::Adafruit-Blinka-displayio
- - name: Set up Python 3.7
- uses: actions/setup-python@v1
+ - name: Set up Python 3.x
+ uses: actions/setup-python@v2
with:
- python-version: 3.7
+ python-version: "3.x"
- name: Versions
run: |
python3 --version
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
run: |
source actions-ci/install.sh
- - name: Pip install pylint, black, & Sphinx
+ - name: Pip install Sphinx, pre-commit
run: |
- pip install --force-reinstall pylint black Sphinx sphinx-rtd-theme pre-commit
+ pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
- name: Library version
run: git describe --dirty --always --tags
+ - name: Setup problem matchers
+ uses: adafruit/circuitpython-action-library-ci-problem-matchers@v1
- name: Pre-commit hooks
run: |
pre-commit run --all-files
+ - name: Build assets
+ run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
+ - name: Archive bundles
+ uses: actions/upload-artifact@v2
+ with:
+ name: bundles
+ path: ${{ github.workspace }}/bundles/
- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
+ - name: Check For pyproject.toml
+ id: need-pypi
+ run: |
+ echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
+ - name: Build Python package
+ if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
+ run: |
+ pip install --upgrade build twine
+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
+ sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
+ done;
+ python -m build
+ twine check dist/*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - name: Check For setup.py
+ - name: Check For pyproject.toml
id: need-pypi
run: |
- echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
+ echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
- name: Set up Python
- if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
- uses: actions/setup-python@v1
+ if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
+ uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
- if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
+ if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
run: |
python -m pip install --upgrade pip
- pip install setuptools wheel twine
+ pip install --upgrade build twine
- name: Build and publish
- if: contains(steps.need-pypi.outputs.setup-py, 'setup.py')
+ if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
- python setup.py sdist
+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
+ sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
+ done;
+ python -m build
twine upload dist/*
from ._display import displays
from ._displaybus import _DisplayBus
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from __future__ import annotations
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
from PIL import Image
from ._structs import RectangleStruct
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
"""
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from ._colorspace import Colorspace
"""
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
"""Constants"""
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
BACKLIGHT_PWM,
)
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
displays = []
from ._fourwire import FourWire
from ._i2cdisplay import I2CDisplay
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
_DisplayBus = Union[FourWire, I2CDisplay, paralleldisplay.ParallelBus]
"""
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
from ._group import Group
from ._displaybus import _DisplayBus
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
DISPLAY_DATA,
)
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from ._structs import TransformStruct
from ._tilegrid import TileGrid
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
import circuitpython_typing
from ._constants import CHIP_SELECT_UNTOUCHED, DISPLAY_COMMAND
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from ._colorconverter import ColorConverter
from ._palette import Palette
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from typing import Optional, Union, Tuple
import circuitpython_typing
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from ._bitmap import Bitmap
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
from dataclasses import dataclass
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
from ._palette import Palette
from ._structs import RectangleStruct, TransformStruct
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
-language = None
+language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
except ImportError:
from typing_extensions import Protocol
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
import microcontroller
import circuitpython_typing
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
--- /dev/null
+# SPDX-FileCopyrightText: 2022 Alec Delaney for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
+
+[build-system]
+requires = [
+ "setuptools",
+ "wheel",
+ "setuptools-scm",
+]
+
+[project]
+name = "adafruit-blinka-displayio"
+description = "displayio for Blinka"
+version = "0.0.0+auto.0"
+readme = "README.rst"
+authors = [
+ {name = "Adafruit Industries", email = "circuitpython@adafruit.com"}
+]
+urls = {Homepage = "https://github.com/adafruit/Adafruit_CircuitPython_SI1145.git"}
+keywords = [
+ "adafruit",
+ "blinka",
+ "circuitpython",
+ "micropython",
+ "displayio",
+ "lcd",
+ "tft",
+ "display",
+ "pitft",
+]
+license = {text = "MIT"}
+classifiers = [
+ "Intended Audience :: Developers",
+ "Topic :: Software Development :: Libraries",
+ "Topic :: Software Development :: Embedded Systems",
+ "Topic :: System :: Hardware",
+ "License :: OSI Approved :: MIT License",
+ "Programming Language :: Python :: 3",
+]
+dynamic = ["dependencies"]
+
+[tool.setuptools]
+py-modules = ["fontio", "terminalio", "paralleldisplay"]
+packages = ["displayio"]
+
+[tool.setuptools.dynamic]
+dependencies = {file = ["requirements.txt"]}
import sys # pylint: disable=unused-import
import fontio
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
FONT = fontio.BuiltinFont()