Skip to content

Commit

Permalink
Docs: Bump Python version for RTD build (#5999)
Browse files Browse the repository at this point in the history
The readthedocs (RTD) build was failing with the following error:

    read the docs ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1

This was due to a change in the support for `urllib`, see:

urllib3/urllib3#2168

Which requires Python > 3.8. Hence here we update the Python version.
  • Loading branch information
mbercx authored May 5, 2023
1 parent 777b976 commit 5df446c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ version: 2
# https://github.com/aiidateam/aiida-core/issues/1472
formats: []

build:
os: ubuntu-22.04
tools:
python: "3.10"

# Need to install the package itself such that the entry points are installed and the API doc can build properly
python:
version: 3.8
install:
- method: pip
path: .
Expand Down
4 changes: 2 additions & 2 deletions aiida/manage/tests/pytest_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def aiida_manager() -> Manager:

@pytest.fixture(scope='session')
def aiida_instance(
tmp_path_factory: pytest.TempPathFactory,
tmp_path_factory: pytest.tmpdir.TempPathFactory,
aiida_manager: Manager,
aiida_test_profile: str | None,
) -> t.Generator[Config, None, None]:
Expand Down Expand Up @@ -185,7 +185,7 @@ def aiida_instance(

@pytest.fixture(scope='session')
def config_psql_dos(
tmp_path_factory: pytest.TempPathFactory,
tmp_path_factory: pytest.tmpdir.TempPathFactory,
postgres_cluster: dict[str, str],
) -> t.Callable[[dict[str, t.Any] | None], dict[str, t.Any]]:
"""Return a profile configuration for the :class:`~aiida.storage.psql_dos.backend.PsqlDosBackend`."""
Expand Down
2 changes: 1 addition & 1 deletion docs/source/nitpick-exceptions
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ py:class disk_objectstore.container.Container
py:class flask.app.Flask
py:class flask.json.JSONEncoder

py:class pytest.TempPathFactory
py:class pytest.tmpdir.TempPathFactory

py:class sqlalchemy.orm.decl_api.SqliteModel
py:class sqlalchemy.orm.decl_api.Base
Expand Down

0 comments on commit 5df446c

Please sign in to comment.