| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Helps to install Python to Travis CI machines on Linux, macOS and Windows.
You need to source the provided Bash script and call the install_python() function.
Or just use the shared configuration snippet. The easiest way to do it is to import the shared configuration snippet:
import:
- source: neimad/travis-python:stable.yml
mode: deep_merge_prepend⚠️ The imported configuration needs to be prepended and a deep merge is required to be able to use the installed Python distribution in the before_install and subsequent phases.
Read the configuration documentation to understand how it works.
Then, specify the operating systems as usual:
import:
- source: neimad/travis-python:stable.yml
mode: deep_merge_prepend
os:
- linux
- osx
- windowsFinally, specify the wanted Python version using the PYTHON environment variable:
import:
- source: neimad/travis-python:stable.yml
mode: deep_merge_prepend
os:
- linux
- osx
- windows
env:
- PYTHON=3.8
- PYTHON=3.7
- PYTHON=2The Python distribution is installed during the before_install phase and available using the python program name (whether it is Python 2 or 3).
Some documentation is available.
To provide a similar Python environment for the three operating systems available on Travis CI, we have to deal with many issues:
To solve those problems, some directions have been taken:
The following dependencies are required:
If you're facing an issue using travis-python, please look at the existing tickets. Then you may open a new one.
You may also make a pull request to help improve it.
See the changelog to see what changes have been made and what you can expect in the next release.
travis-python is licensed under the GNU GPL 3 or later.
| Back | FazBrowse Home | New Git URL |