Skip to content

Commit

Permalink
Merge pull request #667 from chrispyles/default-python
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispyles committed Jul 16, 2023
2 parents d7a75b9 + b4041d0 commit 72555ea
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 24 deletions.
8 changes: 0 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ version: 2
sphinx:
configuration: docs/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7

conda:
environment: rtd_environment.yml
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Updated Otter Assign to normalize notebooks before writing them with `nbformat.validator.normalize` per [#658](https://github.com/ucbds-infra/otter-grader/issues/658)
* Added summary of assignment questions to Otter Assign logging per [#564](https://github.com/ucbds-infra/otter-grader/issues/564)
* Converted to Mamba from Conda for package management in grading containers per [#660](https://github.com/ucbds-infra/otter-grader/issues/660)
* Upgraded default Python version in grading containers from 3.7 to 3.9

**v4.4.0:**

Expand Down
2 changes: 1 addition & 1 deletion docs/_static/grading-environment-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- r
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- r-base>=4.0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/grading-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- pip:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def setup(app):
make_setup_sh_files()

with open("_static/grading-environment.yml", "w+") as f:
f.write(CondaEnvironment(3.7, False, [], False, None).to_str())
f.write(CondaEnvironment("3.9", False, [], False, None).to_str())

with open("_static/grading-environment-r.yml", "w+") as f:
f.write(CondaEnvironment(3.7, True, [], False, None).to_str())
f.write(CondaEnvironment("3.9", True, [], False, None).to_str())
4 changes: 2 additions & 2 deletions docs/otter_assign/notebook_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ name in the metadata.
You can find more information about how Otter performs assignment name verification
:ref:`here<workflow_execution_submissions_assignment_name_verification>`.

By default, Otter's grading images uses Python 3.7. If you need a different version, you can
By default, Otter's grading images uses Python 3.9. If you need a different version, you can
specify one using the ``python_version`` config:

.. code-block:: yaml
# ASSIGNMENT CONFIG
python_version: 3.9
python_version: 3.10
.. _otter_assign_seed_variables:
Expand Down
2 changes: 1 addition & 1 deletion docs/workflow/otter_generate/container_image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ included if you have provided an :ref:`R requirements file
-------------------

This file specifies the conda environment that Otter creates in ``setup.sh``. By default, it uses
Python 3.7, but this can be changed using the ``--python-version`` flag to Otter Generate.
Python 3.9, but this can be changed using the ``--python-version`` flag to Otter Generate.

.. literalinclude:: ../../_static/grading-environment.yml
:language: yaml
Expand Down
2 changes: 1 addition & 1 deletion otter/generate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ..version import __version__


DEFAULT_PYTHON_VERSION = "3.7"
DEFAULT_PYTHON_VERSION = "3.9"
OTTER_ENV_NAME = "otter-env"
OTTR_VERSION = "1.2.0"
TEMPLATE_DIR = pkg_resources.resource_filename(__name__, "templates")
Expand Down
2 changes: 1 addition & 1 deletion rtd_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python>=3.6
- python
- pip
- pip:
- -r requirements.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- pip:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- r
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- r-base>=4.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- pip:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- r
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- r-base>=4.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
- r
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- r-base>=4.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- pip:
Expand Down
2 changes: 1 addition & 1 deletion test/test_run/files/autograder/source/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- python=3.7
- python=3.9
- pip
- nb_conda_kernels
- pip:
Expand Down

0 comments on commit 72555ea

Please sign in to comment.