Skip to content

Commit cac2489

Browse files
authored
Merge pull request #9010 from readthedocs/humitos/ubuntu-22.04-for-servers
2 parents a7d80d8 + a0ab9b7 commit cac2489

File tree

6 files changed

+21
-27
lines changed

6 files changed

+21
-27
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
jobs:
77
tests:
88
docker:
9-
- image: 'cimg/python:3.8'
9+
- image: 'cimg/python:3.10'
1010
environment:
1111
TOX_POSARGS: ''
1212
- image: 'docker.elastic.co/elasticsearch/elasticsearch:7.14.0'
@@ -19,12 +19,12 @@ jobs:
1919
- run: git submodule sync
2020
- run: git submodule update --init
2121
- run: pip install --user tox
22-
- run: tox -e py38
22+
- run: tox -e py310
2323
- codecov/upload
2424

2525
tests-embedapi:
2626
docker:
27-
- image: 'cimg/python:3.8'
27+
- image: 'cimg/python:3.10'
2828
steps:
2929
- checkout
3030
- run: git submodule sync
@@ -34,7 +34,7 @@ jobs:
3434

3535
checks:
3636
docker:
37-
- image: 'cimg/python:3.8'
37+
- image: 'cimg/python:3.10'
3838
environment:
3939
NODE_VERSION: 10.17.0
4040
steps:

dockerfiles/Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ARG GITHUB_USER
44
ARG GITHUB_TOKEN
@@ -24,21 +24,12 @@ RUN apt-get -y install \
2424
libmysqlclient-dev \
2525
libfreetype6 \
2626
libjpeg-dev \
27+
postgresql-client \
2728
sqlite \
2829
netcat \
2930
telnet \
3031
lsb-release
3132

32-
# https://www.postgresql.org/download/linux/ubuntu/
33-
# Use PostgreSQL client 12 from official PostgreSQL Ubuntu's repository to avoid this WARNING
34-
# WARNING: psql major version 10, server major version 12.
35-
# Some psql features might not work.
36-
# TODO: remove this when upgrading to Ubuntu 20.04 LTS
37-
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
38-
RUN curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
39-
RUN apt-get -y update
40-
RUN apt-get -y install postgresql-client-12
41-
4233
# Uncomment en_US.UTF-8 locale and generate it
4334
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
4435
locale-gen

docs/dev/install.rst

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

136-
* ``--arguments`` will pass arguments to Tox command (e.g. ``--arguments "-e py38 -- -k test_api"``)
136+
* ``--arguments`` will pass arguments to Tox command (e.g. ``--arguments "-e py310 -- -k test_api"``)
137137

138138
``inv docker.pull``
139139
Downloads and tags all the Docker images required for builders.

docs/dev/tests.rst

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

4747
.. prompt:: bash
4848

49-
tox -e py38
49+
tox -e py310
5050

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

54-
py38
55-
Run our test suite using Python 3.8
54+
py310
55+
Run our test suite using Python 3.10
5656

57-
py38-debug
58-
Same as ``py38``, but there are some useful debugging tools available in the environment.
57+
py310-debug
58+
Same as ``py310``, but there are some useful debugging tools available in the environment.
5959

6060
lint
6161
Run code linting using `Prospector`_. This currently runs `pylint`_,

tox.embedapi.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
2-
envlist = sphinx-{18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,latest}
2+
# NOTE: Sphinx 3.5 and 4.x < 4.2 fails with Python 3.10 because of a typing issue
3+
envlist = sphinx-{18,20,21,22,23,24,30,31,32,33,34,42,43,44,45,latest}
34

45
[testenv]
56
description = run test suite for the EmbedAPIv3
@@ -24,13 +25,14 @@ deps =
2425
sphinx-32: Sphinx~=3.2.0
2526
sphinx-33: Sphinx~=3.3.0
2627
sphinx-34: Sphinx~=3.4.0
27-
sphinx-35: Sphinx~=3.5.0
28-
sphinx-40: Sphinx~=4.0.0
29-
sphinx-41: Sphinx~=4.1.0
3028
sphinx-42: Sphinx~=4.2.0
29+
sphinx-43: Sphinx~=4.3.0
30+
sphinx-44: Sphinx~=4.4.0
31+
sphinx-45: Sphinx~=4.5.0
3132
sphinx-latest: Sphinx
3233
jinja2<3.1.0
3334
setenv =
3435
DJANGO_SETTINGS_MODULE=readthedocs.settings.test
36+
VIRTUALENV_SETUPTOOLS=58.3.0
3537
changedir = {toxinidir}/readthedocs
3638
commands = pytest -m embed_api {posargs}

tox.ini

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

66
[testenv]
@@ -11,12 +11,13 @@ setenv =
1111
LANG=en_US.UTF-8
1212
LC_ALL=en_US.UTF-8
1313
DJANGO_SETTINGS_SKIP_LOCAL=True
14+
VIRTUALENV_SETUPTOOLS=58.3.0
1415
passenv = CI TRAVIS TRAVIS_* HOME
1516
deps =
1617
-r requirements/testing.txt
1718
debug: -r requirements/debug.txt
1819
basepython =
19-
python3.8
20+
python3.10
2021
commands =
2122
/bin/sh -c '\
2223
export DJANGO_SETTINGS_MODULE=readthedocs.settings.test; \

0 commit comments

Comments
 (0)