inab / benchmarking-data-model

OpenEBench Benchmarking Data Model repository
Creative Commons Attribution Share Alike 4.0 International
2 stars 7 forks source link

Regular expressions cause issues with Python 3.11 #144

Closed jmfernandez closed 1 year ago

jmfernandez commented 1 year ago

Regular expressions used at https://github.com/inab/benchmarking-data-model/blob/9469c3b5b8c6232c37c9225c4a4185b1fc9922b5/json-schemas/1.0.x/_shared.json#L19 and https://github.com/inab/benchmarking-data-model/blob/3d4d8d3b4c26db0f0439ffc05928c6d9c98c36dc/json-schemas/1.0.x/_shared.json#L24 use the extended notation '(?i)' in a place which was deprecated since Python 3.6, and it is an error in Python 3.11 and later.

Even worse, the extended notation does not comply with ECMAScript 262 regular expressions. So, it has to be fixed.

jmfernandez commented 1 year ago

Version 2.0 of the benchmarking data model does not suffer from this issue:

https://github.com/inab/benchmarking-data-model/blob/143da2455c2eb4eaa691f87e46030ed6ae400f60/json-schemas/2.0.x/_shared.json#L18

jmfernandez commented 1 year ago

Fixed issue in tag https://github.com/inab/benchmarking-data-model/tree/1.0.6 , which holds commit 51ee65be4bb242c5f3c0cbf0a184eb88608afe55