Commit Graph

7 Commits

Author SHA1 Message Date
Gyorgy Sarvari
75c9a73add
python3-hyperframe: add ptest support
It takes about a second to execute. Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-16T15:55
BEGIN: /usr/lib/python3-hyperframe/ptest
SKIP: tests/test_external_collection.py:TestExternalCollection.test[NOTSET] # SKIP got empty parameter set for (tc_filepath)
PASS: tests/test_flags.py:TestFlags.test_add
PASS: tests/test_flags.py:TestFlags.test_remove
[...many lines...]
PASS: tests/test_frames.py:TestAltSvcFrame.test_altsvc_with_unicode_origin_fails
PASS: tests/test_frames.py:TestAltSvcFrame.test_altsvc_with_unicode_field_fails
PASS: tests/test_frames.py:TestExtensionFrame.test_repr
============================================================================
Testsuite summary
DURATION: 0
END: /usr/lib/python3-hyperframe/ptest
2025-12-16T15:55
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-20 11:41:02 -08:00
Leon Anavi
c6692dd48c
python3-hyperframe: Upgrade 6.0.1 -> 6.1.0
Upgrade to release 6.1.0:

API Changes (Backward Incompatible)

- Support for Python 3.6 has been removed.
- Support for Python 3.7 has been removed.
- Support for Python 3.8 has been removed.

API Changes (Backward Compatible)

- Support for Python 3.10 has been added.
- Support for Python 3.11 has been added.
- Support for Python 3.12 has been added.
- Support for Python 3.13 has been added.
- Updated packaging and testing infrastructure.
- Code cleanup and linting.
- Improved type hints.

Fixes:
WARNING: python3-hyperframe-6.1.0-r0 do_check_backend: QA Issue:
inherits setuptools3 but has pyproject.toml with
setuptools.build_meta, use the correct class [pep517-backend]

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-25 09:28:58 -08:00
Leon Anavi
239a3a3a3a python3-hyperframe: Upgrade 6.0.0 -> 6.0.1
Upgrade to release 6.0.1 with the following API changes:

- Added support for Python 3.9
- Added type hints

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-04-22 07:28:15 -07:00
Leon Anavi
e85ac5357d python3-hyperframe: Upgrade 5.2.0 -> 6.0.0
Upgrade to release 6.0.0:

API Changes (Backward-incompatible):
- Introduce HyperframeError base exception class for all errors
  raised within hyperframe.
- Change exception base class of UnknownFrameError to
  HyperframeError
- Change exception base class of InvalidPaddingError to
  HyperframeError
- Change exception base class of InvalidFrameError to
  HyperframeError
- Invalid frames with wrong stream id (zero vs. non-zero) now
  raise InvalidDataError.
- Invalid SETTINGS frames (non-empty but ACK) now raise
  InvalidDataError.
- Invalid ALTSVC frames with non-bytestring field or origin now
  raise InvalidDataError.

API Changes (Backward-compatible)
- Deprecate total_padding - use pad_length instead.
- Improve repr() output for all frame classes.
- Introduce Frame.explain(data) for quick introspection of raw
  data.

Bugfixes
- Fixed padding parsing for PushPromiseFrame.
- Fixed unchecked frame length for PriorityFrame. It now correctly
  raises InvalidFrameError.
- Fixed promised stream id validation for PushPromiseFrame. It now
  raises InvalidDataError.
- Fixed unchecked frame length for WindowUpdateFrame. It now
  correctly raises InvalidFrameError.
- Fixed window increment value range validation. It now raises
  InvalidDataError.
- Fixed parsing of SettingsFrame with mutual exclusion of ACK flag
  and payload.

Other Changes
- Removed support for Python 2.7, 3.4, 3.5, pypy.
- Added support for Python 3.8.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 09:28:34 -07:00
Leon Anavi
2c27f5f08b python3-hyperframe: Consolidate in a single file
Consolidate inc and bb files into a single bb file.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-07 11:28:04 -07:00
Andrey Zhizhikin
05d0c5eee3 meta-python: remove python2 recipes from layer
Remove recipes which require python2 from the layer. Those recipes are
moved to meta-python2 and are not required here any longer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-22 09:56:34 -08:00
Trevor Gamblin
507366dec8 python-hyperframe: add recipe
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:53 -07:00