diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb06caff0..b93763b37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,35 +166,6 @@ jobs: if: matrix.os == 'ubuntu-latest' run: xvfb-run pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - build-conda: - name: Conda Build - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04, macos-latest, windows-2022] - runs-on: ${{ matrix.os }} - defaults: - run: - # `setup-miniconda` activates the env only for login shells; using - # `bash -el` (recommended by the action) ensures `conda` and the - # installed `conda-build` are on PATH on every OS, including Windows - # where the default shell is pwsh and skips the activation hooks. - shell: bash -el {0} - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Get conda - uses: conda-incubator/setup-miniconda@v3 - with: - python-version: '3.12' - channels: conda-forge - miniconda-version: latest - - name: Prepare - run: conda install -n base "conda-build>=26" conda-verify - - name: Build - run: conda build . - test_examples: name: Examples runs-on: ubuntu-22.04 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index e9a7048c5..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Upload Python Package -on: - release: - types: [published] - workflow_dispatch: -jobs: - deploy-conda: - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - target-platform: linux-x86_64 - - os: ubuntu-latest - target-platform: linux-aarch64 - - os: windows-latest - target-platform: win-64 - - os: macos-latest-large - target-platform: osx-intel - - os: macos-latest-xlarge - target-platform: osx-arm64 - runs-on: ${{ matrix.os }} - defaults: - run: - # Required for conda-incubator/setup-miniconda@v3 - shell: bash -el {0} - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Get conda - uses: conda-incubator/setup-miniconda@v3 - with: - python-version: '3.12' - channels: conda-forge - miniconda-version: latest - - name: Prepare - run: conda install -n base anaconda-client "conda-build>=26" conda-verify - - name: Build and Upload - env: - ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} - run: | - conda config --set anaconda_upload yes - if [ "${{ matrix.target-platform }}" == "osx-arm64" ]; then - conda build --user microsoft . -m conda_build_config_osx_arm64.yaml - elif [ "${{ matrix.target-platform }}" == "linux-aarch64" ]; then - conda build --user microsoft . -m conda_build_config_linux_aarch64.yaml - else - conda build --user microsoft . - fi diff --git a/README.md b/README.md index f0a4fc423..ad5d5e69c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🎭 [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Anaconda version](https://img.shields.io/conda/v/microsoft/playwright)](https://anaconda.org/Microsoft/playwright) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord) +# 🎭 [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord) Playwright is a Python library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) browsers with a single API. Playwright delivers automation that is **ever-green**, **capable**, **reliable** and **fast**. [See how Playwright is better](https://playwright.dev/python). diff --git a/conda_build_config_linux_aarch64.yaml b/conda_build_config_linux_aarch64.yaml deleted file mode 100644 index 68dceb2e3..000000000 --- a/conda_build_config_linux_aarch64.yaml +++ /dev/null @@ -1,2 +0,0 @@ -target_platform: -- linux-aarch64 diff --git a/conda_build_config_osx_arm64.yaml b/conda_build_config_osx_arm64.yaml deleted file mode 100644 index d535f7252..000000000 --- a/conda_build_config_osx_arm64.yaml +++ /dev/null @@ -1,2 +0,0 @@ -target_platform: -- osx-arm64 diff --git a/meta.yaml b/meta.yaml deleted file mode 100644 index 343f9b568..000000000 --- a/meta.yaml +++ /dev/null @@ -1,61 +0,0 @@ -package: - name: playwright - version: "{{ environ.get('GIT_DESCRIBE_TAG') | replace('v', '') }}" - -source: - path: . - -build: - number: 0 - script: "{{ PYTHON }} -m pip install . --no-deps -vv" - binary_relocation: False - missing_dso_whitelist: "*" - entry_points: - - playwright = playwright.__main__:main - -requirements: - build: - - python >=3.9 # [build_platform != target_platform] - - pip # [build_platform != target_platform] - - cross-python_{{ target_platform }} # [build_platform != target_platform] - host: - - python >=3.9 - - wheel - - pip - - curl - - setuptools_scm - run: - - python >=3.9 - # This should be the same as the dependencies in pyproject.toml - - greenlet>=3.1.1,<4.0.0 - - pyee>=13,<14 - -test: # [build_platform == target_platform] - files: - - scripts/example_sync.py - - scripts/example_async.py - requires: - - pip - imports: - - playwright - - playwright.sync_api - - playwright.async_api - commands: - - playwright --help - - playwright install --with-deps - - python scripts/example_sync.py - - python scripts/example_async.py - -about: - home: https://github.com/microsoft/playwright-python - license: Apache-2.0 - license_family: Apache - license_file: LICENSE - summary: Python version of the Playwright testing and automation library. - description: | - Playwright is a Python library to automate Chromium, - Firefox and WebKit browsers with a single API. Playwright - delivers automation that is ever-green, capable, reliable - and fast. - doc_url: https://playwright.dev/python/docs/intro/ - dev_url: https://github.com/microsoft/playwright-python