Skip to content

Commit bb87801

Browse files
[ERSSUP-81149]-[]-[Upgrade python to version 3.12]-[DMW]
1 parent a3a65a2 commit bb87801

File tree

5 files changed

+19
-37
lines changed

5 files changed

+19
-37
lines changed

.github/workflows/continous-integration-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
with:
1313
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
1414

15-
- name: Install Python 3.10
15+
- name: Install Python 3.12
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10'
18+
python-version: '3.12'
1919

2020
- name: Upgrade python packaging tools
2121
run: python -m pip install --upgrade pip setuptools wheel

azure/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ variables:
55
product_display_name: e-Referrals-Service
66
product_description: The NHS e-RS vision is to enable local innovation and adoption of paperless referrals. To support this vision NHS Digital have created a set of APIs which provide a well-defined, simple to use data interface to the NHS e-Referral Service (e-RS). See https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir
77
spec_file: e-referrals-service-api.json
8-
python_version: 3.10
8+
python_version: 3.11

poetry.lock

Lines changed: 2 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ keywords = ["healthcare", "uk", "nhs"] #TODO add additional keywords
2020

2121

2222
[tool.poetry.dependencies]
23-
python = "^3.10"
23+
python = "^3.12"
2424
pyyaml = "^6.0"
2525
docopt = "^0.6.2"
2626
jsonpath-rw = "^1.4.0"

scripts/ubuntu_setup_environment.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,29 +63,29 @@ else
6363
fi
6464

6565

66-
#Installing python 3.10.8 with pyenv
67-
echo "Installing python 3.10.8 with pyenv ..."
68-
if pyenv versions | grep -Fq "3.10.8" ; then
69-
echo "Pyenv has already got Python 3.10.8 installed."
66+
#Installing python 3.12.7 with pyenv
67+
echo "Installing python 3.12.7 with pyenv ..."
68+
if pyenv versions | grep -Fq "3.12.7" ; then
69+
echo "Pyenv has already got Python 3.12.7 installed."
7070
else
71-
if pyenv install 3.10.8 ; then
72-
echo "Pyenv installed Python 3.10.8 successfully."
71+
if pyenv install 3.12.7 ; then
72+
echo "Pyenv installed Python 3.12.7 successfully."
7373
else
74-
echo "Pyenv did NOT install Python 3.10.8 successfully."
74+
echo "Pyenv did NOT install Python 3.12.7 successfully."
7575
exit 1
7676
fi
7777
fi
7878

7979

80-
#Creating Apigee environment with Python 3.10.8
81-
echo "Creating Apigee environment with Python 3.10.8 ..."
80+
#Creating Apigee environment with Python 3.12.7
81+
echo "Creating Apigee environment with Python 3.12.7 ..."
8282
if pyenv versions | grep -q ".*apigee" ; then
8383
echo "A Python virtualenv named 'apigee' already exists."
8484
else
85-
if pyenv virtualenv 3.10.8 apigee ; then
86-
echo "A Python 3.10.8 virtualenv named 'apigee' was created."
85+
if pyenv virtualenv 3.12.7 apigee ; then
86+
echo "A Python 3.12.7 virtualenv named 'apigee' was created."
8787
else
88-
echo "A Python 3.10.8 virtualenv named 'apigee' was NOT created."
88+
echo "A Python 3.12.7 virtualenv named 'apigee' was NOT created."
8989
exit 1
9090
fi
9191
fi
@@ -104,7 +104,7 @@ fi
104104
#Checking python version
105105
echo "Checking python version ..."
106106
version=$(python -V 2>&1)
107-
if [[ $version = 'Python 3.10.8' ]] ; then
107+
if [[ $version = 'Python 3.12.7' ]] ; then
108108
echo "Python version is correct."
109109
else
110110
echo "Python version is NOT correct."

0 commit comments

Comments
 (0)