Skip to content

Commit d055d11

Browse files
authored
Merge pull request readthedocs#7421 from readthedocs/humitos/ubuntu-20.04
2 parents 25c0f5d + 312cb56 commit d055d11

File tree

8 files changed

+15
-22
lines changed

8 files changed

+15
-22
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
jobs:
44
tests:
55
docker:
6-
- image: 'cimg/python:3.6'
6+
- image: 'cimg/python:3.8'
77
environment:
88
TOX_POSARGS: ''
99
- image: 'docker.elastic.co/elasticsearch/elasticsearch:7.14.0'
@@ -19,7 +19,7 @@ jobs:
1919

2020
tests-embedapi:
2121
docker:
22-
- image: 'cimg/python:3.6'
22+
- image: 'cimg/python:3.8'
2323
steps:
2424
- checkout
2525
- run: git submodule sync
@@ -29,7 +29,7 @@ jobs:
2929

3030
checks:
3131
docker:
32-
- image: 'cimg/python:3.6'
32+
- image: 'cimg/python:3.8'
3333
environment:
3434
NODE_VERSION: 10.17.0
3535
steps:

dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

33
ARG GITHUB_TOKEN
44

docs/development/docs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ you may want to verify those changes locally before pushing upstream.
3131
3232
$ git clone --recurse-submodules https://github.com/readthedocs/readthedocs.org/
3333
34-
#. create a virtual environment with Python 3.6
35-
(preferably the latest release, 3.6.15 at the time of writing),
34+
#. create a virtual environment with Python 3.8
35+
(preferably the latest release, 3.8.12 at the time of writing),
3636
activate it, and upgrade both pip and setuptools:
3737

3838
.. code-block:: console
3939
4040
$ cd readthedocs.org
41-
$ python3.6 -m venv .venv
41+
$ python3.8 -m venv .venv
4242
$ source .venv/bin/activate
4343
(.venv) $ python -m pip install -U pip setuptools
4444

docs/development/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ save some work while typing docker compose commands. This section explains these
142142
``inv docker.test``
143143
Runs all the test suites inside the container.
144144

145-
* ``--arguments`` will pass arguments to Tox command (e.g. ``--arguments "-e py36 -- -k test_api"``)
145+
* ``--arguments`` will pass arguments to Tox command (e.g. ``--arguments "-e py38 -- -k test_api"``)
146146

147147
``inv docker.pull``
148148
Downloads and tags all the Docker images required for builders.

docs/development/tests.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ To target a specific environment:
4646

4747
.. prompt:: bash
4848

49-
tox -e py36
49+
tox -e py38
5050

5151
The ``tox`` configuration has the following environments configured. You can
5252
target a single environment to limit the test suite:
5353

54-
py36
55-
Run our test suite using Python 3.6
54+
py38
55+
Run our test suite using Python 3.8
5656

5757
lint
5858
Run code linting using `Prospector`_. This currently runs `pylint`_,

requirements/pip.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ pyquery==1.4.3
5757
# NOTE: this dep can be removed in python 3.7 in favor of ``date.fromisoformat``
5858
python-dateutil==2.8.2
5959

60-
# Version 3.6.3 is not available for Python 3.6
61-
orjson==3.6.1 # pyup: ignore
60+
orjson==3.6.3
6261

6362
# Utils
6463
django-gravatar2==1.4.4

requirements/testing.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ pytest-cov==2.12.1
1111
apipkg==2.0.0
1212
execnet==1.9.0
1313

14-
# Mercurial 4.3 and newer require Python 2.7
15-
# Mercurial is actively being ported to Python 3. As of Mercurial 4.3,
16-
# some commands work on Python 3. However, Python 3 is not yet a
17-
# supported platform.
18-
# mercurial-scm.org/wiki/SupportedPythonVersions
19-
# (Pinned to 4.4.2 since what we need for testing is still useful)
20-
Mercurial==4.4.2 # pyup: ignore
14+
Mercurial==5.5
2115

2216
yamale==2.2.0 # pyup: <3.0
2317
pytest-mock==3.6.1

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion=2.9.0
3-
envlist = py36,lint,docs
3+
envlist = py38,lint,docs
44
skipsdist = True
55

66
[testenv]
@@ -15,7 +15,7 @@ passenv = CI TRAVIS TRAVIS_* HOME
1515
deps = -r{toxinidir}/requirements/testing.txt
1616
changedir = {toxinidir}/readthedocs
1717
basepython =
18-
python3.6
18+
python3.8
1919
commands =
2020
/bin/sh -c '\
2121
export DJANGO_SETTINGS_MODULE=readthedocs.settings.test; \

0 commit comments

Comments
 (0)