Skip to content

Commit c6592e5

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 c6592e5

2 files changed

Lines changed: 47 additions & 61 deletions

File tree

pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
[build-system]
2+
requires = ["setuptools>=64"]
3+
build-backend = "setuptools.backends._legacy:_Backend"
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+
"License :: OSI Approved :: BSD License",
19+
"Operating System :: POSIX :: Linux",
20+
"Programming Language :: Python :: 3.9",
21+
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
22+
]
23+
dependencies = [
24+
"numpy",
25+
"PiDNG",
26+
"piexif",
27+
"pillow",
28+
"simplejpeg",
29+
"videodev2",
30+
"python-prctl",
31+
"av",
32+
"libarchive-c",
33+
"tqdm",
34+
"jsonschema",
35+
"OpenEXR",
36+
]
37+
38+
[project.optional-dependencies]
39+
gui = ["pyopengl", "PyQt5"]
40+
41+
[project.urls]
42+
Homepage = "https://github.com/RaspberryPi/picamera2"
43+
"Bug Tracker" = "https://github.com/RaspberryPi/picamera2/issues"
44+
45+
[tool.setuptools.packages.find]
46+
include = ["picamera2*"]
47+
148
[tool.ruff]
249
line-length = 127
350
target-version = "py39"

setup.py

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

0 commit comments

Comments
 (0)