From f164fc85e36062b1721e749f29c7c6237fae2104 Mon Sep 17 00:00:00 2001 From: Adrian Yorke Date: Sat, 14 Sep 2024 16:47:41 +0300 Subject: [PATCH] Remove support for Python 3.8 and add Python 3.11 (#96) --- .github/workflows/main.yml | 2 +- src/section_01/recipe011_hello_world_logging.robot | 2 +- src/section_01/recipe012_looping.robot | 2 +- .../recipe021_explaining_variable_prefixes.robot | 2 +- src/section_02/recipe022_handling_lists.robot | 2 +- src/section_02/recipe023_handling_dictionaries.robot | 2 +- src/section_03/recipe031_handling_dates.robot | 2 +- .../recipe041_working_with_file_system.robot | 2 +- .../recipe071_string_manipulation_examples.robot | 2 +- .../recipe091_working_with_requests_library.robot | 2 +- .../recipe092_working_with_rest_library.robot | 2 +- .../recipe093_working_with_browser_library.robot | 2 +- .../recipe101_working_with_databases.robot | 2 +- src/section_10/recipe102_hacking_database_view.robot | 2 +- .../recipe121_running_tests_in_parallel.robot | 2 +- .../recipe151_working_with_browser_contexts.robot | 2 +- .../recipe951_rf4_native_if_else_elseif.robot | 2 +- tests/requirements-3.10.txt | 2 +- tests/requirements-3.11.txt | 12 ++++++++++++ tests/requirements-3.9.txt | 2 +- 20 files changed, 31 insertions(+), 19 deletions(-) create mode 100644 tests/requirements-3.11.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea891ba..d0de1cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'windows-latest'] - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] node-version: [20] runs-on: ${{ matrix.os }} diff --git a/src/section_01/recipe011_hello_world_logging.robot b/src/section_01/recipe011_hello_world_logging.robot index 25d4444..bccb5d3 100644 --- a/src/section_01/recipe011_hello_world_logging.robot +++ b/src/section_01/recipe011_hello_world_logging.robot @@ -5,7 +5,7 @@ Documentation PROBLEM: ... Congratulations! You have created your first Robot Framework script which outputs ... a text message and a variable to the log and also the console. ... This recipe only using keywords from BuiltIn standard library so there is no Library import. -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 1.1 Hello World Logging diff --git a/src/section_01/recipe012_looping.robot b/src/section_01/recipe012_looping.robot index b0b2546..43d0523 100644 --- a/src/section_01/recipe012_looping.robot +++ b/src/section_01/recipe012_looping.robot @@ -9,7 +9,7 @@ Documentation PROBLEM: ... No Operation keyword is used to "do nothing" although you may disagee. ... This recipe only using keywords from BuiltIn standard library so there is no Library import. ... NOTE: the old FOR syntax should no longer be used but you may still find it in old posts. -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 1.2 Looping diff --git a/src/section_02/recipe021_explaining_variable_prefixes.robot b/src/section_02/recipe021_explaining_variable_prefixes.robot index 7c04a8b..19366f9 100644 --- a/src/section_02/recipe021_explaining_variable_prefixes.robot +++ b/src/section_02/recipe021_explaining_variable_prefixes.robot @@ -17,7 +17,7 @@ Documentation PROBLEM: ... BuiltIn library also has keywords for creating lists and dictionaries, checking ... length or count and checking membership or equality. Library Collections -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 2.1 Explaining Variable Prefixes diff --git a/src/section_02/recipe022_handling_lists.robot b/src/section_02/recipe022_handling_lists.robot index 651618b..2494e59 100644 --- a/src/section_02/recipe022_handling_lists.robot +++ b/src/section_02/recipe022_handling_lists.robot @@ -12,7 +12,7 @@ Documentation PROBLEM: ... length or count and checking membership or equality. ... Recipe 041 also demonstrates using list & dictionaries using only BuiltIn library keywords. Library Collections -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 2.2 Handling Lists diff --git a/src/section_02/recipe023_handling_dictionaries.robot b/src/section_02/recipe023_handling_dictionaries.robot index 644daac..23092ff 100644 --- a/src/section_02/recipe023_handling_dictionaries.robot +++ b/src/section_02/recipe023_handling_dictionaries.robot @@ -10,7 +10,7 @@ Documentation PROBLEM: ... checking membership. ... Recipe 041 demonstrates using list & dictionaries using only BuiltIn library keywords. Library Collections -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 2.3 Handling Dictionaries diff --git a/src/section_03/recipe031_handling_dates.robot b/src/section_03/recipe031_handling_dates.robot index 96bacd9..cfe2310 100644 --- a/src/section_03/recipe031_handling_dates.robot +++ b/src/section_03/recipe031_handling_dates.robot @@ -9,7 +9,7 @@ Documentation PROBLEM: ... instead of number or time string formats, ... - using extended variable syntax. Library DateTime -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 3.1 Handling Dates diff --git a/src/section_04/recipe041_working_with_file_system.robot b/src/section_04/recipe041_working_with_file_system.robot index 6b1a0b2..dc604ab 100644 --- a/src/section_04/recipe041_working_with_file_system.robot +++ b/src/section_04/recipe041_working_with_file_system.robot @@ -5,7 +5,7 @@ Documentation PROBLEM: ... This recipe demonstrates list variables, FOR loop and how to import a library. ... We choose ${TEMPDIR} here as it works on all platforms. Library OperatingSystem -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 4.1 Working With File System diff --git a/src/section_07/recipe071_string_manipulation_examples.robot b/src/section_07/recipe071_string_manipulation_examples.robot index 5a88993..09bacc3 100644 --- a/src/section_07/recipe071_string_manipulation_examples.robot +++ b/src/section_07/recipe071_string_manipulation_examples.robot @@ -5,7 +5,7 @@ Documentation PROBLEM: ... DISCUSSION: ... This recipe demonstrates using keywords from String standard library. Library String -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 7.1 String Manipulation Examples diff --git a/src/section_09/recipe091_working_with_requests_library.robot b/src/section_09/recipe091_working_with_requests_library.robot index b34ab43..d475735 100644 --- a/src/section_09/recipe091_working_with_requests_library.robot +++ b/src/section_09/recipe091_working_with_requests_library.robot @@ -9,7 +9,7 @@ Documentation PROBLEM: ... $ pip install -U robotframework-requests Library Collections Library RequestsLibrary -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 9.1 Working With Requests Library diff --git a/src/section_09/recipe092_working_with_rest_library.robot b/src/section_09/recipe092_working_with_rest_library.robot index 0933413..d50c0ff 100644 --- a/src/section_09/recipe092_working_with_rest_library.robot +++ b/src/section_09/recipe092_working_with_rest_library.robot @@ -7,7 +7,7 @@ Documentation PROBLEM: ... $ pip install -U RESTinstance Library Collections Library REST https://api.github.com -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 9.2 Working With REST Library diff --git a/src/section_09/recipe093_working_with_browser_library.robot b/src/section_09/recipe093_working_with_browser_library.robot index 38db0ae..daa1959 100644 --- a/src/section_09/recipe093_working_with_browser_library.robot +++ b/src/section_09/recipe093_working_with_browser_library.robot @@ -13,7 +13,7 @@ Documentation PROBLEM: ... $ rfbrowser init Library Collections Library Browser -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 9.3 Working With Browser Library diff --git a/src/section_10/recipe101_working_with_databases.robot b/src/section_10/recipe101_working_with_databases.robot index cb75723..46b5d67 100644 --- a/src/section_10/recipe101_working_with_databases.robot +++ b/src/section_10/recipe101_working_with_databases.robot @@ -10,7 +10,7 @@ Documentation PROBLEM: Library OperatingSystem Library String Library DatabaseLibrary -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 10.1 Working With Databases diff --git a/src/section_10/recipe102_hacking_database_view.robot b/src/section_10/recipe102_hacking_database_view.robot index 60716db..b5b1d39 100644 --- a/src/section_10/recipe102_hacking_database_view.robot +++ b/src/section_10/recipe102_hacking_database_view.robot @@ -14,7 +14,7 @@ Documentation PROBLEM: Library OperatingSystem Library String Library DatabaseLibrary -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 10.2 Breaking Database View diff --git a/src/section_12/recipe121_running_tests_in_parallel.robot b/src/section_12/recipe121_running_tests_in_parallel.robot index 1691bb2..37b400d 100644 --- a/src/section_12/recipe121_running_tests_in_parallel.robot +++ b/src/section_12/recipe121_running_tests_in_parallel.robot @@ -16,7 +16,7 @@ Documentation PROBLEM: ... $ pabot --testlevelsplit recipe121_running_tests_in_parallel.robot ... This recipe has the following external dependencies: ... $ pip install -U robotframework-pabot -Force Tags pabot py3.8 py3.9 py3.10 +Force Tags pabot py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 12.1 Running Tests in Parallel diff --git a/src/section_15/recipe151_working_with_browser_contexts.robot b/src/section_15/recipe151_working_with_browser_contexts.robot index 0901739..498eb1d 100644 --- a/src/section_15/recipe151_working_with_browser_contexts.robot +++ b/src/section_15/recipe151_working_with_browser_contexts.robot @@ -11,7 +11,7 @@ Documentation PROBLEM: ... $ pip install -U robotframework-browser ... $ rfbrowser init Library Browser -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 15.1 Working With Browser Contexts diff --git a/src/section_95/recipe951_rf4_native_if_else_elseif.robot b/src/section_95/recipe951_rf4_native_if_else_elseif.robot index 99b676b..35db37f 100644 --- a/src/section_95/recipe951_rf4_native_if_else_elseif.robot +++ b/src/section_95/recipe951_rf4_native_if_else_elseif.robot @@ -17,7 +17,7 @@ Documentation PROBLEM: ... Recipe 3.1 Handling Dates ... https://github.com/robotframework/robotframework/issues/3074 Library DateTime -Force Tags py3.8 py3.9 py3.10 +Force Tags py3.9 py3.10 py3.11 *** Variables *** ${recipe} Recipe 95.1 Robot Framework 4 Native IF, ELSE, ELSE IF Syntax diff --git a/tests/requirements-3.10.txt b/tests/requirements-3.10.txt index 52b7cf8..d16bf34 100644 --- a/tests/requirements-3.10.txt +++ b/tests/requirements-3.10.txt @@ -9,4 +9,4 @@ robotframework-seleniumlibrary robotframework-seleniumtestability webdrivermanager robotframework-aws -robotframework-browser +robotframework-browser \ No newline at end of file diff --git a/tests/requirements-3.11.txt b/tests/requirements-3.11.txt new file mode 100644 index 0000000..d16bf34 --- /dev/null +++ b/tests/requirements-3.11.txt @@ -0,0 +1,12 @@ +robotframework-robocop +requests +robotframework-requests +RESTinstance +robotframework-databaselibrary +robotframework-sshlibrary +robotframework-pabot +robotframework-seleniumlibrary +robotframework-seleniumtestability +webdrivermanager +robotframework-aws +robotframework-browser \ No newline at end of file diff --git a/tests/requirements-3.9.txt b/tests/requirements-3.9.txt index 52b7cf8..d16bf34 100644 --- a/tests/requirements-3.9.txt +++ b/tests/requirements-3.9.txt @@ -9,4 +9,4 @@ robotframework-seleniumlibrary robotframework-seleniumtestability webdrivermanager robotframework-aws -robotframework-browser +robotframework-browser \ No newline at end of file