Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Nov 13, 2024
1 parent d8c982f commit a38f628
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 44 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ jobs:
channels: microsoft,conda-forge
- name: Prepare
run: conda install conda-build conda-verify
- run: conda config --set channel_priority true
- name: Build
run: conda build .
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: meta.yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.10.0
Expand Down
3 changes: 3 additions & 0 deletions conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package:
- pytest-playwright
- pytest-playwright-asyncio
13 changes: 10 additions & 3 deletions pytest-playwright-asyncio/meta.yaml → meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge

package:
name: "pytest-playwright-asyncio"
name: "{{ package }}"
version: "{{ environ.get('GIT_DESCRIBE_TAG') | replace('v', '') }}"

source:
Expand All @@ -12,7 +12,7 @@ source:
build:
number: 0
noarch: python
script: "{{ PYTHON }} -m pip install . --no-deps -vv"
script: "python -m pip install ./{{ package }} --no-deps -vv"

requirements:
host:
Expand All @@ -25,14 +25,21 @@ requirements:
- pytest >=6.2.4,<9.0.0
- pytest-base-url >=1.0.0,<3.0.0
- python-slugify >=6.0.0,<9.0.0
{% if package == 'pytest-playwright-asyncio' %}
- pytest-asyncio >=0.24.0
{% endif %}

test:
imports:
- pytest_playwright
- "{{ package | replace('-', '_') }}"
commands:
- pip check
requires:
- pip
- microsoft::playwright >=1.37.0
{% if package == 'pytest-playwright-asyncio' %}
- pytest-asyncio >=0.24.0
{% endif %}

about:
home: https://github.com/microsoft/playwright-pytest
Expand Down
41 changes: 0 additions & 41 deletions pytest-playwright/meta.yaml

This file was deleted.

0 comments on commit a38f628

Please sign in to comment.