-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathpy3-fastbencode.yaml
88 lines (80 loc) · 2.12 KB
/
py3-fastbencode.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package:
name: py3-fastbencode
version: 0.3.1
epoch: 1
description: Implementation of bencode with optional fast C extensions
copyright:
- license: GPL-2.0-or-later
dependencies:
provider-priority: 0
vars:
pypi-package: fastbencode
import: fastbencode
data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'
environment:
contents:
packages:
- py3-supported-build-base
pipeline:
- uses: git-checkout
with:
expected-commit: 27bedf328d5b284ed93a2348b7e79a9e0a18a926
repository: https://github.com/breezy-team/fastbencode
tag: v${{package.version}}
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provider-priority: ${{range.value}}
provides:
- ${{package.name}}
- py3-${{vars.pypi-package}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- name: py3-supported-${{vars.pypi-package}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-${{vars.pypi-package}}
- py3.11-${{vars.pypi-package}}
- py3.12-${{vars.pypi-package}}
- py3.13-${{vars.pypi-package}}
test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
- uses: py/one-python
with:
content: |
python3 <<'EOF'
from fastbencode import bencode, bdecode
assert bencode([1, 2, b'a', {b'd': 3}]) == b'li1ei2e1:ad1:di3eee'
assert bdecode(bencode([1, 2, b'a', {b'd': 3}])) == [1, 2, b'a', {b'd': 3}]
EOF
update:
enabled: true
manual: false
github:
identifier: breezy-team/fastbencode
use-tag: true
strip-prefix: v
tag-filter-prefix: v