17
0

30 Commits

Author SHA256 Message Date
c0a6a67c71 Accepting request 1303568 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303568
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=14
2025-09-10 15:30:27 +00:00
58d50de9a2 - Update to 0.17.0
* Add support for Python 3.14 PR #166
    Support for Python 3.14, comes with a number of changes reflecting changes in
    CPython bytecode itself:
    - introduced an enum for BINARY_OP argument which now supports subscribe.
      When disassembling the enum is always used, when creating bytecode from
      scratch integer values are coerced into the right enum member.
    - support BUILD_TEMPLATE, BUILD_INTERPOLATION, LOAD_SMALL_INT, LOAD_FAST_BORROW
      and LOAD_FAST_BORROW_LOAD_FAST_BORROW
    - LOAD_COMMON_CONSTANT, LOAD_SPECIAL whose argument is described using dedicated
      enums CommonConstant, SpecialMethod
    - CONVERT_VALUE (FORMAT_VALUE in Python < 3.13) now use the FormatValue enum.
      When disassembling the enum is always used, when creating bytecode from
      scratch integer values are coerced into the right enum member.
  * properly set the next_block attribute of the new block created by
    ControlFlowGraph.split_block. PR #170

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=27
2025-09-10 09:11:29 +00:00
7629867e7e Accepting request 1274910 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=13
2025-05-06 14:44:11 +00:00
8ccbf078d7 - Update to 0.16.2
* fix ControlFlowGraph dead block detection by accounting for
    fall-through edges. PR #161

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=25
2025-05-06 11:50:02 +00:00
de907faf65 Accepting request 1242862 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1242862
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=12
2025-02-03 20:45:32 +00:00
e440c1fd34 - Update to 0.16.1
* Minor fixes following linter recommendations by @MatthieuDartiailh in #154
  * build(deps): bump codecov/codecov-action from 4 to 5 by @dependabot in #153
  * Fix flag inference by @MatthieuDartiailh in #157

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=23
2025-02-03 14:54:05 +00:00
864bfb699e Accepting request 1220028 from devel:languages:python
- Update to 0.16.0:
  * Fix the document for python3.12 by @colinxu2020 in #142
  * fix: handle small try blocks by @P403n1x87 in #145
  * Add support for Python 3.13 by @MatthieuDartiailh in #146

OBS-URL: https://build.opensuse.org/request/show/1220028
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=11
2024-11-01 20:07:04 +00:00
4d91dcd4a4 - Update to 0.16.0:
* Fix the document for python3.12 by @colinxu2020 in #142
  * fix: handle small try blocks by @P403n1x87 in #145
  * Add support for Python 3.13 by @MatthieuDartiailh in #146

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=21
2024-11-01 08:34:00 +00:00
98d179d48c Accepting request 1193951 from devel:languages:python
- use modern python on sle15
- switch to PEP517 build

OBS-URL: https://build.opensuse.org/request/show/1193951
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=10
2024-08-16 10:23:11 +00:00
df7028c045 - use modern python on sle15
- switch to PEP517 build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=19
2024-08-14 15:03:57 +00:00
fc957fc880 Accepting request 1126231 from devel:languages:python
- update to 0.15.1:
  * Disallow creating an instruction targeting a
    pseudo/instrumented opcode PR #133
  * Fixes encoding of 0 as a varint PR #132
  * Correct spelling of "INTRINSIC" in several places; this
    affected some ops in Python 3.12.  PR #131

OBS-URL: https://build.opensuse.org/request/show/1126231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=9
2023-11-15 20:08:25 +00:00
ffee2b8461 - update to 0.15.1:
* Disallow creating an instruction targeting a
    pseudo/instrumented opcode PR #133
  * Fixes encoding of 0 as a varint PR #132
  * Correct spelling of "INTRINSIC" in several places; this
    affected some ops in Python 3.12.  PR #131

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=17
2023-11-14 15:47:42 +00:00
8912c8b392 Accepting request 1111939 from devel:languages:python
- update to 0.15.0:
  * Add support for Python 3.12 PR #122
  * Support for Python 3.12, comes with a number of changes
    reflecting changes in CPython bytecode itself:
  * handle the ability of ``LOAD_ATTR`` to replace
    ``LOAD_METHOD``
    As a consequence the argument is now a ``tuple[bool, str]``
    similarly ``LOAD_SUPER_ATTR`` which uses the 2 lowest bits as
    flag takes a ``tuple[bool, bool, str]`` as argument
  * ``POP_JUMP_IF_*`` instructions are undirected in Python 3.12
  * ``YIELD_VALUE`` now takes an argument
  * Support for ``CALL_INSTRINSIC_1/2`` led to the addition of 2
    new enums to represent the argument

