Skip to content

Commit cdd41be

Browse files
committed
Convert Blinka to use pyproject.toml
1 parent 8f45d6c commit cdd41be

File tree

3 files changed

+69
-124
lines changed

3 files changed

+69
-124
lines changed

pyproject.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.package-data]
51+
"adafruit_blinka.microcontroller.bcm283x.pulseio" = ["libgpiod_pulsein", "libgpiod_pulsein64"]
52+
"adafruit_blinka.microcontroller.amlogic.meson_g12_common.pulseio" = ["libgpiod_pulsein"]
53+
"micropython-stubs" = ["*.pyi"]
54+
55+
[tool.setuptools.dynamic]
56+
dependencies = {file = ["requirements.txt"]}

requirements.txt

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
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'
13+
Adafruit_BBIO>=1.2.0

setup.py

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

0 commit comments

Comments
 (0)