diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d016a64..005903f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,16 +12,16 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.9" - + python-version: "3.10" + - name: Install build dependencies run: | python -m pip install --upgrade pip pip install build twine - + - name: Build package run: python -m build - + - name: Publish to PyPI env: TWINE_USERNAME: __token__ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f77f90..b10dc6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d723bd8..01687e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,10 +12,10 @@ repos: - id: debug-statements - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 26.5.1 hooks: - id: black - language_version: python3.9 + language_version: python3 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.15 diff --git a/pyproject.toml b/pyproject.toml index b8139a3..20f8ab3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ version = "2.4.0" description = "Modern async-first Python SDK for Bright Data APIs" authors = [{name = "Bright Data", email = "support@brightdata.com"}] license = {text = "MIT"} -requires-python = ">=3.9" +requires-python = ">=3.10" readme = "README.md" dependencies = [ "aiohttp>=3.9.0", @@ -33,7 +33,7 @@ dev = [ "pytest-asyncio>=0.21.0", "pytest-cov>=4.1.0", "pytest-mock>=3.11.0", - "black>=25.0.0", + "black==26.5.1", "ruff>=0.1.0", "mypy>=1.5.0", "pre-commit>=3.4.0", @@ -45,11 +45,11 @@ all = ["brightdata-sdk[dev,browser]"] [tool.black] line-length = 100 -target-version = ['py39'] +target-version = ['py310'] [tool.ruff] line-length = 100 -target-version = "py39" +target-version = "py310" exclude = [ "notebooks", "examples", @@ -66,7 +66,7 @@ ignore = [ ] [tool.mypy] -python_version = "3.9" +python_version = "3.10" warn_return_any = false warn_unused_configs = true disallow_untyped_defs = false diff --git a/src/brightdata/scraper_studio/client.py b/src/brightdata/scraper_studio/client.py index ad9f8c5..34d27a4 100644 --- a/src/brightdata/scraper_studio/client.py +++ b/src/brightdata/scraper_studio/client.py @@ -15,7 +15,6 @@ from http import HTTPStatus from ..exceptions import APIError, DataNotReadyError - BASE_URL = "https://api.brightdata.com"