- Update to 0.14.0
- initial version 0.11.0, required by python-enaml

OBS-URL: https://build.opensuse.org/request/show/1111939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=8
2023-09-20 11:26:40 +00:00
552c494005 As a consequence the argument is now a `tuple[bool, str]`
similarly ``LOAD_SUPER_ATTR`` which uses the 2 lowest bits as
    flag takes a ``tuple[bool, bool, str]`` as argument

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=15
2023-09-18 10:15:25 +00:00
0b3dbdae7d - update to 0.15.0:
* Add support for Python 3.12 PR #122
  * Support for Python 3.12, comes with a number of changes
    reflecting changes in CPython bytecode itself:
  * handle the ability of ``LOAD_ATTR`` to replace
    ``LOAD_METHOD``
  * As a consequence the argument is now a ``tuple[bool, str]``
  * similarly ``LOAD_SUPER_ATTR`` which uses the 2 lowest bits as
    flag takes
  * a ``tuple[bool, bool, str]`` as argument
  * ``POP_JUMP_IF_*`` instructions are undirected in Python 3.12
  * ``YIELD_VALUE`` now takes an argument
  * Support for ``CALL_INSTRINSIC_1/2`` led to the addition of 2
    new enums to represent the argument
- Update to 0.14.0
- initial version 0.11.0, required by python-enaml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=14
2023-09-18 10:14:57 +00:00
5e4f9e9274 Accepting request 1089360 from devel:languages:python
- update to 0.14.2:
  * allow to convert a CFG, for which stack sizes have not been
    computed, to Bytecode even in the presence of mergeable
    TryBegin/TryEnd
  * remove spurious TryEnd leftover when going from CFG to
    Bytecode

OBS-URL: https://build.opensuse.org/request/show/1089360
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=7
2023-05-28 17:23:33 +00:00
e1b0477268 - update to 0.14.2:
* allow to convert a CFG, for which stack sizes have not been
    computed, to Bytecode even in the presence of mergeable
    TryBegin/TryEnd
  * remove spurious TryEnd leftover when going from CFG to
    Bytecode

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=12
2023-05-27 21:37:38 +00:00
1b8e3366b0 Accepting request 1080283 from devel:languages:python
- update to 0.14.1:
  * allow to disassemble code containing ``EXTENDED_ARG``
    targeting a ``NOP`` PR #117

OBS-URL: https://build.opensuse.org/request/show/1080283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=6
2023-04-20 13:14:13 +00:00
b6478eba19 - update to 0.14.1:
* allow to disassemble code containing ``EXTENDED_ARG``
    targeting a ``NOP`` PR #117

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=10
2023-04-19 09:32:26 +00:00
ae9d8f6ef7 Accepting request 1043286 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1043286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=5
2022-12-16 16:52:04 +00:00
00d6c19dc7 Accepting request 1043235 from home:bnavigator:branches:devel:languages:python
- Fix dependencies
- Fix python-sitelib-glob-in-files and 0.0.0 version egg-info by
  not forgetting setuptools_scm

