From b562ceb00a051b554d7aa19a47d6dc655b5c240c Mon Sep 17 00:00:00 2001 From: scito Date: Sun, 27 Nov 2022 18:33:21 +0100 Subject: [PATCH] use Python 3.11 for pipenv --- Pipfile | 2 +- Pipfile.lock | 46 +++++++++++++++------------------------------- upgrade_deps.sh | 12 +++++++++++- 3 files changed, 27 insertions(+), 33 deletions(-) diff --git a/Pipfile b/Pipfile index b9dd6ff..e45a6dd 100644 --- a/Pipfile +++ b/Pipfile @@ -15,4 +15,4 @@ flake8 = "*" pylint = "*" [requires] -python_version = "3.10" +python_version = "3.11" diff --git a/Pipfile.lock b/Pipfile.lock index 2d0342f..8f3f1b0 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "20c3626aae91ad69aa53ab9390c76cb7e8a76c29874d4ca957d5a5f2d45ef15a" + "sha256": "38a1c4d86c2546c0ac33f77c1a20dc325b50be44b8c4b310050b63033558507d" }, "pipfile-spec": 6, "requires": { - "python_version": "3.10" + "python_version": "3.11" }, "sources": [ { @@ -114,11 +114,11 @@ "develop": { "astroid": { "hashes": [ - "sha256:1c00a14f5a3ed0339d38d2e2e5b74ea2591df5861c0936bb292b84ccf3a78d83", - "sha256:72702205200b2a638358369d90c222d74ebc376787af8fb2f7f2a86f7b5cc85f" + "sha256:10e0ad5f7b79c435179d0d0f0df69998c4eef4597534aae44910db060baeb907", + "sha256:1493fe8bd3dfd73dc35bd53c9d5b6e49ead98497c47b2307662556a5692d29d7" ], "markers": "python_full_version >= '3.7.2'", - "version": "==2.12.12" + "version": "==2.12.13" }, "attrs": { "hashes": [ @@ -136,21 +136,13 @@ "markers": "python_version >= '3.7'", "version": "==0.3.6" }, - "exceptiongroup": { - "hashes": [ - "sha256:542adf9dea4055530d6e1279602fa5cb11dab2395fa650b8674eaec35fc4a828", - "sha256:bd14967b79cd9bdb54d97323216f8fdf533e278df937aa2a90089e7d6e06e5ec" - ], - "markers": "python_version < '3.11'", - "version": "==1.0.4" - }, "flake8": { "hashes": [ - "sha256:6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db", - "sha256:7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248" + "sha256:3833794e27ff64ea4e9cf5d410082a8b97ff1a06c16aa3d2027339cd0f1195c7", + "sha256:c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181" ], "index": "pypi", - "version": "==5.0.4" + "version": "==6.0.0" }, "iniconfig": { "hashes": [ @@ -226,19 +218,19 @@ }, "pycodestyle": { "hashes": [ - "sha256:2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785", - "sha256:d1735fc58b418fd7c5f658d28d943854f8a849b01a5d0a1e6f3f3fdd0166804b" + "sha256:347187bdb476329d98f695c213d7295a846d1152ff4fe9bacb8a9590b8ee7053", + "sha256:8a4eaf0d0495c7395bdab3589ac2db602797d76207242c17d470186815706610" ], "markers": "python_version >= '3.6'", - "version": "==2.9.1" + "version": "==2.10.0" }, "pyflakes": { "hashes": [ - "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2", - "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3" + "sha256:ec55bf7fe21fff7f1ad2f7da62363d749e2a470500eab1b555334b67aa1ef8cf", + "sha256:ec8b276a6b60bd80defed25add7e439881c19e64850afd9b346283d4165fd0fd" ], "markers": "python_version >= '3.6'", - "version": "==2.5.0" + "version": "==3.0.1" }, "pylint": { "hashes": [ @@ -264,14 +256,6 @@ "index": "pypi", "version": "==7.2.0" }, - "tomli": { - "hashes": [ - "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", - "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" - ], - "markers": "python_version < '3.11'", - "version": "==2.0.1" - }, "tomlkit": { "hashes": [ "sha256:07de26b0d8cfc18f871aec595fda24d95b08fef89d147caa861939f37230bf4b", @@ -355,7 +339,7 @@ "sha256:ee6acae74a2b91865910eef5e7de37dc6895ad96fa23603d1d27ea69df545015", "sha256:ef3f72c9666bba2bab70d2a8b79f2c6d2c1a42a7f7e2b0ec83bb2f9e383950af" ], - "markers": "python_version < '3.11'", + "markers": "python_version >= '3.11'", "version": "==1.14.1" } } diff --git a/upgrade_deps.sh b/upgrade_deps.sh index 71d7b81..fae22f1 100755 --- a/upgrade_deps.sh +++ b/upgrade_deps.sh @@ -189,16 +189,26 @@ cmd="$PIP install -U -r requirements-dev.txt" if $interactive ; then askContinueYn "$cmd"; fi eval "$cmd" +cmd="$PIP install -U pipenv" +if $interactive ; then askContinueYn "$cmd"; fi +eval "$cmd" + $PIPENV --version -cmd="$PIPENV update" +cmd="$PIPENV update && $PIPENV --rm && $PIPENV install" if $interactive ; then askContinueYn "$cmd"; fi eval "$cmd" +$PIPENV run python --version + # Test cmd="pytest" if $interactive ; then askContinueYn "$cmd"; fi eval "$cmd" +cmd="$PIPENV run pytest" +if $interactive ; then askContinueYn "$cmd"; fi +eval "$cmd" + quit