From 4581fa573195255a59efe985862eb2795f77fa97 Mon Sep 17 00:00:00 2001 From: Dawid Konrad Kohnke Date: Wed, 11 Dec 2024 14:53:31 +0100 Subject: [PATCH 1/5] add test case --- tests/test_slapping.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_slapping.py b/tests/test_slapping.py index 40ed2f4..0ae2e96 100644 --- a/tests/test_slapping.py +++ b/tests/test_slapping.py @@ -19,6 +19,7 @@ def test_single_slaps(): ('ldd', LikeState.empty), ('lldd', LikeState.empty), ('ddl', LikeState.liked), + ('ddd', LikeState.disliked) ]) def test_multi_slaps(test_input, expected): assert slap_many(LikeState.empty, test_input) is expected From 04c0770a8b2046fa507dcc4521c4b90e5078fabb Mon Sep 17 00:00:00 2001 From: Dawid Konrad Kohnke Date: Wed, 11 Dec 2024 15:00:30 +0100 Subject: [PATCH 2/5] 3.6=>3.6.15 --- .github/workflows/tests.yml | 2 +- setup.cfg | 2 +- tox.ini | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index be9a959..129d11b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ['3.6.15', '3.7', '3.8', '3.9'] steps: - uses: actions/checkout@v2 diff --git a/setup.cfg b/setup.cfg index 38c125f..8d915fa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ packages = slapping install_requires = requests>=2 -python_requires = >=3.6 +python_requires = >=3.6.15 package_dir = =src zip_safe = no diff --git a/tox.ini b/tox.ini index 6b58ff8..2934799 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ isolated_build = true [gh-actions] python = - 3.6: py36, mypy, flake8 + 3.6.15: py36, mypy, flake8 3.7: py37 3.8: py38 3.9: py39 @@ -19,12 +19,12 @@ commands = pytest --basetemp={envtmpdir} [testenv:flake8] -basepython = python3.6 +basepython = python3.6.15 deps = flake8 commands = flake8 src tests [testenv:mypy] -basepython = python3.6 +basepython = python3.6.15 deps = -r{toxinidir}/requirements_dev.txt commands = mypy src From 9b122719dac1f4cf16ebe59e477246bef530a693 Mon Sep 17 00:00:00 2001 From: Dawid Konrad Kohnke Date: Wed, 11 Dec 2024 15:05:02 +0100 Subject: [PATCH 3/5] Revert "3.6=>3.6.15" This reverts commit 04c0770a8b2046fa507dcc4521c4b90e5078fabb. --- .github/workflows/tests.yml | 2 +- setup.cfg | 2 +- tox.ini | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 129d11b..be9a959 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.6.15', '3.7', '3.8', '3.9'] + python-version: ['3.6', '3.7', '3.8', '3.9'] steps: - uses: actions/checkout@v2 diff --git a/setup.cfg b/setup.cfg index 8d915fa..38c125f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ packages = slapping install_requires = requests>=2 -python_requires = >=3.6.15 +python_requires = >=3.6 package_dir = =src zip_safe = no diff --git a/tox.ini b/tox.ini index 2934799..6b58ff8 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ isolated_build = true [gh-actions] python = - 3.6.15: py36, mypy, flake8 + 3.6: py36, mypy, flake8 3.7: py37 3.8: py38 3.9: py39 @@ -19,12 +19,12 @@ commands = pytest --basetemp={envtmpdir} [testenv:flake8] -basepython = python3.6.15 +basepython = python3.6 deps = flake8 commands = flake8 src tests [testenv:mypy] -basepython = python3.6.15 +basepython = python3.6 deps = -r{toxinidir}/requirements_dev.txt commands = mypy src From 5e193e4276bb3fe6c1e22c58c6bf998f6be0bd8e Mon Sep 17 00:00:00 2001 From: Dawid Konrad Kohnke Date: Wed, 11 Dec 2024 15:05:08 +0100 Subject: [PATCH 4/5] Revert "add test case" This reverts commit 4581fa573195255a59efe985862eb2795f77fa97. --- tests/test_slapping.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_slapping.py b/tests/test_slapping.py index 0ae2e96..40ed2f4 100644 --- a/tests/test_slapping.py +++ b/tests/test_slapping.py @@ -19,7 +19,6 @@ def test_single_slaps(): ('ldd', LikeState.empty), ('lldd', LikeState.empty), ('ddl', LikeState.liked), - ('ddd', LikeState.disliked) ]) def test_multi_slaps(test_input, expected): assert slap_many(LikeState.empty, test_input) is expected From b803ecb8b195987590472fe3e2fdc18858eca848 Mon Sep 17 00:00:00 2001 From: Dawid Konrad Kohnke Date: Wed, 11 Dec 2024 15:09:26 +0100 Subject: [PATCH 5/5] Removed python 3.6 --- .github/workflows/tests.yml | 2 +- setup.cfg | 3 +-- tox.ini | 9 ++++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index be9a959..ad20b78 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ['3.7', '3.8', '3.9'] steps: - uses: actions/checkout@v2 diff --git a/setup.cfg b/setup.cfg index 38c125f..ff9777a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,6 @@ platforms = unix, linux, osx, cygwin, win32 classifiers = Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 @@ -18,7 +17,7 @@ packages = slapping install_requires = requests>=2 -python_requires = >=3.6 +python_requires = >=3.7 package_dir = =src zip_safe = no diff --git a/tox.ini b/tox.ini index 6b58ff8..41bf7d1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,11 @@ [tox] minversion = 3.8.0 -envlist = py36, py37, py38, py39, flake8, mypy +envlist = py37, py38, py39, flake8, mypy isolated_build = true [gh-actions] python = - 3.6: py36, mypy, flake8 - 3.7: py37 + 3.7: py37, mypy, flake8 3.8: py38 3.9: py39 @@ -19,12 +18,12 @@ commands = pytest --basetemp={envtmpdir} [testenv:flake8] -basepython = python3.6 +basepython = python3.7 deps = flake8 commands = flake8 src tests [testenv:mypy] -basepython = python3.6 +basepython = python3.7 deps = -r{toxinidir}/requirements_dev.txt commands = mypy src