OBS-URL: https://build.opensuse.org/request/show/1043235
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=8
2022-12-16 08:24:01 +00:00
70b129fb40 Accepting request 1042087 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1042087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=4
2022-12-11 16:17:04 +00:00
f0279a7587 Accepting request 1041911 from home:yarunachalam:branches:devel:languages:python
- Update to 0.14.0 
  * New features:
  Removed the peephole optimizer PR #107
  Basically changes in Python 3.11 made it hard to port and the maintenance cost exceeded the perceived use. It could be re-added if there is a demand for it.
  Add support for Python 3.11 PR #107
  Support for Python 3.11, comes with a number of changes reflecting changes in CPython bytecode itself:
  support for the exception table in ConcreteBytecode
  support for pseudo-instruction TryBegin and TryEnd describing the exception table in Bytecode and ControlflowGraph
  new keyword arguments in conversion method related to computations required for the exception table
  handling of CACHE opcode at the ConcreteBytecode level
  handling of the ability of LOAD_GLOBAL to push NULL (the argument is now a tuple[bool, str])
  support for end_lineno and column offsets in instructions
  support for co_qualname (as qualname on bytecode objects)
  and a number of internal changes related to changes in the internal bytecode representation.
  Add type annotations and make types stricter PR # 105 In particular, ConcreteInstr does not inherit from Instr anymore and one cannot
  use ConcreteInstr in Bytecode object. This is saner than before.
  * Bugfixes:
  Removed EXC_MATCH from the Compare enumeration starting with Python 3.9. The new JUMP_IF_NOT_EXC_MATCH opcode should be used instead.
  Removed IN, NOT_IN, IS, NOT_IS from the Compare enumeration starting with Python 3.9. The new CONTAINS_OP and IS_OP opcodes should be used instead.
  Add proper pre and post stack effects to all opcodes (up to Python 3.11) PR #106 #107
  * Maintenance:
  Make the install process PEP517 compliant PR #97
  Drop support for Python 3.6 and 3.7 PR #100

OBS-URL: https://build.opensuse.org/request/show/1041911
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=6
2022-12-11 11:11:41 +00:00
7ceb5e9669 Accepting request 932773 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=3
2021-11-21 22:52:12 +00:00
0c6cecc243 Accepting request 932236 from home:glaubitz:branches:devel:languages:python
- Update to 0.13.0
  * Add support for Python 3.10 new encoding of line number. This support is
    minimal in the sense that we still systematically assign a line number
    while the new format allow bytecode with absolutely no line number. PR #72
  * Fix handling of RERAISE (introduced in 3.9) when creating a ControlFlowGraph,
    previously it was not considered final. PR #72
  * Fix line table assembly in Python 3.10. PR #85

OBS-URL: https://build.opensuse.org/request/show/932236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=5
2021-11-21 11:00:54 +00:00
8067567aae Accepting request 917157 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/917157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=2
2021-09-07 19:21:22 +00:00
a3f8e4a7b6 Accepting request 915240 from home:glaubitz:branches:devel:languages:python
- Update to 0.12.0
  * All calculations of stacksize now check for stack underflow to
    avoid segfault at runtime PR #69
  * Fix recursion limitations when compiling bytecode with numerous basic
    blocks. PR #57
  * Fix handling of line offsets. Issue #67, PR #71
  * Forbid an :class:`Instr` to hold an EXTENDED_ARG op_code PR #65
  * Forbid the use of :class:`ConcreteInstr` in :class:`Bytecode` and
    :class:`ControlFlowGraph` PR #65
    This is motivated by the extra complexity that handling possible EXTENDED_ARG
    instruction in those representation would bring (stack computation, etc)
  * Always remove EXTENDED_ARG when converting :class:`ConcreteBytecode` to
    :class:`Bytecode` PR #65
  * This is equivalent to say that the :class:`ConcreteBytecode` converted to
    :class:`Bytecode` was generated by :meth:`ConcreteBytecode.from_code`
    with extended_args=False
  * :class:`Instr` now has a new method :meth:`Instr.pre_and_post_stack_effect`
    for checking the prerequisite stack size of an operation PR #69
  * :meth:`_compute_stack_size` now uses :meth:`Instr.pre_and_post_stack_effect`
    to compute the stack size to reject code that will lead to runtime segfault
    caused by stack underflow PR #69

OBS-URL: https://build.opensuse.org/request/show/915240
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=4
2021-09-06 16:28:01 +00:00
68a33e3f3d Accepting request 792724 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/792724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bytecode?expand=0&rev=1
2020-04-09 21:17:55 +00:00
Tomáš Chvátal
2d6979a5c6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=2 2020-04-09 12:47:22 +00:00
Tomáš Chvátal
412a85c545 Accepting request 792718 from home:pgajdos:python
together with python-enaml

OBS-URL: https://build.opensuse.org/request/show/792718
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=1
2020-04-09 12:47:05 +00:00