From 8a21679a105ab74c9e526b80c3d3cad95413beb9 Mon Sep 17 00:00:00 2001 From: Aleksandr Kotlyar Date: Mon, 13 Feb 2023 01:11:29 +0300 Subject: [PATCH 1/2] make xdist tests work locally --- .github/workflows/test_xdist.yml | 2 +- tests/test_downloader.py | 2 +- tests/{xdist => xdist_}/__init__.py | 0 tests/{xdist => xdist_}/conftest.py | 0 tests/{xdist => xdist_}/test_cuncurent_1.py | 0 tests/{xdist => xdist_}/test_cuncurent_2.py | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename tests/{xdist => xdist_}/__init__.py (100%) rename tests/{xdist => xdist_}/conftest.py (100%) rename tests/{xdist => xdist_}/test_cuncurent_1.py (100%) rename tests/{xdist => xdist_}/test_cuncurent_2.py (100%) diff --git a/.github/workflows/test_xdist.yml b/.github/workflows/test_xdist.yml index 9a0a8db6..c8ad6663 100644 --- a/.github/workflows/test_xdist.yml +++ b/.github/workflows/test_xdist.yml @@ -79,7 +79,7 @@ jobs: WDM_LOG: ${{ matrix.wdm-log }} with: run: | - pipenv run pytest -sv tests/xdist/ -n 2 + pipenv run pytest -sv tests/xdist_/ -n 2 - name: List folders run: ls -la ~/.wdm \ No newline at end of file diff --git a/tests/test_downloader.py b/tests/test_downloader.py index bb8d9db5..0534cae5 100644 --- a/tests/test_downloader.py +++ b/tests/test_downloader.py @@ -38,4 +38,4 @@ def test_can_download_chrome_driver(delete_drivers_dir, version): file = download_manager.download_file(driver.get_url()) assert file.filename == "driver.zip" archive = save_file(file, DEFAULT_PROJECT_ROOT_CACHE_PATH) - assert archive.unpack(DEFAULT_PROJECT_ROOT_CACHE_PATH) == ["chromedriver.exe"] + assert "chromedriver.exe" in archive.unpack(DEFAULT_PROJECT_ROOT_CACHE_PATH) diff --git a/tests/xdist/__init__.py b/tests/xdist_/__init__.py similarity index 100% rename from tests/xdist/__init__.py rename to tests/xdist_/__init__.py diff --git a/tests/xdist/conftest.py b/tests/xdist_/conftest.py similarity index 100% rename from tests/xdist/conftest.py rename to tests/xdist_/conftest.py diff --git a/tests/xdist/test_cuncurent_1.py b/tests/xdist_/test_cuncurent_1.py similarity index 100% rename from tests/xdist/test_cuncurent_1.py rename to tests/xdist_/test_cuncurent_1.py diff --git a/tests/xdist/test_cuncurent_2.py b/tests/xdist_/test_cuncurent_2.py similarity index 100% rename from tests/xdist/test_cuncurent_2.py rename to tests/xdist_/test_cuncurent_2.py From 44e484a90b7a5a052e8187548a1f713ab9e6feca Mon Sep 17 00:00:00 2001 From: Aleksandr Kotlyar Date: Mon, 13 Feb 2023 01:12:30 +0300 Subject: [PATCH 2/2] gh #483 add python 3.11 support badge --- .github/workflows/test.yml | 6 +++--- CHANGELOG.md | 10 +++++++++- setup.cfg | 2 +- setup.py | 3 ++- webdriver_manager/__init__.py | 2 +- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7fe7a8e..d6387701 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,10 +49,10 @@ jobs: os: [ windows-latest ] wdm-log: [''] include: - - python-version: '3.7' - selenium-version: '4.1.0' + - python-version: '3.11' + selenium-version: '4.6.0' os: ubuntu-latest - - python-version: '3.10' + - python-version: '3.11' selenium-version: '3.141.0' os: macos-latest wdm-log: '0' diff --git a/CHANGELOG.md b/CHANGELOG.md index 8944104b..5ff30cec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,15 @@ # Changelog --- -##3.7.0 + +## 3.8.6 +- Officially support python 3.11 (3.11.1+) + +--- +### 3.7.1-3.8.5 changelog TBD + +--- +## 3.7.0 - pytest-xdist support ## 3.6.2 diff --git a/setup.cfg b/setup.cfg index f7d50431..05304fa3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.8.5 +current_version = 3.8.6 commit = True tag = True diff --git a/setup.py b/setup.py index d8cd86de..1bcf9ab2 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ long_description_content_type="text/markdown", packages=setuptools.find_packages(exclude=['tests']), include_package_data=True, - version='3.8.5', + version='3.8.6', description='Library provides the way to automatically manage drivers for different browsers', author='Sergey Pirogov', author_email='automationremarks@gmail.com', @@ -37,6 +37,7 @@ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Software Development :: ' 'Libraries :: Python Modules', 'Operating System :: Microsoft :: Windows', diff --git a/webdriver_manager/__init__.py b/webdriver_manager/__init__.py index 56d5ad1d..f64508ee 100644 --- a/webdriver_manager/__init__.py +++ b/webdriver_manager/__init__.py @@ -1 +1 @@ -__version__ = "3.8.5" +__version__ = "3.8.6"