37 Commits

Author SHA256 Message Date
e5caad41d6 Accepting request 1067290 from devel:languages:python
- Skip python 3.11, not yet supported, gh#rocky/python-xdis#98
- Update to version 6.0.5
  * Detect versions pypy3.8.15, pypy-3.9.15
  * Dectect Python 3.{7,8,9}.14 3.10.{5,6,7}
  * correct 3.10+ pydisasm -F xasm label
  * Revise marshal error handling (Issue #97)
  * Improve PyPy 3.7 CALL_FUNCTION arg interpretation
  * Fix 1.5-2.x bugs in line number encoding
  * Fix showing MAKE_FUNCTION operand
  * Miscellaneous lint, black, and isort changes

OBS-URL: https://build.opensuse.org/request/show/1067290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=17
2023-02-23 15:29:30 +00:00
61c4350fdb - Skip python 3.11, not yet supported, gh#rocky/python-xdis#98
- Update to version 6.0.5
  * Detect versions pypy3.8.15, pypy-3.9.15
  * Dectect Python 3.{7,8,9}.14 3.10.{5,6,7}
  * correct 3.10+ pydisasm -F xasm label
  * Revise marshal error handling (Issue #97)
  * Improve PyPy 3.7 CALL_FUNCTION arg interpretation
  * Fix 1.5-2.x bugs in line number encoding
  * Fix showing MAKE_FUNCTION operand
  * Miscellaneous lint, black, and isort changes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=35
2023-02-21 07:38:50 +00:00
c9a50a3a6c Accepting request 1009875 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1009875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=16
2022-10-12 16:24:28 +00:00
18fcaf3258 Accepting request 1009871 from home:yarunachalam:branches:devel:languages:python
- Update to version 6.0.4 
  * Detect 3.7.[7-13], 3.9.[8-13], 3.10.[1-4], PyPy 2.7.12, 3.[8-9]pypy
  * Correct line-number detection on Python 1.0-1.4
  * Handle SET_LINENO in older pythons
  * Warn about wrong names in after RESERVE_FAST in Python 1.x
  * Some PyPy x-3.9.7 tolerance
  * Add Pypy 3.8 support
  * Better PyPy 3.6 formatting
  * Correct relative jump target calculation in 3.10

OBS-URL: https://build.opensuse.org/request/show/1009871
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=33
2022-10-11 17:30:24 +00:00
9a786d6f49 Accepting request 951463 from devel:languages:python
- Update to 6.0.3:
  * xasm format fixes
  * more Python version tuple compare conversions
  * add version_str_to_tuple() to convert the other way. This is useful in xasm, for example.
  * Reduce PYTHON_VERSION usage in xdis.
  * Allow optional delimiter and start length in version_tuple_to_str()
  * fix logic bug in setting MAGIC
  * Add a little Python 3.8.5 Graal (Java VM) knowledge.
  * Add PyPy 3.8 opcodes and disassembly
  * Accept Python 3.8.12
  * Fix some small lingering bugs introduced converting Python version number floats to tuples
  * Reworked for Python 3.10.
  * Add 3.10 opcodes.
  * Add 3.9 and 3.10 testing.
  * Some tolerance for running from 3.11
  * Update magic numbers
  * Expanding testing to include pyston and PyPy 3.7
  * Added knowledge of Python versions 3.6.15 and 3.7.12.
  * Restrict wheel packaging for Python 3 only.
  * Use the wheel for only the 3.x and newer version of Python.
  * Add Python version 3.9.7
  * Document unmarshal better
  * Correct stack information for IMPORT_NAME
  * Fix bug in code type handling where bytes were showing up as strings
  * More type annotations in master branch. Create more older variations without annotations
  * Add Python versions 3.9.6, 3.7.11, 3.8.11, and 3.6.14
  * Note Python versions 3.8.10 and 3.9.5
  * Incorrect variable name in marshal dump (used in writting .pyc files). PR #77
  * Improve 3.9 IS_OP and CONTAINS_OP operand formatting
  * Correct disassembly of 3.9 bytecode from other bytecode

OBS-URL: https://build.opensuse.org/request/show/951463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=15
2022-02-04 20:49:16 +00:00
839f4d458e - Update to 6.0.3:
* xasm format fixes
  * more Python version tuple compare conversions
  * add version_str_to_tuple() to convert the other way. This is useful in xasm, for example.
  * Reduce PYTHON_VERSION usage in xdis.
  * Allow optional delimiter and start length in version_tuple_to_str()
  * fix logic bug in setting MAGIC
  * Add a little Python 3.8.5 Graal (Java VM) knowledge.
  * Add PyPy 3.8 opcodes and disassembly
  * Accept Python 3.8.12
  * Fix some small lingering bugs introduced converting Python version number floats to tuples
  * Reworked for Python 3.10.
  * Add 3.10 opcodes.
  * Add 3.9 and 3.10 testing.
  * Some tolerance for running from 3.11
  * Update magic numbers
  * Expanding testing to include pyston and PyPy 3.7
  * Added knowledge of Python versions 3.6.15 and 3.7.12.
  * Restrict wheel packaging for Python 3 only.
  * Use the wheel for only the 3.x and newer version of Python.
  * Add Python version 3.9.7
  * Document unmarshal better
  * Correct stack information for IMPORT_NAME
  * Fix bug in code type handling where bytes were showing up as strings
  * More type annotations in master branch. Create more older variations without annotations
  * Add Python versions 3.9.6, 3.7.11, 3.8.11, and 3.6.14
  * Note Python versions 3.8.10 and 3.9.5
  * Incorrect variable name in marshal dump (used in writting .pyc files). PR #77
  * Improve 3.9 IS_OP and CONTAINS_OP operand formatting
  * Correct disassembly of 3.9 bytecode from other bytecode

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=32
2022-02-04 00:31:04 +00:00
8b8b93f50e Accepting request 865547 from devel:languages:python
- Switch to python_alternative for pydisasm script

OBS-URL: https://build.opensuse.org/request/show/865547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=14
2021-01-26 13:46:19 +00:00
bfa909b7a6 - Switch to python_alternative for pydisasm script
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=30
2021-01-22 05:41:56 +00:00
360e67d13e Accepting request 859979 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/859979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=13
2021-01-04 18:07:32 +00:00
fb53be7356 Accepting request 859581 from home:olh:branches:devel:languages:python
- update to 5.0.6:
  * Add support for Python2.7 on Ubuntu 20.04
  * Bump versions for Python 3.8.6 and 3.5.10
  * `VERSION` -> `__version__` because Python prefers it that way
- Fix issue#71 with python-xdis.patch

OBS-URL: https://build.opensuse.org/request/show/859581
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=28
2021-01-03 19:48:33 +00:00
1b4ace18da Accepting request 835018 from devel:languages:python
- udpate to 5.0.4:
  * Add python versions 3.6.12, 3.7.9
  * extended arg disassembly handling for {LOAD,STORE}_ATTR
  * Add versions 3.8.5, 3.7.8, and 3.6.11
  * Clarify changes to 3.8 `ROT_FOUR`
  * Update 3.9 magics and opcodes
  * Add Python 3.8.4 as a 3.8 release
  * pydisasm.py Python 3.3 tolerance
  * Make pydoc's version reporting show xdis's version

OBS-URL: https://build.opensuse.org/request/show/835018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=12
2020-09-17 12:51:55 +00:00
ed784f0ef0 - udpate to 5.0.4:
* Add python versions 3.6.12, 3.7.9
  * extended arg disassembly handling for {LOAD,STORE}_ATTR
  * Add versions 3.8.5, 3.7.8, and 3.6.11
  * Clarify changes to 3.8 `ROT_FOUR`
  * Update 3.9 magics and opcodes
  * Add Python 3.8.4 as a 3.8 release
  * pydisasm.py Python 3.3 tolerance
  * Make pydoc's version reporting show xdis's version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=26
2020-09-16 21:34:57 +00:00
479ce7ed4b Accepting request 822103 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/822103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=11
2020-07-24 07:55:06 +00:00
Tomáš Chvátal
10245f7d87 Accepting request 822088 from home:mcalabkova:branches:devel:languages:python
- Update to 5.0.1
  * Routines for extracting line and offset information from code objects was added.
  * Disassembly format and options have simplified and improved.
  * Before, we had separate flags and command-line options for whether to show just 
    the header, and whether to include bytecode ops in the output. Now there is just 
    a single parameter called `asm_format`, and choice option `--format` (short option `-F`).
  * Small fixes and improvements

OBS-URL: https://build.opensuse.org/request/show/822088
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=24
2020-07-21 13:19:34 +00:00
f895489e7d Accepting request 811038 from devel:languages:python
- Update to 4.6.1:
  * A portable version of types.CodeType was rewritten.
  * Python 3.8-ish `replace()` method has been added to the portable code types
  * Portable code type classes `Code13`, `Code15` have been added to more precisely distinguish Python 1.3 and 1.5 code types. The other portable code classes are `Code2`, `Code3`, and `Code38`.
  * the to_native() conversts a portable code type into a native code type
  * the `decode_lineno_tab()` method on portable code types from Python 1.5 on decompresses the Python encode line number table into a dictionary mapping offset to line number.
  * The module `xdis.code` has been remamed to `xdis.codetype`.
  * `load_module()` and `load_module_from_file_object()` now return
   a couple more parameters.
  * --asm option fixes
  * Show sip hash in 3.7+ when that is used
  * Handle PEP 552 bytecode-file variations more properly
  * Detect more intermediate Python versions in `load_code_from_file_object()`
  * 3.8+ posonlyargcount in assembly...  rename Kw-only field to Keyword-only
  * Add 3.5 canonic bytecode version Marshal `dumps()`
  * convert from byte() to str() in dumps() when needed in 3.x
  * to_native() convert to bytes from string when needed in 3.x.
  * clean up loading code by using float version values rather than magic values
  * `stack_effects()` checked against Python 3.4+ is now in place.
  * Added `stack_effects()` function to `std.py` since this is part of the API
  * `cross_xdis.py` file/module now has `dis.py` functions split off from `bytecod
  e.py`
  * `Instructions` class is in its own module too.
  * Python 2.7.18 added into magics.
  * Fix bug in marshal for 3.8+ (include posonlyargcount)
  * Go over stack effects from 2.5 to 3.4 using and idea from Maynard
  * Expand stack-effect testing
  * 3.8.3 added as a valid 3.8 release
  * command program `pydisasm` disassembles more Python source files now
  * Add better arguemnt formatting on `CALL_FUNCTION` and `MAKE_FUNCTION`

OBS-URL: https://build.opensuse.org/request/show/811038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=10
2020-06-12 19:37:21 +00:00
ea639d9989 - Update to 4.6.1:
* A portable version of types.CodeType was rewritten.
  * Python 3.8-ish `replace()` method has been added to the portable code types
  * Portable code type classes `Code13`, `Code15` have been added to more precisely distinguish Python 1.3 and 1.5 code types. The other portable code classes are `Code2`, `Code3`, and `Code38`.
  * the to_native() conversts a portable code type into a native code type
  * the `decode_lineno_tab()` method on portable code types from Python 1.5 on decompresses the Python encode line number table into a dictionary mapping offset to line number.
  * The module `xdis.code` has been remamed to `xdis.codetype`.
  * `load_module()` and `load_module_from_file_object()` now return
   a couple more parameters.
  * --asm option fixes
  * Show sip hash in 3.7+ when that is used
  * Handle PEP 552 bytecode-file variations more properly
  * Detect more intermediate Python versions in `load_code_from_file_object()`
  * 3.8+ posonlyargcount in assembly...  rename Kw-only field to Keyword-only
  * Add 3.5 canonic bytecode version Marshal `dumps()`
  * convert from byte() to str() in dumps() when needed in 3.x
  * to_native() convert to bytes from string when needed in 3.x.
  * clean up loading code by using float version values rather than magic values
  * `stack_effects()` checked against Python 3.4+ is now in place.
  * Added `stack_effects()` function to `std.py` since this is part of the API
  * `cross_xdis.py` file/module now has `dis.py` functions split off from `bytecod
  e.py`
  * `Instructions` class is in its own module too.
  * Python 2.7.18 added into magics.
  * Fix bug in marshal for 3.8+ (include posonlyargcount)
  * Go over stack effects from 2.5 to 3.4 using and idea from Maynard
  * Expand stack-effect testing
  * 3.8.3 added as a valid 3.8 release
  * command program `pydisasm` disassembles more Python source files now
  * Add better arguemnt formatting on `CALL_FUNCTION` and `MAKE_FUNCTION`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=22
2020-06-03 08:27:20 +00:00
9a3ca828a6 Accepting request 794470 from devel:languages:python
- Update to 4.2.4:
  * Add Instruction instance methods: #Instruction.is_jump() and #Instruction.jumps_forward()

OBS-URL: https://build.opensuse.org/request/show/794470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=9
2020-04-16 21:03:18 +00:00
Tomáš Chvátal
2d3db12784 - Update to 4.2.4:
* Add Instruction instance methods: #Instruction.is_jump() and #Instruction.jumps_forward()

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=20
2020-04-16 07:35:00 +00:00
c91d6d7dfb Accepting request 787860 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/787860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=8
2020-03-24 21:37:35 +00:00
Tomáš Chvátal
4ba04aa922 Accepting request 787858 from home:pgajdos:python
- version update to 4.2.3
  * Add Python versions: 3.7.7, 3.8.2, and 3.9.0alpha1,
  * Create a class for "STORE" instructions
  * facilitate code type freezing (PR #57)
  * Warn about cross-decompilation problems for byte types
- deleted patches
  - py382.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/787858
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=18
2020-03-24 15:29:31 +00:00
a30da8dbc2 Accepting request 783027 from devel:languages:python
py38 fix

OBS-URL: https://build.opensuse.org/request/show/783027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=7
2020-03-09 17:34:30 +00:00
Tomáš Chvátal
7750dec3e6 - Add patch to work with 3.8.2:
* py382.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=16
2020-03-09 16:46:03 +00:00
5004813757 Accepting request 770565 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/770565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=6
2020-02-07 14:53:41 +00:00
Tomáš Chvátal
aca6cb75f6 Accepting request 770554 from home:mcalabkova:branches:devel:languages:python
- update to 4.2.2
  * Add Python versions: 3.6.10, 3.7.6. 3.8.1
  * Update 3.9-dev to 3.9.0alpha2
  * Add interpolation of FUNCTION_CALL_{KW,EX} argument for 3.7-3.9
  * Better output of complex type values
  * Correct and clean up compiler flags.

OBS-URL: https://build.opensuse.org/request/show/770554
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=14
2020-02-06 12:45:19 +00:00
a0d20592f4 Accepting request 753274 from devel:languages:python
- Update to 4.1.3:
  * Various dependency fixes

- Update to 4.1.2:
  * Python 3.8.0 magic changed
  * More Pypy 3.6 tolerance
  * Fixed DeprecationWarning; thanks to laike9m

OBS-URL: https://build.opensuse.org/request/show/753274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=5
2019-12-04 12:53:23 +00:00
Tomáš Chvátal
c7f459355b - Update to 4.1.3:
* Various dependency fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=12
2019-12-03 14:31:36 +00:00
Tomáš Chvátal
e4c9780048 - Update to 4.1.2:
* Python 3.8.0 magic changed
  * More Pypy 3.6 tolerance
  * Fixed DeprecationWarning; thanks to laike9m

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=11
2019-11-06 12:15:11 +00:00
20e298440d Accepting request 744161 from devel:languages:python
- Update to 4.1.1:
  * Fix unmarshaling 3.4+ object_ref bugs. A big thanks to Armin Rigo of the PyPy team.
  * Add Pypy 3.6+ disassembly, e.g. pypy3.6-7.1.0 and pypy3.6-7.1.1
  * Add Python 3.7.5, 2.7.16, 2.7.17rc1, and 2.7.15candidate1 as a valid releases
  * convert unmarshal if .. elif code to a dictionary lookup with function entries
  * Handle newer Python importlib - thanks to laike9m
  * Add early bytecodes: 1.0, 1.1, 1.2, and 1.6. Going off of pycdc bytecode since this is the only bytecode for these versions I know of
  * Fix bug in Python 3.x decompiling 2.x that contains strings with non-ascii characters
  * More generally, better handling of non-ascii Python 2 strings in both input and output in Python 3
  * pypy 3.6-7.1.0 tolerance

OBS-URL: https://build.opensuse.org/request/show/744161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=4
2019-10-31 17:18:11 +00:00
Tomáš Chvátal
2b05f3717f - Update to 4.1.1:
* Fix unmarshaling 3.4+ object_ref bugs. A big thanks to Armin Rigo of the PyPy team.
  * Add Pypy 3.6+ disassembly, e.g. pypy3.6-7.1.0 and pypy3.6-7.1.1
  * Add Python 3.7.5, 2.7.16, 2.7.17rc1, and 2.7.15candidate1 as a valid releases
  * convert unmarshal if .. elif code to a dictionary lookup with function entries
  * Handle newer Python importlib - thanks to laike9m
  * Add early bytecodes: 1.0, 1.1, 1.2, and 1.6. Going off of pycdc bytecode since this is the only bytecode for these versions I know of
  * Fix bug in Python 3.x decompiling 2.x that contains strings with non-ascii characters
  * More generally, better handling of non-ascii Python 2 strings in both input and output in Python 3
  * pypy 3.6-7.1.0 tolerance

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=9
2019-10-30 12:42:40 +00:00
41b0108b33 Accepting request 734940 from devel:languages:python
- Update to 4.0.4:
  * Add most-recent 3.8 magic number
  * Remove some 3.8 invalid escape warnings

OBS-URL: https://build.opensuse.org/request/show/734940
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=3
2019-10-04 09:22:30 +00:00
Tomáš Chvátal
791a726242 - Update to 4.0.4:
* Add most-recent 3.8 magic number
  * Remove some 3.8 invalid escape warnings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=7
2019-10-04 08:31:00 +00:00
46cbb3367d Accepting request 724511 from devel:languages:python
- Update to 4.0.3:
  * Support 3.8.0beta2; Code38 type with posonlyargcount field
  * Add Python versions 3.4.10, 3.7.4 and 3.6.9
  * script no longer works to install pydisasm; entry_points still works
  * Add pypy 3.6 opcode formatting for MAKE_FUNCTION and EXTENDED_ARG
  * Add format_CALL_function and use it or pypy36
  * Start using "blacken" to reformat Python files

OBS-URL: https://build.opensuse.org/request/show/724511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=2
2019-09-05 10:34:09 +00:00
Tomáš Chvátal
bc3db4ebf5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=5 2019-08-19 08:48:38 +00:00
Tomáš Chvátal
6daa827843 - Update to 4.0.3:
* Support 3.8.0beta2; Code38 type with posonlyargcount field
  * Add Python versions 3.4.10, 3.7.4 and 3.6.9
  * script no longer works to install pydisasm; entry_points still works
  * Add pypy 3.6 opcode formatting for MAKE_FUNCTION and EXTENDED_ARG
  * Add format_CALL_function and use it or pypy36
  * Start using "blacken" to reformat Python files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=4
2019-08-19 08:46:27 +00:00
1c7e3b0fac Accepting request 713049 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/713049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xdis?expand=0&rev=1
2019-07-03 13:14:51 +00:00
Tomáš Chvátal
ffde88d250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=2 2019-07-02 12:02:30 +00:00
Tomáš Chvátal
0816fb5b0c Accepting request 712405 from home:a_faerber:branches:devel:languages:python
xdis v4.0.2

OBS-URL: https://build.opensuse.org/request/show/712405
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdis?expand=0&rev=1
2019-07-02 11:53:58 +00:00