From c615fe027daa45c6e81af4b49c75f9a6a8ecd4b7 Mon Sep 17 00:00:00 2001 From: Ben Outram Date: Thu, 7 Dec 2023 11:57:16 +0000 Subject: [PATCH] chore: update python version to 3.12.0 --- .pre-commit-config.yaml | 2 +- .python-version | 1 + Pipfile | 2 +- Pipfile.lock | 44 +++++++++++++++++++++++--- README.md | 2 +- infrastructure/azure-pipelines-ci.yaml | 12 +++---- infrastructure/azure-pipelines-pr.yaml | 12 +++---- 7 files changed, 54 insertions(+), 21 deletions(-) create mode 100644 .python-version diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8591c29f..d6cccdad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: rev: 23.9.1 hooks: - id: black - language_version: python3.11 + language_version: python3.12 - repo: https://github.com/PyCQA/isort rev: 5.12.0 diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..87dbaa15 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12.0 \ No newline at end of file diff --git a/Pipfile b/Pipfile index 9a88e651..290cad69 100644 --- a/Pipfile +++ b/Pipfile @@ -25,4 +25,4 @@ flake8 = "==6.1.0" pre-commit = "==3.5.0" [requires] -python_version = "3.11" +python_version = "3.12" diff --git a/Pipfile.lock b/Pipfile.lock index ca1bb63a..3f9deae9 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "ac64624d8c2c483e73fd4d84b1cf5061d0fd8d3b2654ad8d614252e146847d90" + "sha256": "fa8da2ab083df16f315786a8db3b8c4d57b114b39c22a4d19040c4f5defbb934" }, "pipfile-spec": 6, "requires": { - "python_version": "3.11" + "python_version": "3.12" }, "sources": [ { @@ -261,6 +261,14 @@ "markers": "python_version >= '3.7'", "version": "==8.1.7" }, + "colorama": { + "hashes": [ + "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", + "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6" + ], + "markers": "platform_system == 'Windows'", + "version": "==0.4.6" + }, "dataclasses-json": { "hashes": [ "sha256:35cb40aae824736fdf959801356641836365219cfe14caeb115c39136f775d2a", @@ -608,7 +616,7 @@ "sha256:5f3e884991271e8b55eda4c63a11105dcd7da119682ce0e3d5d1385b3a4103d2" ], "index": "pypi", - "markers": "python_version < '4.0' and python_full_version >= '3.8.1'", + "markers": "python_full_version >= '3.8.1' and python_version < '4.0'", "version": "==0.0.329" }, "langsmith": { @@ -616,7 +624,7 @@ "sha256:49a2546bb83eedb0552673cf81a068bb08078d6d48471f4f1018e1d5c6aa46b1", "sha256:8fb5297f274db0576ec650d9bab0319acfbb6622d62bc5bb9fe31c6235dc0358" ], - "markers": "python_version < '4.0' and python_full_version >= '3.8.1'", + "markers": "python_full_version >= '3.8.1' and python_version < '4.0'", "version": "==0.0.69" }, "marshmallow": { @@ -936,6 +944,26 @@ "markers": "python_version >= '3.8'", "version": "==1.0.0" }, + "pywin32": { + "hashes": [ + "sha256:06d3420a5155ba65f0b72f2699b5bacf3109f36acbe8923765c22938a69dfc8d", + "sha256:1c73ea9a0d2283d889001998059f5eaaba3b6238f767c9cf2833b13e6a685f65", + "sha256:37257794c1ad39ee9be652da0462dc2e394c8159dfd913a8a4e8eb6fd346da0e", + "sha256:383229d515657f4e3ed1343da8be101000562bf514591ff383ae940cad65458b", + "sha256:39b61c15272833b5c329a2989999dcae836b1eed650252ab1b7bfbe1d59f30f4", + "sha256:5821ec52f6d321aa59e2db7e0a35b997de60c201943557d108af9d4ae1ec7040", + "sha256:70dba0c913d19f942a2db25217d9a1b726c278f483a919f1abfed79c9cf64d3a", + "sha256:72c5f621542d7bdd4fdb716227be0dd3f8565c11b280be6315b06ace35487d36", + "sha256:84f4471dbca1887ea3803d8848a1616429ac94a4a8d05f4bc9c5dcfd42ca99c8", + "sha256:a7639f51c184c0272e93f244eb24dafca9b1855707d94c192d4a0b4c01e1100e", + "sha256:e25fd5b485b55ac9c057f67d94bc203f3f6595078d1fb3b458c9c28b7153a802", + "sha256:e4c092e2589b5cf0d365849e73e02c391c1349958c5ac3e9d5ccb9a28e017b3a", + "sha256:e65028133d15b64d2ed8f06dd9fbc268352478d4f9289e69c190ecd6818b6407", + "sha256:e8ac1ae3601bee6ca9f7cb4b5363bf1c0badb935ef243c4733ff9a393b1690c0" + ], + "markers": "platform_system == 'Windows'", + "version": "==306" + }, "pyyaml": { "hashes": [ "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5", @@ -1292,6 +1320,14 @@ "markers": "python_version >= '3.7'", "version": "==8.1.7" }, + "colorama": { + "hashes": [ + "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", + "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6" + ], + "markers": "platform_system == 'Windows'", + "version": "==0.4.6" + }, "coverage": { "extras": [ "toml" diff --git a/README.md b/README.md index 90987f31..2c91afdc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The latter fastapi server exposes the Qdrant, openai and langchain apis. This me ## Prerequisites -- [Python](https://www.python.org/downloads/) version 3.11 or higher installed on your system. +- [Python](https://www.python.org/downloads/) version 3.12.0 installed on your system. - [Docker](https://www.docker.com/get-started) installed and running on your system. - [Pipenv](https://pipenv.pypa.io/en/latest/) for managing Python dependencies. - [npm](https://nodejs.org/en/download) for managing frontend dependencies. diff --git a/infrastructure/azure-pipelines-ci.yaml b/infrastructure/azure-pipelines-ci.yaml index 8ea99799..ffafa7d5 100644 --- a/infrastructure/azure-pipelines-ci.yaml +++ b/infrastructure/azure-pipelines-ci.yaml @@ -36,8 +36,8 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - Python311: - python.version: '3.11' + Python312: + python.version: '3.12' displayName: 'Create Data Ingestion API Artifact' steps: - template: templates/python-steps.yaml @@ -60,8 +60,8 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - Python311: - python.version: '3.11' + Python312: + python.version: '3.12' displayName: 'Create Response Automater API Artifact' steps: - template: templates/python-steps.yaml @@ -77,6 +77,4 @@ jobs: - publish: $(Build.ArtifactStagingDirectory)/ResponseAutomaterAPI/ResponseAutomaterAPI$(Build.BuildId).zip displayName: 'Upload Response Automater' - artifact: ResponseAutomaterAPI - - + artifact: ResponseAutomaterAPI \ No newline at end of file diff --git a/infrastructure/azure-pipelines-pr.yaml b/infrastructure/azure-pipelines-pr.yaml index 49429470..9fb4d763 100644 --- a/infrastructure/azure-pipelines-pr.yaml +++ b/infrastructure/azure-pipelines-pr.yaml @@ -47,8 +47,8 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - Python311: - python.version: '3.11' + Python312: + python.version: '3.12' displayName: 'Data Ingestion API Tests' steps: - template: templates/python-steps.yaml @@ -77,8 +77,8 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - Python311: - python.version: '3.11' + Python312: + python.version: '3.12' displayName: 'Response Automater Tests' steps: - template: templates/python-steps.yaml @@ -100,6 +100,4 @@ jobs: - task: PublishCodeCoverageResults@2 displayName: 'Collect Code Coverage' inputs: - summaryFileLocation: ./coverage.xml - - + summaryFileLocation: ./coverage.xml \ No newline at end of file