File tree Expand file tree Collapse file tree 6 files changed +92
-144
lines changed Expand file tree Collapse file tree 6 files changed +92
-144
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
- name : Translate Repo Name For Build Tools filename_prefix
17
17
id : repo-name
18
18
run : echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT
19
- - name : Set up Python 3.8
19
+ - name : Set up Python 3.11
20
20
uses : actions/setup-python@v4
21
21
with :
22
- python-version : 3.8
22
+ python-version : 3.11
23
23
- name : Versions
24
24
run : |
25
25
python3 --version
47
47
- name : Build docs
48
48
working-directory : docs
49
49
run : sphinx-build -E -W -b html . _build/html
50
+ - name : Check For pyproject.toml
51
+ id : need-pypi
52
+ run : |
53
+ echo "pyproject-toml=$( find . -wholename './pyproject.toml' )" >> $GITHUB_OUTPUT
50
54
- name : Build Python package
55
+ if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
51
56
run : |
52
57
pip install --upgrade build twine
53
58
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
15
- - name : Check For setup.py
15
+ - name : Check For pyproject.toml
16
16
id : need-pypi
17
17
run : |
18
- echo "setup-py =$( find . -wholename './setup.py ' )" >> $GITHUB_OUTPUT
18
+ echo "pyproject-toml =$( find . -wholename './pyproject.toml ' )" >> $GITHUB_OUTPUT
19
19
- name : Set up Python
20
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
20
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
21
21
uses : actions/setup-python@v4
22
22
with :
23
- python-version : ' 3.x '
23
+ python-version : ' 3.11 '
24
24
- name : Install dependencies
25
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
25
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
26
26
run : |
27
27
python -m pip install --upgrade pip
28
28
pip install --upgrade build twine
29
29
- name : Build and publish
30
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
30
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
31
31
env :
32
32
TWINE_USERNAME : ${{ secrets.pypi_username }}
33
33
TWINE_PASSWORD : ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change 97
97
#
98
98
on_rtd = os .environ .get ("READTHEDOCS" , None ) == "True"
99
99
100
- if not on_rtd : # only import and set the theme if we're building docs locally
101
- try :
102
- import sphinx_rtd_theme
103
-
104
- html_theme = "sphinx_rtd_theme"
105
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path (), "." ]
106
- except :
107
- html_theme = "default"
108
- html_theme_path = ["." ]
109
- else :
110
- html_theme_path = ["." ]
100
+ html_theme = "sphinx_rtd_theme"
111
101
112
102
# Add any paths that contain custom static files (such as style sheets) here,
113
103
# relative to this directory. They are copied after the builtin static files,
114
104
# so a file named "default.css" will overwrite the builtin "default.css".
115
105
html_static_path = ["_static" ]
116
106
107
+ # The name of an image file (relative to this directory) to use as a favicon of
108
+ # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
109
+ # pixels large.
110
+ #
111
+ html_favicon = "_static/favicon.ico"
112
+
117
113
# Output file base name for HTML help builder.
118
- htmlhelp_basename = "AdafruitBlinkaLibrarydoc "
114
+ htmlhelp_basename = "Adafruit_blinkaDisplayioLibrarydoc "
119
115
120
116
# -- Options for LaTeX output ---------------------------------------------
121
117
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2022 Alec Delaney for Adafruit Industries
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ [build-system ]
6
+ requires = [
7
+ " setuptools" ,
8
+ " wheel" ,
9
+ " setuptools-scm" ,
10
+ ]
11
+
12
+ [project ]
13
+ name = " Adafruit-Blinka"
14
+ description = " CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython."
15
+ version = " 0.0.0+auto.0"
16
+ readme = " README.rst"
17
+ authors = [
18
+ {
name =
" Adafruit Industries" ,
email =
" [email protected] " }
19
+ ]
20
+ urls = {Homepage = " https://github.com/adafruit/Adafruit_Blinka" }
21
+ license = {text = " MIT" }
22
+ classifiers =[
23
+ " Development Status :: 5 - Production/Stable" ,
24
+ " Intended Audience :: Developers" ,
25
+ " Topic :: Software Development :: Libraries" ,
26
+ " Topic :: System :: Hardware" ,
27
+ " License :: OSI Approved :: MIT License" ,
28
+ " Programming Language :: Python :: 3" ,
29
+ " Programming Language :: Python :: 3.7" ,
30
+ ]
31
+ dynamic = [" dependencies" ]
32
+
33
+ [tool .setuptools ]
34
+ py-modules = [
35
+ " analogio" ,
36
+ " bitbangio" ,
37
+ " board" ,
38
+ " busio" ,
39
+ " digitalio" ,
40
+ " keypad" ,
41
+ " micropython" ,
42
+ " neopixel_write" ,
43
+ " onewireio" ,
44
+ " pulseio" ,
45
+ " pwmio" ,
46
+ " rainbowio" ,
47
+ " usb_hid" ,
48
+ ]
49
+
50
+ [tool .setuptools .packages .find ]
51
+ where = [" src" ]
52
+ include = [
53
+ " adafruit_blinka.microcontroller.bcm283x.libgpiod_pulsein*" ,
54
+ " adafruit_blinka.microcontroller.amlogic.meson_g12_common.pulseio.libgpiod_pulsein*" ,
55
+ " *.pyi"
56
+ ]
57
+
58
+ [tool .setuptools .dynamic ]
59
+ dependencies = {file = [" requirements.txt" ]}
Original file line number Diff line number Diff line change 1
- # requirements.txt
2
- #
3
- # installs dependencies from ./setup.py, and the package itself,
4
- # in editable mode
5
- # -e .
6
-
7
- # (the -e above is optional). you could also just install the package
8
- # normally with just the line below (after uncommenting)
9
- .
1
+ Adafruit-PlatformDetect >= 3.70.1
2
+ Adafruit-PureIO >= 1.1.7
3
+ Jetson.GPIO ; platform_machine == 'aarch64'
4
+ RPi.GPIO ; platform_machine == 'armv7l' or platform_machine=='armv6l' or platform_machine=='aarch64'
5
+ rpi_ws281x >= 4.0.0 ; platform_machine == 'armv7l' or platform_machine=='armv6l' or platform_machine=='aarch64'
6
+ sysv_ipc >= 1.1.0 ; sys_platform == 'linux' and platform_machine!='mips'
7
+ pyftdi >= 0.40.0
8
+ binho-host-adapter >= 0.1.6
9
+ adafruit-circuitpython-typing
10
+ toml >= 0.10.2 ; python_version < '3.11'
11
+ lgpio >= 0.2.2.0
12
+ Adafruit-Blinka-Raspberry-Pi5-Neopixel ; platform_machine == 'aarch64'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments