Install python3-gi for Travis-CI and Python> = 3.3

What is the correct way to install python3-gi

in Travis-CI using a file .travis.yml

?

The last recommendation was to use Python 3.2 ( Travis-ci and Gobject introspection ), but I would prefer testing against more recent versions.

I tried a few sensible command combinations, but my knowledge of the Travis-CI environment is very simple:

This, for example, fails and without using system_site_packages: true

:

before_install:
  - sudo apt-get install -qq python3-gi

virtualenv:
  - system_site_packages: true

      

Two examples of repositories that work (as far as I can tell):

+3


source to share


1 answer


To use a newer version, you will either have to create one or use a container system like docker.



gnome-news has an example pygobject project using circleci (which is another free alternative to travis-ci). They use fedha rawhide in docker which has the latest versions of all gnome.

+2


source







All Articles