Skip to content

Commit fb1afdb

Browse files
committed
Migrate from setup.py to pyproject.toml
Move all package metadata from setup.py to pyproject.toml using PEP 621 declarative format. Use setuptools as the build backend with automatic package discovery for picamera2*. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 25e945e commit fb1afdb

File tree

2 files changed

+46
-61
lines changed

2 files changed

+46
-61
lines changed

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
[build-system]
2+
requires = ["setuptools>=64"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "picamera2"
7+
version = "0.3.34"
8+
description = "The libcamera-based Python interface to Raspberry Pi cameras, based on the original Picamera library"
9+
readme = "README.md"
10+
license = "BSD-2-Clause"
11+
requires-python = ">=3.9"
12+
authors = [
13+
{ name = "Raspberry Pi & Raspberry Pi Foundation", email = "picamera2@raspberrypi.com" },
14+
]
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Intended Audience :: Developers",
18+
"Operating System :: POSIX :: Linux",
19+
"Programming Language :: Python :: 3.9",
20+
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
21+
]
22+
dependencies = [
23+
"numpy",
24+
"PiDNG",
25+
"piexif",
26+
"pillow",
27+
"simplejpeg",
28+
"videodev2",
29+
"python-prctl",
30+
"av",
31+
"libarchive-c",
32+
"tqdm",
33+
"jsonschema",
34+
"OpenEXR",
35+
]
36+
37+
[project.optional-dependencies]
38+
gui = ["pyopengl", "PyQt5"]
39+
40+
[project.urls]
41+
Homepage = "https://github.com/RaspberryPi/picamera2"
42+
"Bug Tracker" = "https://github.com/RaspberryPi/picamera2/issues"
43+
44+
[tool.setuptools.packages.find]
45+
include = ["picamera2*"]
46+
147
[tool.ruff]
248
line-length = 127
349
target-version = "py39"

setup.py

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

0 commit comments

Comments
 (0)