Skip to content

Commit 917f889

Browse files
committed
Merge upstream lxml/lxml master into ActiveState fork
2 parents f0b3464 + b583b93 commit 917f889

290 files changed

Lines changed: 40418 additions & 22374 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
plugins = Cython.Coverage
3+
source = src

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: scoder # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: pypi/lxml # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
target-branch: "master"
6+
directory: "/"
7+
schedule:
8+
# Check for updates to GitHub Actions every week
9+
interval: "weekly"
10+
rebase-strategy: auto
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"
15+
16+
- package-ecosystem: "github-actions"
17+
target-branch: "lxml-6.1"
18+
directory: "/"
19+
schedule:
20+
# Check for updates to GitHub Actions every week
21+
interval: "weekly"
22+
rebase-strategy: auto
23+
groups:
24+
github-actions:
25+
patterns:
26+
- "*"

.github/workflows/cache_libs.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Cache library dependencies
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
ZLIB_VERSION:
7+
default: "1.3.2"
8+
required: false
9+
type: string
10+
LIBICONV_VERSION:
11+
default: "1.18"
12+
required: false
13+
type: string
14+
LIBXML2_VERSION:
15+
default: "2.14.6"
16+
required: false
17+
type: string
18+
LIBXSLT_VERSION:
19+
default: "1.1.43"
20+
required: false
21+
type: string
22+
WIN_ZLIB_VERSION:
23+
default: "1.3.2"
24+
required: false
25+
type: string
26+
WIN_LIBICONV_VERSION:
27+
default: "1.17.1"
28+
required: false
29+
type: string
30+
WIN_LIBXML2_VERSION:
31+
default: "2.11.9"
32+
required: false
33+
type: string
34+
WIN_LIBXSLT_VERSION:
35+
default: "1.1.39"
36+
required: false
37+
type: string
38+
39+
outputs:
40+
ZLIB_VERSION:
41+
value: ${{ inputs.ZLIB_VERSION }}
42+
LIBICONV_VERSION:
43+
value: ${{ inputs.LIBICONV_VERSION }}
44+
LIBXML2_VERSION:
45+
value: ${{ inputs.LIBXML2_VERSION }}
46+
LIBXSLT_VERSION:
47+
value: ${{ inputs.LIBXSLT_VERSION }}
48+
WIN_ZLIB_VERSION:
49+
value: ${{ inputs.WIN_ZLIB_VERSION }}
50+
WIN_LIBICONV_VERSION:
51+
value: ${{ inputs.WIN_LIBICONV_VERSION }}
52+
WIN_LIBXML2_VERSION:
53+
value: ${{ inputs.WIN_LIBXML2_VERSION }}
54+
WIN_LIBXSLT_VERSION:
55+
value: ${{ inputs.WIN_LIBXSLT_VERSION }}
56+
57+
58+
jobs:
59+
cache_libs:
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
os:
64+
- "ubuntu-22.04"
65+
- "ubuntu-22.04-arm"
66+
- "macos-latest"
67+
- "windows-2022"
68+
- "windows-11-arm"
69+
70+
runs-on: ${{ matrix.os }}
71+
72+
env:
73+
ZLIB_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_ZLIB_VERSION || inputs.ZLIB_VERSION }}
74+
LIBICONV_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBICONV_VERSION || inputs.LIBICONV_VERSION }}
75+
LIBXML2_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBXML2_VERSION || inputs.LIBXML2_VERSION }}
76+
LIBXSLT_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBXSLT_VERSION || inputs.LIBXSLT_VERSION }}
77+
78+
steps:
79+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
80+
81+
- name: Cache [libs]
82+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
83+
with:
84+
path: |
85+
libs/*.xz
86+
libs/*.gz
87+
libs/*.zip
88+
key: libs-${{ runner.os }}-${{ runner.arch }}-${{ env.LIBXML2_VERSION }}-${{ env.LIBXSLT_VERSION }}-${{ env.LIBICONV_VERSION }}-${{ env.ZLIB_VERSION }}
89+
90+
- name: Download latest libraries
91+
env:
92+
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
run: python3 buildlibxml.py --download-only
94+
95+
- name: Check Windows library versions
96+
if: ${{ contains(matrix.os, 'windows-') }}
97+
run: |
98+
bash -c '
99+
for file in libs/zlib-${{ inputs.WIN_ZLIB_VERSION }}.*.zip libs/iconv-${{ inputs.WIN_LIBICONV_VERSION }}.*.zip libs/libxml2-${{ inputs.WIN_LIBXML2_VERSION }}.*.zip libs/libxslt-${{ inputs.WIN_LIBXSLT_VERSION }}.*.zip; do
100+
[[ -f "$file" ]] || { echo "MISSING: $file" ; exit 1; }
101+
done
102+
'

0 commit comments

Comments
 (0)