From 77535111b11279edb1659d42790b1e0d47ead018 Mon Sep 17 00:00:00 2001 From: Albert Byrone Date: Sat, 1 Apr 2023 12:17:27 +0300 Subject: [PATCH 1/3] create virtual env using pipenv --- Pipfile | 2 +- Pipfile.lock | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Pipfile b/Pipfile index aa1f47a60..7c698b905 100644 --- a/Pipfile +++ b/Pipfile @@ -11,4 +11,4 @@ pytest = "7.1.3" [dev-packages] [requires] -python_full_version = "3.8.13" +python_full_version = "3.10.6" diff --git a/Pipfile.lock b/Pipfile.lock index a9ca9c14c..c27bd4554 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "16cdd56099c3cbcd3fb6d27e19ee21c64599f611cd8c919ee620238a6a00f382" + "sha256": "4b01aa2f06eff1942b36bcd3c1a8d7cc0d69a877a0ad222751a5548b61119024" }, "pipfile-spec": 6, "requires": { - "python_full_version": "3.8.13" + "python_full_version": "3.10.6" }, "sources": [ { @@ -26,27 +26,27 @@ }, "exceptiongroup": { "hashes": [ - "sha256:327cbda3da756e2de031a3107b81ab7b3770a602c4d16ca618298c526f4bec1e", - "sha256:bcb67d800a4497e1b404c2dd44fca47d3b7a5e5433dbab67f96c1a685cdfdf23" + "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e", + "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785" ], "markers": "python_version < '3.11'", - "version": "==1.1.0" + "version": "==1.1.1" }, "importlib-metadata": { "hashes": [ - "sha256:7efb448ec9a5e313a57655d35aa54cd3e01b7e1fbcf72dce1bf06119420f5bad", - "sha256:e354bedeb60efa6affdcc8ae121b73544a7aa74156d047311948f6d711cd378d" + "sha256:43ce9281e097583d758c2c708c4376371261a02c34682491a8e98352365aad20", + "sha256:ff80f3b5394912eb1b108fcfd444dc78b7f1f3e16b16188054bd01cb9cb86f09" ], "index": "pypi", - "version": "==6.0.0" + "version": "==6.1.0" }, "importlib-resources": { "hashes": [ - "sha256:7d543798b0beca10b6a01ac7cafda9f822c54db9e8376a6bf57e0cbd74d486b6", - "sha256:e4a96c8cc0339647ff9a5e0550d9f276fc5a01ffa276012b58ec108cfd7b8484" + "sha256:4be82589bf5c1d7999aedf2a45159d10cb3ca4f19b2271f8792bc8e6da7b22f6", + "sha256:7b1deeebbf351c7578e09bf2f63fa2ce8b5ffec296e0d349139d43cca061a81a" ], "index": "pypi", - "version": "==5.10.2" + "version": "==5.12.0" }, "iniconfig": { "hashes": [ @@ -74,11 +74,11 @@ }, "pytest": { "hashes": [ - "sha256:c7c6ca206e93355074ae32f7403e8ea12163b1163c976fee7d4d84027c162be5", - "sha256:d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42" + "sha256:130328f552dcfac0b1cec75c12e3f005619dc5f874f0a06e8ff7263f0ee6225e", + "sha256:c99ab0c73aceb050f68929bc93af19ab6db0558791c6a0715723abe9d0ade9d4" ], "index": "pypi", - "version": "==7.2.1" + "version": "==7.2.2" }, "tomli": { "hashes": [ @@ -90,11 +90,11 @@ }, "zipp": { "hashes": [ - "sha256:83a28fcb75844b5c0cdaf5aa4003c2d728c77e05f5aeabe8e95e56727005fbaa", - "sha256:a7a22e05929290a67401440b39690ae6563279bced5f314609d9d03798f56766" + "sha256:112929ad649da941c23de50f356a2b5570c954b65150642bccdd66bf194d224b", + "sha256:48904fc76a60e542af151aded95726c1a5c34ed43ab4134b597665c86d7ad556" ], - "markers": "python_version < '3.10'", - "version": "==3.11.0" + "markers": "python_version >= '3.7'", + "version": "==3.15.0" } }, "develop": {} From a09b1ea5fb31363bfe4ba9f0808066fd96954767 Mon Sep 17 00:00:00 2001 From: Albert Byrone Date: Sat, 1 Apr 2023 12:17:41 +0300 Subject: [PATCH 2/3] pass the test by printing the message --- lib/app.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 lib/app.py diff --git a/lib/app.py b/lib/app.py new file mode 100644 index 000000000..368a35677 --- /dev/null +++ b/lib/app.py @@ -0,0 +1 @@ +print("Hello World! Pass this test, please.") From 94321b3e121422d865f6db54d49c7e85b142e1d0 Mon Sep 17 00:00:00 2001 From: Albert Byrone Date: Tue, 15 Aug 2023 14:38:19 +0300 Subject: [PATCH 3/3] update the python version --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 728783e38..ac45e31ce 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ print("Hello sky!") What do you see when you execute `lib/app.py` from the command line? ```console -$ python lib/app.py +$ python3 lib/app.py # => Hello world! # => Hello sun! # => Hello sky! @@ -126,7 +126,7 @@ What do you see when you execute `lib/app.py` from the command line with these n `end` strings? ```console -$ python lib/app.py +$ python3 lib/app.py # => Hello world! Hello sun!!! Hello sky!!!! ``` @@ -145,9 +145,8 @@ code, or check your syntax, without needing to run an entire application. To use the Python shell, go into the terminal and enter `python`: ```console -$ python -Python 3.8.13 (default, Jun 2 2022, 15:59:12) -[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin +$ python3 +Python 3.10.12 (main, Jun 11 2023, 05:26:28) Type "help", "copyright", "credits" or "license" for more information. >>> ``` @@ -156,10 +155,10 @@ This gives you a prompt where you can enter Python code. Try entering in `print("Hello Python shell")`: ```console -$ python -Python 3.8.13 (default, Jun 2 2022, 15:59:12) -[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin +$ python3 +Python 3.10.12 (main, Jun 11 2023, 05:26:28) Type "help", "copyright", "credits" or "license" for more information. +>>> >>> print("Hello Python shell") # => Hello Python shell ```