From 70984da532d1099225dfdb2a1b2d0476dca3b26a Mon Sep 17 00:00:00 2001 From: Nomad Monad <38782977+lucaromagnoli@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:32:58 +0000 Subject: [PATCH] remove check playwright in init (#63) --- dataservice/__init__.py | 14 -------------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/dataservice/__init__.py b/dataservice/__init__.py index fa3ce48..7d3dd85 100644 --- a/dataservice/__init__.py +++ b/dataservice/__init__.py @@ -1,5 +1,4 @@ from dataservice.clients import ( - PLAYWRIGHT_AVAILABLE, HttpXClient, PlaywrightClient, PlaywrightPage, @@ -17,19 +16,6 @@ from dataservice.models import FailedRequest, Request, Response from dataservice.service import AsyncDataService, DataService - -def check_playwright_availability(): - if not PLAYWRIGHT_AVAILABLE: - raise ImportError( - "Playwright optional dependency is not installed. Please install it with `pip install python-dataservice[playwright]`." - ) - - -# Check availability when importing PlaywrightClient or PlaywrightPage -if "PlaywrightClient" in globals() or "PlaywrightPage" in globals(): - check_playwright_availability() - - __all__ = [ "AsyncDataService", "BaseDataItem", diff --git a/pyproject.toml b/pyproject.toml index 2229971..18f9d81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "python-dataservice" packages = [ { include = "dataservice"}, ] -version = "0.6.0" +version = "0.6.1" description = "Lightweight async data gathering for Python" authors = ["NomadMonad "] readme = "README.rst"