Typing stubs for PyGObject
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pygobject_stubs-2.12.0.tar.gz
.
File metadata
- Download URL: pygobject_stubs-2.12.0.tar.gz
- Upload date:
- Size: 810.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dad2d876c070a16f604c249bb70e8cbc36373151a6731d826a8436c6a80b99d |
|
MD5 | 6a65426eda49671795a329890a250687 |
|
BLAKE2b-256 | 9904e7dd3a2dc52977d54b98542742da2aa8c2fc5356e45339f37b908ff5dfc5 |