Typing Stubs for PyGObject
Installation
$ pip install pygobject-stubs
Configuration
Some libraries exist in multiple versions like Gtk3/4. As both libraries are
currently imported under the namespace Gtk only stubs for one can be installed.
You need to decide this at install time either by using the --config-settings option
with pip
$ pip install pygobject-stubs --no-cache-dir --config-settings=config=Gtk3,Gdk3,Soup2
or by setting the PYGOBJECT_STUB_CONFIG env variable
$ PYGOBJECT_STUB_CONFIG=Gtk3,Gdk3,Soup2 pip install --no-cache-dir pygobject-stubs
If no configuration is set, the most recent version of each library is installed.
--no-cache-dir is only necessary on subsequent reinstalls, otherwise the stubs will not
be rebuild and a cache of a previous installation is used.
Project Integration
Usually you want the stubs to be installed as part of the development dependencies.
pyproject.toml does not allow to pass config-settings to requirements.
If you need specific versions of some libraries you can use a requirements.txt file instead, which
allows to pass config-settings per requirement as of pip >= 23.1.0.
$ pip install . -r dev.txt
Contributing
Metadata
Release files for PyGObject-stubs 2.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyGObject-stubs-2.11.0.tar.gz | 757.2 kB | Details |
Release files / PyGObject-stubs-2.11.0.tar.gz
| Download URL | PyGObject-stubs-2.11.0.tar.gz |
|---|---|
| Size | 757.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1c7e32658213ae711d8afc5ea083a434231b8b588d1de23f50d5705a9c8eefe
|
|
BLAKE2b-256 checksum How to use checksums |
0094097808d0e22af77e60da74ee8793e01b6233f0ac7875bc782513a5e01bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|