Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Python packages for CherryPy + Dependencies #47517

Merged
merged 9 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions py3-autocommand.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
package:
name: py3-autocommand
version: "2.2.2"
epoch: 0
description: "Automatically generate and run simple argparse parsers from function signatures."
copyright:
- license: LGPL-3.0-or-later
dependencies:
provider-priority: 0

vars:
pypi-package: autocommand

data:
- name: py-versions
items:
3.10: "310"
3.11: "311"
3.12: "312"
3.13: "313"

environment:
contents:
packages:
- py3-supported-build-base-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/Lucretiel/autocommand
tag: ${{package.version}}
expected-commit: 9d95de8ad227a76604a9205b5b211bc2a0576e91

subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provides:
- py3-${{vars.pypi-package}}
provider-priority: ${{range.value}}
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
environment:
contents:
packages:
- py${{range.key}}-pytest
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: ${{vars.pypi-package}}
- uses: git-checkout
with:
repository: https://github.com/Lucretiel/autocommand
tag: ${{package.version}}
expected-commit: 9d95de8ad227a76604a9205b5b211bc2a0576e91
- runs: |
python${{range.key}} -m pytest test/

- 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:
python: python3.10
import: ${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.pypi-package}}

update:
enabled: true
manual: false
github:
identifier: Lucretiel/autocommand
use-tag: true
137 changes: 137 additions & 0 deletions py3-cheroot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
package:
name: py3-cheroot
version: "10.0.1"
epoch: 0
description: "Cheroot is the high-performance, pure-Python HTTP server used by CherryPy,"
copyright:
- license: BSD-3-clause
dependencies:
provider-priority: 0

vars:
pypi-package: cheroot

data:
- name: py-versions
items:
3.10: "310"
3.11: "311"
3.12: "312"
3.13: "313"

environment:
contents:
packages:
- py3-supported-build-base-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/cherrypy/cheroot
tag: v${{package.version}}
expected-commit: 1391e717daf7a5c233c2713d82e6d7380cb5345a

subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provides:
- py3-${{vars.pypi-package}}
provider-priority: ${{range.value}}
runtime:
- py${{range.key}}-jaraco.functools
- py${{range.key}}-more-itertools
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./.cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./.cleanup/${{range.key}}/
- uses: strip
test:
environment:
contents:
packages:
- py${{range.key}}-pytest
- py${{range.key}}-portend
- py${{range.key}}-jaraco.text
- py${{range.key}}-pyopenssl
- py${{range.key}}-requests
- py${{range.key}}-requests-unixsocket
- py${{range.key}}-requests-toolbelt
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: ${{vars.pypi-package}}
- uses: git-checkout
with:
repository: https://github.com/cherrypy/cheroot
tag: v${{package.version}}
expected-commit: 1391e717daf7a5c233c2713d82e6d7380cb5345a
- runs: |
# TODO(jamespage)
# Missing test dependencies:
# - pytest-mock (-k ...)
# - trustme (test_ssl)
# - pypytools (test_server)
# Option missing test dependencies:
# - pydist-xdist - parallel execution
rm -f pytest.ini
python${{range.key}} -m pytest \
-p cheroot.test._pytest_plugin \
--ignore=cheroot/test/test_ssl.py \
--ignore=cheroot/test/test_server.py \
-k "not (test_broken_connection_during_tcp_fin or test_unhandled_exception_in_request_handler or test_remains_alive_post_unhandled_exception)" \
cheroot/test/

- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./.cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
pipeline:
- runs: |
cheroot -h

- 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:
python: python3.10
import: ${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.pypi-package}}

update:
enabled: true
manual: false
github:
identifier: cherrypy/cheroot
strip-prefix: v
135 changes: 135 additions & 0 deletions py3-cherrypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
package:
name: py3-cherrypy
version: "18.10.0"
epoch: 0
description: "A pythonic, object-oriented HTTP framework,"
copyright:
- license: BSD-3-clause
dependencies:
provider-priority: 0

vars:
pypi-package: cherrypy

data:
- name: py-versions
items:
3.10: "310"
3.11: "311"
3.12: "312"
3.13: "313"

environment:
contents:
packages:
- py3-supported-build-base-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/cherrypy/cherrypy
tag: v${{package.version}}
expected-commit: d1eb64e27ac2dbb761b3cf96eb0c883d5bd87786
cherry-picks: |
main/75deabb33ea48553eb12b75d65739292c5202209: Switch to filelock

subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provides:
- py3-${{vars.pypi-package}}
provider-priority: ${{range.value}}
runtime:
- py${{range.key}}-cheroot
- py${{range.key}}-portend
- py${{range.key}}-filelock
- py${{range.key}}-jaraco.collections
- py${{range.key}}-more-itertools
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- name: move usr/bin executables for -bin
runs: |
mkdir -p ./.cleanup/${{range.key}}/
mv ${{targets.contextdir}}/usr/bin ./.cleanup/${{range.key}}/
- uses: strip
test:
environment:
contents:
packages:
- py${{range.key}}-pytest
- py${{range.key}}-path
- py${{range.key}}-requests
- py${{range.key}}-requests-toolbelt
pipeline:
- uses: python/import
with:
python: python${{range.key}}
import: ${{vars.pypi-package}}
- uses: git-checkout
with:
repository: https://github.com/cherrypy/cherrypy
tag: v${{package.version}}
expected-commit: d1eb64e27ac2dbb761b3cf96eb0c883d5bd87786
cherry-picks: |
main/75deabb33ea48553eb12b75d65739292c5202209: Switch to filelock
- runs: |
# TODO(jamespage)
# Missing dependencies:
# - pytest-services (MemcachedSessionTest)
# Missing optional dependencies:
# - pytest-xdist (parallel execution)
rm -f pytest.ini
python${{range.key}} -m pytest -k 'not (MemcachedSessionTest)' cherrypy/test

- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}-bin
description: Executable binaries for ${{vars.pypi-package}} installed for python${{range.key}}
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-${{vars.pypi-package}}
- py3-${{vars.pypi-package}}-bin
runtime:
- py${{range.key}}-${{vars.pypi-package}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/
mv ./.cleanup/${{range.key}}/bin ${{targets.contextdir}}/usr/
test:
pipeline:
- runs: |
cherryd -h

- 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:
python: python3.10
import: ${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.pypi-package}}

update:
enabled: true
manual: false
github:
identifier: cherrypy/cherrypy
strip-prefix: v
use-tag: true
Loading
Loading