Skip to content

Commit 9bc1688

Browse files
authored
Merge pull request #47517 from javacruft/new/cherrypy
New Python packages for CherryPy + Dependencies
2 parents bc58426 + 97ecf52 commit 9bc1688

8 files changed

+857
-0
lines changed

py3-autocommand.yaml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
package:
2+
name: py3-autocommand
3+
version: "2.2.2"
4+
epoch: 0
5+
description: "Automatically generate and run simple argparse parsers from function signatures."
6+
copyright:
7+
- license: LGPL-3.0-or-later
8+
dependencies:
9+
provider-priority: 0
10+
11+
vars:
12+
pypi-package: autocommand
13+
14+
data:
15+
- name: py-versions
16+
items:
17+
3.10: "310"
18+
3.11: "311"
19+
3.12: "312"
20+
3.13: "313"
21+
22+
environment:
23+
contents:
24+
packages:
25+
- py3-supported-build-base-dev
26+
27+
pipeline:
28+
- uses: git-checkout
29+
with:
30+
repository: https://github.com/Lucretiel/autocommand
31+
tag: ${{package.version}}
32+
expected-commit: 9d95de8ad227a76604a9205b5b211bc2a0576e91
33+
34+
subpackages:
35+
- range: py-versions
36+
name: py${{range.key}}-${{vars.pypi-package}}
37+
description: python${{range.key}} version of ${{vars.pypi-package}}
38+
dependencies:
39+
provides:
40+
- py3-${{vars.pypi-package}}
41+
provider-priority: ${{range.value}}
42+
pipeline:
43+
- uses: py/pip-build-install
44+
with:
45+
python: python${{range.key}}
46+
- uses: strip
47+
test:
48+
environment:
49+
contents:
50+
packages:
51+
- py${{range.key}}-pytest
52+
pipeline:
53+
- uses: python/import
54+
with:
55+
python: python${{range.key}}
56+
import: ${{vars.pypi-package}}
57+
- uses: git-checkout
58+
with:
59+
repository: https://github.com/Lucretiel/autocommand
60+
tag: ${{package.version}}
61+
expected-commit: 9d95de8ad227a76604a9205b5b211bc2a0576e91
62+
- runs: |
63+
python${{range.key}} -m pytest test/
64+
65+
- name: py3-supported-${{vars.pypi-package}}
66+
description: meta package providing ${{vars.pypi-package}} for supported python versions.
67+
dependencies:
68+
runtime:
69+
- py3.10-${{vars.pypi-package}}
70+
- py3.11-${{vars.pypi-package}}
71+
- py3.12-${{vars.pypi-package}}
72+
- py3.13-${{vars.pypi-package}}
73+
test:
74+
pipeline:
75+
- uses: python/import
76+
with:
77+
python: python3.10
78+
import: ${{vars.pypi-package}}
79+
80+
test:
81+
pipeline:
82+
- uses: python/import
83+
with:
84+
imports: |
85+
import ${{vars.pypi-package}}
86+
87+
update:
88+
enabled: true
89+
manual: false
90+
github:
91+
identifier: Lucretiel/autocommand
92+
use-tag: true

