Skip to content

Commit

Permalink
Merge pull request #1514 from buildtesters/bump_python_dep
Browse files Browse the repository at this point in the history
Bump python version dependency to 3.8
  • Loading branch information
shahzebsiddiqui authored Jul 6, 2023
2 parents b5c0d78 + a0c3df9 commit 2663a98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sphinx:
build:
os: "ubuntu-20.04"
tools:
python: "3.7"
python: "3.8"
apt_packages:
- iputils-ping
- build-essential
Expand Down
4 changes: 2 additions & 2 deletions bin/buildtest
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ prefix=os.path.dirname(os.path.dirname(buildtest_file))

sys.path.insert(0, prefix)

if sys.version_info[:3] < (3, 7, 0):
sys.exit("buildtest requires Python 3.7.0 or higher.")
if sys.version_info[:3] < (3, 8, 0):
sys.exit("buildtest requires Python 3.8.0 or higher.")

import buildtest.main

Expand Down
10 changes: 5 additions & 5 deletions docs/installing_buildtest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Requirements
You need the following packages to install buildtest.

- `git <https://git-scm.com/downloads>`_
- `Python <https://www.python.org/downloads/>`_ >= 3.7
- `Python <https://www.python.org/downloads/>`_ >= 3.8

Cloning buildtest
------------------
Expand Down Expand Up @@ -37,7 +37,7 @@ If you prefer the latest release, you can clone the **master** branch::
Installing buildtest
-----------------------

buildtest requires a python 3.7 or higher, we recommend you setup a python environment in order
buildtest requires a python 3.8 or higher, we recommend you setup a python environment in order
to install buildtest. You can use `venv <https://docs.python.org/3/library/venv.html>`_, `conda <https://conda.io/>`_,
or `pipenv <https://pipenv.readthedocs.io/en/latest/>`_ to manage your python environment depending on your preference.
Assuming you have cloned buildtest in your HOME directory you will need to follow these instructions to install buildtest.
Expand Down Expand Up @@ -66,15 +66,15 @@ Assuming you have cloned buildtest in your HOME directory you will need to follo

.. code-block:: console
conda create -n buildtest python=3.7
conda create -n buildtest python=3.8
source activate buildtest
source $HOME/buildtest/setup.sh
.. tab-item:: pipenv

.. code-block:: console
pipenv --python 3.7
pipenv --python 3.8
pipenv shell
source $HOME/buildtest/setup.sh
Expand All @@ -92,7 +92,7 @@ Specify Python Wrapper via BUILDTEST_PYTHON
The `buildtest <https://github.com/buildtesters/buildtest/blob/devel/bin/buildtest>`_ program will search for
a python wrapper (`python`, `python3`) to run buildtest, however you can specify an alternate python wrapper by
setting environment variable ``BUILDTEST_PYTHON`` wrapper. This variable will be set during execution of buildtest,
please note the python wrapper must be 3.7 or higher in-order for buildtest to function properly.
please note the python wrapper must be 3.8 or higher in-order for buildtest to function properly.

Development Dependencies (Optional)
------------------------------------
Expand Down

0 comments on commit 2663a98

Please sign in to comment.