Skip to content

Commit 735ef09

Browse files
committed
Add pyproject.toml for sip bindings
1 parent fdc613d commit 735ef09

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

python/pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Specify the build system requirements.
2+
[build-system]
3+
requires = ["sip >=5.3, <7", "PyQt-builder >=1.9, <2"]
4+
build-backend = "sipbuild.api"
5+
6+
# Specify the PEP 566 metadata for the project.
7+
[tool.sip.metadata]
8+
name = "PyQtAV"
9+
version = "1.12.0"
10+
summary = "Python bindings for the QtAV"
11+
home-page = ""
12+
author = ""
13+
author-email = ""
14+
license = "LGPL"
15+
16+
# Specify a PyQt-based project.
17+
[tool.sip]
18+
project-factory = "pyqtbuild:PyQtProject"
19+
20+
# Configure the project.
21+
[tool.sip.project]
22+
tag-prefix = "QtAV"
23+
sip-include-dirs = ["PYQT_BINDINGS_DIR"]
24+
25+
# Define and configure each set of bindings.
26+
[tool.sip.bindings.QtAV]
27+
qmake-QT = ["widgets"]
28+
libraries = ["QtAV1"]
29+
library-dirs = ["QT_LIB_DIR"]
30+
31+
[tool.sip.bindings.QtAVWidgets]
32+
qmake-QT = ["widgets", "opengl"]
33+
libraries = ["QtAV1", "QtAVWidgets1"]
34+
library-dirs = ["QT_LIB_DIR"]

0 commit comments

Comments
 (0)