py3-cheroot.yaml

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
package:
2+
name: py3-cheroot
3+
version: "10.0.1"
4+
epoch: 0
5+
description: "Cheroot is the high-performance, pure-Python HTTP server used by CherryPy,"
6+
copyright:
7+
- license: BSD-3-clause
8+
dependencies:
9+
provider-priority: 0
10+
11+
vars:
12+
pypi-package: cheroot
13+
14+
data:
15+
- name: py-versions
16+
items:
17+
3.10: "310"
18+
3.11: "311"
19+
3.12: "312"
20+
3.13: "313"
21+
22+
environment:
23+
contents:
24+
packages:
25+
- py3-supported-build-base-dev
26+
27+
pipeline:
28+
- uses: git-checkout
29+
with:
30+
repository: https://github.com/cherrypy/cheroot
31+
tag: v${{package.version}}
32+
expected-commit: 1391e717daf7a5c233c2713d82e6d7380cb5345a
33+
34+
subpackages:
35+
- range: py-versions
36+
name: py${{range.key}}-${{vars.pypi-package}}
37+
description: python${{range.key}} version of ${{vars.pypi-package}}
38+
dependencies:
39+
provides:
40+
- py3-${{vars.pypi-package}}
41+
provider-priority: ${{range.value}}
42+
runtime:
43+
- py${{range.key}}-jaraco.functools
44+
- py${{range.key}}-more-itertools
45+
pipeline:
46+
- uses: py/pip-build-install
47+
with:
48+
python: python${{range.key}}
49+
- name: move usr/bin executables for -bin
50+
runs: |
51+
mkdir -p ./.cleanup/${{range.key}}/
52+
mv ${{targets.contextdir}}/usr/bin ./.cleanup/${{range.key}}/
53+
- uses: strip
54+
test:
55+
environment:
56+
contents:
57+
packages:
58+
- py${{range.key}}-pytest
59+
- py${{range.key}}-portend
60+
- py${{range.key}}-jaraco.text
61+
- py${{range.key}}-pyopenssl
62+
- py${{range.key}}-requests
63+
- py${{range.key}}-requests-unixsocket
64+
- py${{range.key}}-requests-toolbelt
65+
pipeline:
66+
- uses: python/import
67+
with:
68+
python: python${{range.key}}
69+
import: ${{vars.pypi-package}}
70+
- uses: git-checkout
71+
with:
72+
repository: https://github.com/cherrypy/cheroot
73+
tag: v${{package.version}}
74+
expected-commit: 1391e717daf7a5c233c2713d82e6d7380cb5345a
75+
- runs: |
76+
# TODO(jamespage)
77+
# Missing test dependencies:
78+
# - pytest-mock (-k ...)
79+
# - trustme (test_ssl)
80+
# - pypytools (test_server)
81+
# Option missing test dependencies:
82+
# - pydist-xdist - parallel execution
83+
rm -f pytest.ini
84+
python${{range.key}} -m pytest \
85+
-p cheroot.test._pytest_plugin \
86+
--ignore=cheroot/test/test_ssl.py \
87+
--ignore=cheroot/test/test_server.py \
88+
-k "not (test_broken_connection_during_tcp_fin or test_unhandled_exception_in_request_handler or test_remains_alive_post_unhandled_exception)" \
89+
cheroot/test/
90+
91+
- range: py-versions
92+
name: py${{range.key}}-${{vars.pypi-package}}-bin
93+
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
94+
dependencies:
95+
provider-priority: ${{range.value}}
96+
provides:
97+
- py3-${{vars.pypi-package}}
98+
- py3-${{vars.pypi-package}}-bin
99+
runtime:
100+
- py${{range.key}}-${{vars.pypi-package}}
101+
pipeline:
102+
- runs: |
103+
mkdir -p ${{targets.contextdir}}/usr/
104+
mv ./.cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
105+
test:
106+
pipeline:
107+
- runs: |
108+
cheroot -h
109+
110+
- name: py3-supported-${{vars.pypi-package}}
111+
description: meta package providing ${{vars.pypi-package}} for supported python versions.
112+
dependencies:
113+
runtime:
114+
- py3.10-${{vars.pypi-package}}
115+
- py3.11-${{vars.pypi-package}}
116+
- py3.12-${{vars.pypi-package}}
117+
- py3.13-${{vars.pypi-package}}
118+
test:
119+
pipeline:
120+
- uses: python/import
121+
with:
122+
python: python3.10
123+
import: ${{vars.pypi-package}}
124+
125+
test:
126+
pipeline:
127+
- uses: python/import
128+
with:
129+
imports: |
130+
import ${{vars.pypi-package}}
131+
132+
update:
133+
enabled: true
134+
manual: false
135+
github:
136+
identifier: cherrypy/cheroot
137+
strip-prefix: v

