Skip to content

Commit

Permalink
Upgrade to Python 3.11 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Sep 14, 2023
1 parent c8c8c8b commit c4229f4
Show file tree
Hide file tree
Showing 8 changed files with 1,330 additions and 1,243 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.7
3.11.4
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.11-slim

WORKDIR /benchmark
COPY . /benchmark
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ matplotlib = "*"
slackclient = "*"

[requires]
python_version = "3.10"
python_version = "3.11"

[pipenv]
allow_prereleases = false
2,560 changes: 1,326 additions & 1,234 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ci/output-results-to-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image_resource:
type: docker-image
source:
repository: python
tag: 3.10-slim
tag: 3.11-slim
inputs:
- name: eq-survey-runner-benchmark
params:
Expand Down
3 changes: 0 additions & 3 deletions runner_benchmark/questionnaire_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def get(self, url, name=None, expect_redirect=False):
with self.client.get(
url=url, name=name, allow_redirects=False, catch_response=True
) as response:

if expect_redirect:
if response.status_code != 302:
error = f"Expected a (302) but got a ({response.status_code}) back when getting page: {url}"
Expand All @@ -31,7 +30,6 @@ def get(self, url, name=None, expect_redirect=False):
return response

def post(self, base_url, request_url, data={}, name=None):

data['csrf_token'] = self.csrf_token
headers = {'Referer': base_url}

Expand All @@ -43,7 +41,6 @@ def post(self, base_url, request_url, data={}, name=None):
name=name,
catch_response=True,
) as response:

if response.status_code != 302:
error = f"Expected a (302) but got a ({response.status_code}) back when posting page: {request_url} with data: {data}"
response.failure(error)
Expand Down
1 change: 0 additions & 1 deletion scripts/get_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def get_results(folders, number_of_days=None):


def parse_environment_variables():

days = os.getenv("NUMBER_OF_DAYS")
if days and days.isdigit() is False:
print("'NUMBER_OF_DAYS' environment variable must be a valid integer value")
Expand Down
1 change: 0 additions & 1 deletion scripts/google_cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def upload_files(
blob.upload_from_filename(filename=output_file)

def get_files(self, from_date, output_dir):

for blob in self.client.list_blobs(self.bucket_name):
if blob.name.endswith("/") or (from_date and blob.time_created < from_date):
continue
Expand Down

0 comments on commit c4229f4

Please sign in to comment.