axe-playwright-python 0.1.7__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- axe_playwright_python-0.1.8/.github/dependabot.yml +14 -0
- axe_playwright_python-0.1.8/.github/scripts/check-axe-updates.sh +19 -0
- axe_playwright_python-0.1.8/.github/scripts/install-axe.sh +19 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/.github/workflows/python.yaml +2 -2
- axe_playwright_python-0.1.8/.github/workflows/update-axe.yaml +23 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/CHANGELOG.md +4 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/PKG-INFO +6 -3
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/README.md +3 -1
- axe_playwright_python-0.1.8/axe_playwright_python/axe.min.js +12 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/pyproject.toml +1 -1
- axe_playwright_python-0.1.7/axe_playwright_python/axe.min.js +0 -12
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/.gitignore +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/.pre-commit-config.yaml +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/.vscode/settings.json +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/CONTRIBUTING.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/LICENSE +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/axe_playwright_python/__init__.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/axe_playwright_python/async_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/axe_playwright_python/base.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/axe_playwright_python/sync_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/axe_playwright_python/violations.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/docs/api.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/docs/index.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/docs/usage.md +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/examples/usage.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/mkdocs.yml +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/__init__.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_axe_async_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_axe_sync_playwright.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_page.html +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_report.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_report_color.txt +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_report_save.py +0 -0
- {axe_playwright_python-0.1.7 → axe_playwright_python-0.1.8}/tests/test_result.json +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
RLS=$(
|
|
4
|
+
curl -sf "https://api.github.com/repos/dequelabs/axe-core/releases?per_page=3"
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
COOLDOWN=$(( 5*24*3600 ))
|
|
8
|
+
CANDIDATE=$(
|
|
9
|
+
jq -r '[.[] | select(.published_at | fromdate < now - '"${COOLDOWN}"')] | first' \
|
|
10
|
+
<<< "${RLS}"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
CUR=$(
|
|
14
|
+
sed -n 's/^\/\*! axe \(v[0-9.]*\)/\1/p;q' \
|
|
15
|
+
axe_playwright_python/axe.min.js
|
|
16
|
+
)
|
|
17
|
+
CAND=$(jq -r '.tag_name' <<< "${CANDIDATE}")
|
|
18
|
+
|
|
19
|
+
[[ "${CUR}" == "${CAND}" ]] || echo "${CAND#v}"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
VERSION=${1:+@${1}}
|
|
4
|
+
|
|
5
|
+
TMP=/tmp
|
|
6
|
+
PKG_DATA=$(
|
|
7
|
+
npm pack --json --pack-destination "${TMP}" --ignore-scripts \
|
|
8
|
+
--registry=https://registry.npmjs.org "axe-core${VERSION}"
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
TARFILE=$(jq -r '.[].filename' <<< "${PKG_DATA}")
|
|
12
|
+
DISTFILE=$(
|
|
13
|
+
jq -r '.[].files[].path | select(test("axe\\.min\\.js$"))' \
|
|
14
|
+
<<< "${PKG_DATA}"
|
|
15
|
+
)
|
|
16
|
+
tar -Oxzf "${TMP}/${TARFILE}" "package/${DISTFILE}" > \
|
|
17
|
+
axe_playwright_python/axe.min.js
|
|
18
|
+
|
|
19
|
+
rm -f "${TMP}/${TARFILE}"
|
|
@@ -15,9 +15,9 @@ jobs:
|
|
|
15
15
|
matrix:
|
|
16
16
|
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v7
|
|
19
19
|
- name: Set up Python 3
|
|
20
|
-
uses: actions/setup-python@
|
|
20
|
+
uses: actions/setup-python@v7
|
|
21
21
|
with:
|
|
22
22
|
python-version: ${{ matrix.python_version }}
|
|
23
23
|
- name: Install dependencies
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: Check for Axe updates
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: '0 0 * * 1'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
check-updates:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
|
+
- name: check for axe update && nag about it
|
|
16
|
+
run: |-
|
|
17
|
+
version=$(bash .github/scripts/check-axe-updates.sh)
|
|
18
|
+
[[ -z "${version}" ]] && exit 0
|
|
19
|
+
echo "found new version ${version}" >> /dev/stderr
|
|
20
|
+
bash .github/scripts/install-axe.sh "${version}"
|
|
21
|
+
git diff --stat --exit-code
|
|
22
|
+
|
|
23
|
+
...
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.1.8] - July 24, 2026
|
|
6
|
+
|
|
7
|
+
- Upgraded axe-core JS version to v4.12.1. You may see the number of violations change as a result, as new axe-core versions sometimes add new rules and update existing ones.
|
|
8
|
+
|
|
5
9
|
## [0.1.7] - November 30, 2025
|
|
6
10
|
|
|
7
11
|
- Fixed issue with passing custom options to `Axe.run()` method, which caused options to be ignored.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: axe-playwright-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: Automated web accessibility testing using axe-core engine and Playwright.
|
|
5
5
|
Keywords: accessibility,axe,axe-core,playwright
|
|
6
6
|
Author-email: Pamela Fox <pamela.fox@gmail.com>
|
|
@@ -19,6 +19,7 @@ Classifier: Topic :: Adaptive Technologies
|
|
|
19
19
|
Classifier: Topic :: Software Development
|
|
20
20
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
21
21
|
Classifier: Topic :: Software Development :: Testing
|
|
22
|
+
License-File: LICENSE
|
|
22
23
|
Requires-Dist: playwright >= 1.36.0
|
|
23
24
|
Requires-Dist: pytest == 7.4.0 ; extra == "dev"
|
|
24
25
|
Requires-Dist: pytest-cov == 4.1.0 ; extra == "dev"
|
|
@@ -46,7 +47,9 @@ and [Playwright](https://playwright.dev/python/docs/intro).
|
|
|
46
47
|
|
|
47
48
|
### Further Reading & More
|
|
48
49
|
- ["Automated accessibility audits" - Pamela Fox (North Bay Python 2023)](https://www.youtube.com/watch?v=J-4Qa6PSomM&pp=ygUUcGFtZWxhIGZveCBub3J0aCBiYXk%3D)
|
|
49
|
-
- [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-accessibility
|
|
50
|
+
- [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-sites-accessibility.html) &
|
|
51
|
+
[Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/gh-action-accessibility.html)
|
|
52
|
+
by [Jay Miller](https://github.com/kjaymiller)
|
|
50
53
|
|
|
51
54
|
|
|
52
55
|
## Dependencies
|
|
@@ -9,7 +9,9 @@ and [Playwright](https://playwright.dev/python/docs/intro).
|
|
|
9
9
|
|
|
10
10
|
### Further Reading & More
|
|
11
11
|
- ["Automated accessibility audits" - Pamela Fox (North Bay Python 2023)](https://www.youtube.com/watch?v=J-4Qa6PSomM&pp=ygUUcGFtZWxhIGZveCBub3J0aCBiYXk%3D)
|
|
12
|
-
- [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-accessibility
|
|
12
|
+
- [Using Python to Fix my Accessibility Night of a Website](https://kjaymiller.com/blog/using-python-to-fix-my-sites-accessibility.html) &
|
|
13
|
+
[Website Accessibility Audit Reports via GH Actions](https://kjaymiller.com/blog/gh-action-accessibility.html)
|
|
14
|
+
by [Jay Miller](https://github.com/kjaymiller)
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
## Dependencies
|