py3-cherrypy.yaml

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
package:
2+
name: py3-cherrypy
3+
version: "18.10.0"
4+
epoch: 0
5+
description: "A pythonic, object-oriented HTTP framework,"
6+
copyright:
7+
- license: BSD-3-clause
8+
dependencies:
9+
provider-priority: 0
10+
11+
vars:
12+
pypi-package: cherrypy
13+
14+
data:
15+
- name: py-versions
16+
items:
17+
3.10: "310"
18+
3.11: "311"
19+
3.12: "312"
20+
3.13: "313"
21+
22+
environment:
23+
contents:
24+
packages:
25+
- py3-supported-build-base-dev
26+
27+
pipeline:
28+
- uses: git-checkout
29+
with:
30+
repository: https://github.com/cherrypy/cherrypy
31+
tag: v${{package.version}}
32+
expected-commit: d1eb64e27ac2dbb761b3cf96eb0c883d5bd87786
33+
cherry-picks: |
34+
main/75deabb33ea48553eb12b75d65739292c5202209: Switch to filelock
35+
36+
subpackages:
37+
- range: py-versions
38+
name: py${{range.key}}-${{vars.pypi-package}}
39+
description: python${{range.key}} version of ${{vars.pypi-package}}
40+
dependencies:
41+
provides:
42+
- py3-${{vars.pypi-package}}
43+
provider-priority: ${{range.value}}
44+
runtime:
45+
- py${{range.key}}-cheroot
46+
- py${{range.key}}-portend
47+
- py${{range.key}}-filelock
48+
- py${{range.key}}-jaraco.collections
49+
- py${{range.key}}-more-itertools
50+
pipeline:
51+
- uses: py/pip-build-install
52+
with:
53+
python: python${{range.key}}
54+
- name: move usr/bin executables for -bin
55+
runs: |
56+
mkdir -p ./.cleanup/${{range.key}}/
57+
mv ${{targets.contextdir}}/usr/bin ./.cleanup/${{range.key}}/
58+
- uses: strip
59+
test:
60+
environment:
61+
contents:
62+
packages:
63+
- py${{range.key}}-pytest
64+
- py${{range.key}}-path
65+
- py${{range.key}}-requests
66+
- py${{range.key}}-requests-toolbelt
67+
pipeline:
68+
- uses: python/import
69+
with:
70+
python: python${{range.key}}
71+
import: ${{vars.pypi-package}}
72+
- uses: git-checkout
73+
with:
74+
repository: https://github.com/cherrypy/cherrypy
75+
tag: v${{package.version}}
76+
expected-commit: d1eb64e27ac2dbb761b3cf96eb0c883d5bd87786
77+
cherry-picks: |
78+
main/75deabb33ea48553eb12b75d65739292c5202209: Switch to filelock
79+
- runs: |
80+
# TODO(jamespage)
81+
# Missing dependencies:
82+
# - pytest-services (MemcachedSessionTest)
83+
# Missing optional dependencies:
84+
# - pytest-xdist (parallel execution)
85+
rm -f pytest.ini
86+
python${{range.key}} -m pytest -k 'not (MemcachedSessionTest)' cherrypy/test
87+
88+
- range: py-versions
89+
name: py${{range.key}}-${{vars.pypi-package}}-bin
90+
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
91+
dependencies:
92+
provider-priority: ${{range.value}}
93+
provides:
94+
- py3-${{vars.pypi-package}}
95+
- py3-${{vars.pypi-package}}-bin
96+
runtime:
97+
- py${{range.key}}-${{vars.pypi-package}}
98+
pipeline:
99+
- runs: |
100+
mkdir -p ${{targets.contextdir}}/usr/
101+
mv ./.cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
102+
test:
103+
pipeline:
104+
- runs: |
105+
cherryd -h
106+
107+
- name: py3-supported-${{vars.pypi-package}}
108+
description: meta package providing ${{vars.pypi-package}} for supported python versions.
109+
dependencies:
110+
runtime:
111+
- py3.10-${{vars.pypi-package}}
112+
- py3.11-${{vars.pypi-package}}
113+
- py3.12-${{vars.pypi-package}}
114+
- py3.13-${{vars.pypi-package}}
115+
test:
116+
pipeline:
117+
- uses: python/import
118+
with:
119+
python: python3.10
120+
import: ${{vars.pypi-package}}
121+
122+
test:
123+
pipeline:
124+
- uses: python/import
125+
with:
126+
imports: |
127+
import ${{vars.pypi-package}}
128+
129+
update:
130+
enabled: true
131+
manual: false
132+
github:
133+
identifier: cherrypy/cherrypy
134+
strip-prefix: v
135+
use-tag: true

0 commit comments

Comments
 (0)