Skip to content

Commit 75fbf00

Browse files
authored
Merge pull request #3481 from travis-ci/kw-default_python
Updating python information
2 parents 07900f9 + b275f25 commit 75fbf00

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

user/languages/python.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Minimal example:
2727
{{ site.data.snippets.unix_note }}
2828
2929
{: .warning}
30-
> Python builds are not available on the macOS and Windows environments.
30+
> Python builds are not available on Windows environments.
3131
3232
The rest of this guide covers configuring Python projects in Travis CI. If you're
3333
new to Travis CI, please read our [Onboarding](/user/onboarding/) and
@@ -36,7 +36,7 @@ new to Travis CI, please read our [Onboarding](/user/onboarding/) and
3636
## Specify Python versions
3737
3838
Specify Python versions using the `python` key. As we update the Python build
39-
images, aliases like `3.6` will point to different exact versions or patch
39+
images, aliases like `3.10` will point to different exact versions or patch
4040
levels.
4141

4242
```yaml
@@ -45,11 +45,15 @@ python:
4545
- "2.7"
4646
- "3.4"
4747
- "3.5"
48-
- "3.6" # current default Python on Travis CI
48+
- "3.6"
4949
- "3.7"
5050
- "3.8"
5151
- "3.9"
52-
- "3.9-dev" # 3.9 development branch
52+
- "3.9-dev" # 3.9 development branch. similarly 3.10-dev, 3.11-dev, etc.
53+
- "3.10" # current default Python in Travis CI, if `language: python` is specified
54+
- "3.11"
55+
- "3.12"
56+
- "3.13"
5357
- "nightly" # nightly build
5458
# command to install dependencies
5559
install:
@@ -103,8 +107,8 @@ python:
103107
- "2.7"
104108
- "3.8"
105109
# PyPy versions
106-
- "pypy" # currently Python 2.7.13, PyPy 7.1.1
107-
- "pypy3" # currently Python 3.6.9, PyPy 7.3.1
110+
- "pypy" # currently Python 2.7.18, PyPy 7.3.19
111+
- "pypy3" # currently Python 3.10.16, PyPy 7.3.19
108112
# command to install dependencies
109113
install:
110114
- pip install -r requirements.txt
@@ -124,7 +128,7 @@ a recent development version of [CPython](https://github.com/python/cpython) bui
124128
From Python 3.5 and later, Python In Development versions are available.
125129

126130
You can specify these in your builds with `3.5-dev`, `3.6-dev`,
127-
`3.7-dev`, `3.8-dev`, `3.9-dev`, `3.10-dev` or `3.11-dev`
131+
`3.7-dev`, `3.8-dev`, `3.9-dev`, `3.10-dev`, `3.11-dev`, `3.12-dev`, `3.13-dev` or `3.14-dev`.
128132

129133
## Default Build Script
130134

@@ -156,7 +160,7 @@ Due to the way Travis is designed, interaction with [tox](https://tox.readthedoc
156160
As described [above](/user/languages/python/#travis-ci-uses-isolated-virtualenvs), Travis already runs tests inside an isolated virtualenv whenever `language: python` is specified, so please bear that in mind whenever creating more environments with tox. If you would prefer to run tox outside the Travis-created virtualenv, it might be a better idea to use `language: generic` instead of `language: python`.
157161

158162
If you're using tox to test your code against multiple versions of Python, you have two options:
159-
* use `language: generic` and manually install the Python versions you're interested in before running tox (without the manual installation, tox will only have access to the default Ubuntu Python versions - 2.7.12 and 3.5.2 for Xenial)
163+
* use `language: generic` and manually install the Python versions you're interested in before running tox (without the manual installation, tox will only have access to the default Ubuntu Python versions in a chosen distribution)
160164
* use `language: python` and a build matrix that uses a different version of Python for each branch (you can specify the Python version by using the `python` key). This will ensure the versions you're interested in are installed and will parallelize your workload.
161165

162166
## Run Python tests on multiple Operating Systems

0 commit comments

Comments
 (0)