Skip to content

Commit

Permalink
Chnage version to 3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Mar 4, 2024
1 parent 9be6e69 commit 8ed4e28
Show file tree
Hide file tree
Showing 14 changed files with 1,726 additions and 1,627 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You can choose the latest stable release :

```html
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/[email protected].1/brython.min.js">
src="https://cdn.jsdelivr.net/npm/[email protected].2/brython.min.js">
</script>
```

Expand All @@ -72,7 +72,7 @@ with the [available stdlib](https://github.com/brython-dev/brython/tree/master/w

```html
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/[email protected].1/brython_stdlib.js">
src="https://cdn.jsdelivr.net/npm/[email protected].2/brython_stdlib.js">
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brython",
"version": "3.12.1",
"version": "3.12.2",
"description": "Python 3 in the browser",
"main": "brython.js",
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions scripts/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
README_page = os.path.join(pdir, "README.md")
with open(README_page, encoding="utf-8") as f:
content = f.read()
content = re.sub("npm/brython@\d\.\d+\.\d+", "npm/brython@" + vname,
content = re.sub(r"npm/brython@\d\.\d+\.\d+", "npm/brython@" + vname,
content)
content = re.sub("npm/brython@\d\.\d+\s", "npm/brython@" + vname2,
content = re.sub(r"npm/brython@\d\.\d+\s", "npm/brython@" + vname2,
content)
content = re.sub("npm/brython@\d\.\d+\.x", "npm/brython@" + vname2 + '.x',
content = re.sub(r"npm/brython@\d\.\d+\.x", "npm/brython@" + vname2 + '.x',
content)
content = re.sub("npm/brython@\d\s", "npm/brython@" + vname1,
content = re.sub(r"npm/brython@\d\s", "npm/brython@" + vname1,
content)
content = re.sub("npm/brython@\d\.x\.y", "npm/brython@" + vname1 + '.x.y',
content = re.sub(r"npm/brython@\d\.x\.y", "npm/brython@" + vname1 + '.x.y',
content)
content = re.sub("3\.\d+\.x", f'3.{version.version[1]}.x', content)
content = re.sub(r"3\.\d+\.x", f'3.{version.version[1]}.x', content)

with open(README_page, "w", encoding="utf-8") as out:
out.write(content)
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
version = [3, 12, 0, "final", 0]

# Brython version
implementation = [3, 12, 1, "dev", 0]
implementation = [3, 12, 2, "dev", 0]
2 changes: 1 addition & 1 deletion setup/brython/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.12.1'
__version__ = '3.12.2'
2 changes: 1 addition & 1 deletion setup/brython/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import argparse
import pathlib

implementation = "3.12.1"
implementation = "3.12.2"


def main():
Expand Down
2 changes: 1 addition & 1 deletion setup/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "brython"
version = "3.12.1"
version = "3.12.2"
authors = [
{ name="Pierre Quentel", email="[email protected]" },
]
Expand Down
6 changes: 3 additions & 3 deletions www/doc/en/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Brython scripts from a CDN:
```

The minor version can be specified with `[email protected]` and the micro version
with `[email protected].1`.
with `[email protected].2`.

Brython is also available with cdnjs:

```xml
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.1/brython.min.js">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.2/brython.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.1/brython_stdlib.min.js">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.2/brython_stdlib.min.js">
</script>
```

Expand Down
6 changes: 3 additions & 3 deletions www/doc/fr/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ d'inclure les scripts Brython dans la page HTML depuis un CDN.
```

On peut aussi préciser la version mineure avec `[email protected]` et la version
micro avec `[email protected].1`.
micro avec `[email protected].2`.

Brython est également disponible sur cdnjs:

```xml
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.1/brython.min.js">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.2/brython.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.1/brython_stdlib.min.js">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.12.2/brython_stdlib.min.js">
</script>
```

Expand Down
10 changes: 5 additions & 5 deletions www/src/brython.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// brython.js brython.info
// version [3, 12, 0, 'final', 0]
// implementation [3, 12, 1, 'dev', 0]
// implementation [3, 12, 2, 'dev', 0]
// version compiled from commented, indented source files at
// github.com/brython-dev/brython
var __BRYTHON__=globalThis.__BRYTHON__ ||{}
Expand Down Expand Up @@ -167,10 +167,10 @@ $B.digits_starts=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430
$B.unicode_casefold={223:[115,115],304:[105,775],329:[700,110],496:[106,780],912:[953,776,769],944:[965,776,769],1415:[1381,1410],7830:[104,817],7831:[116,776],7832:[119,778],7833:[121,778],7834:[97,702],7838:[223],8016:[965,787],8018:[965,787,768],8020:[965,787,769],8022:[965,787,834],8064:[7936,953],8065:[7937,953],8066:[7938,953],8067:[7939,953],8068:[7940,953],8069:[7941,953],8070:[7942,953],8071:[7943,953],8072:[8064],8073:[8065],8074:[8066],8075:[8067],8076:[8068],8077:[8069],8078:[8070],8079:[8071],8080:[7968,953],8081:[7969,953],8082:[7970,953],8083:[7971,953],8084:[7972,953],8085:[7973,953],8086:[7974,953],8087:[7975,953],8088:[8080],8089:[8081],8090:[8082],8091:[8083],8092:[8084],8093:[8085],8094:[8086],8095:[8087],8096:[8032,953],8097:[8033,953],8098:[8034,953],8099:[8035,953],8100:[8036,953],8101:[8037,953],8102:[8038,953],8103:[8039,953],8104:[8096],8105:[8097],8106:[8098],8107:[8099],8108:[8100],8109:[8101],8110:[8102],8111:[8103],8114:[8048,953],8115:[945,953],8116:[940,953],8118:[945,834],8119:[945,834,953],8124:[8115],8130:[8052,953],8131:[951,953],8132:[942,953],8134:[951,834],8135:[951,834,953],8140:[8131],8146:[953,776,768],8147:[912],8150:[953,834],8151:[953,776,834],8162:[965,776,768],8163:[944],8164:[961,787],8166:[965,834],8167:[965,776,834],8178:[8060,953],8179:[969,953],8180:[974,953],8182:[969,834],8183:[969,834,953],8188:[8179],64256:[102,102],64257:[102,105],64258:[102,108],64259:[102,102,105],64260:[102,102,108],64261:[64262],64262:[115,116],64275:[1396,1398],64276:[1396,1381],64277:[1396,1387],64278:[1406,1398],64279:[1396,1389]}
$B.unicode_bidi_whitespace=[9,10,11,12,13,28,29,30,31,32,133,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8287,12288]
;
__BRYTHON__.implementation=[3,12,1,'dev',0]
__BRYTHON__.implementation=[3,12,2,'dev',0]
__BRYTHON__.version_info=[3,12,0,'final',0]
__BRYTHON__.compiled_date="2024-03-03 17:06:55.562644"
__BRYTHON__.timestamp=1709482015562
__BRYTHON__.compiled_date="2024-03-03 21:41:29.884662"
__BRYTHON__.timestamp=1709498489882
__BRYTHON__.builtin_module_names=["_ajax","_ast","_base64","_binascii","_io_classes","_json","_jsre","_locale","_multiprocessing","_posixsubprocess","_profile","_random","_sre","_sre_utils","_string","_strptime","_svg","_symtable","_tokenize","_webcomponent","_webworker","_zlib_utils","array","builtins","dis","encoding_cp932","encoding_cp932_v2","hashlib","html_parser","marshal","math","modulefinder","posix","pyexpat","python_re","python_re_new","unicodedata"]
;

Expand Down Expand Up @@ -10763,7 +10763,7 @@ throw _b_.TypeError.$factory(`object ${$B.class_name(obj)} `+
`can't be used in 'await' expression`)}})(__BRYTHON__)
;

(function($B){$B.builtin_class_flags={builtins:{1074287874:['Warning','StopAsyncIteration','ProcessLookupError','ImportWarning','Exception','RuntimeError','KeyError','KeyboardInterrupt','UnicodeTranslateError','EncodingWarning','OSError','AssertionError','BytesWarning','UnicodeError','TabError','NameError','BaseExceptionGroup','SyntaxWarning','ReferenceError','UserWarning','FutureWarning','IndentationError','LookupError','TimeoutError','RuntimeWarning','RecursionError','FileNotFoundError','IsADirectoryError','UnicodeWarning','IOError','MemoryError','IndexError','PermissionError','SystemError','PendingDeprecationWarning','EnvironmentError','FileExistsError','ArithmeticError','SyntaxError','InterruptedError','BrokenPipeError','BaseException','ConnectionRefusedError','FloatingPointError','ChildProcessError','EOFError','UnboundLocalError','BufferError','SystemExit','NotImplementedError','ValueError','ConnectionResetError','NotADirectoryError','UnicodeDecodeError','WindowsError','ZeroDivisionError','ConnectionAbortedError','ResourceWarning','AttributeError','ImportError','BlockingIOError','GeneratorExit','ConnectionError','UnicodeEncodeError','TypeError','OverflowError','StopIteration','ModuleNotFoundError','DeprecationWarning'],1073763848:['ExceptionGroup'],21500162:['bool'],4723970:['bytearray','float'],138941698:['bytes'],546050:['reversed','classmethod','super','staticmethod','enumerate','property','map','zip','filter'],529666:['complex','object'],541611330:['dict'],4740354:['set','frozenset'],21501186:['int'],38294818:['list'],545058:['memoryview'],528674:['range'],545026:['slice'],273159426:['str'],71849250:['tuple'],2156420354:['type'],},types:{545154:['frame','generator','method-wrapper','member_descriptor','coroutine','async_generator','classmethod_descriptor','getset_descriptor'],547202:['builtin_function_or_method'],545026:['cell','traceback'],528642:['NoneType','NotImplementedType','code','ellipsis'],678146:['function'],545090:['mappingproxy'],678274:['method_descriptor'],547074:['method'],546050:['module'],676226:['wrapper_descriptor'],}}})(__BRYTHON__)
(function($B){$B.builtin_class_flags={builtins:{1074287874:['UnicodeError','NameError','NotADirectoryError','TabError','IndentationError','BlockingIOError','SystemError','BaseException','EnvironmentError','InterruptedError','ImportError','SystemExit','PermissionError','UserWarning','SyntaxWarning','EncodingWarning','Exception','ProcessLookupError','RecursionError','ArithmeticError','IOError','ReferenceError','ImportWarning','SyntaxError','TypeError','ConnectionResetError','StopIteration','BrokenPipeError','IndexError','FutureWarning','BytesWarning','FloatingPointError','UnicodeTranslateError','IsADirectoryError','LookupError','GeneratorExit','TimeoutError','UnicodeEncodeError','ConnectionAbortedError','ValueError','AssertionError','ChildProcessError','PendingDeprecationWarning','RuntimeError','UnicodeWarning','AttributeError','ResourceWarning','OSError','WindowsError','StopAsyncIteration','EOFError','DeprecationWarning','FileExistsError','ModuleNotFoundError','BufferError','Warning','ConnectionError','KeyboardInterrupt','NotImplementedError','FileNotFoundError','ZeroDivisionError','ConnectionRefusedError','UnboundLocalError','RuntimeWarning','UnicodeDecodeError','MemoryError','KeyError','OverflowError','BaseExceptionGroup'],1073763848:['ExceptionGroup'],21500162:['bool'],4723970:['bytearray','float'],138941698:['bytes'],546050:['property','staticmethod','map','classmethod','reversed','filter','enumerate','super','zip'],529666:['object','complex'],541611330:['dict'],4740354:['set','frozenset'],21501186:['int'],38294818:['list'],545058:['memoryview'],528674:['range'],545026:['slice'],273159426:['str'],71849250:['tuple'],2156420354:['type'],},types:{545154:['classmethod_descriptor','coroutine','generator','getset_descriptor','async_generator','member_descriptor','frame','method-wrapper'],547202:['builtin_function_or_method'],545026:['traceback','cell'],528642:['NoneType','ellipsis','NotImplementedType','code'],678146:['function'],545090:['mappingproxy'],678274:['method_descriptor'],547074:['method'],546050:['module'],676226:['wrapper_descriptor'],}}})(__BRYTHON__)
;
(function($B){var _b_=$B.builtins
var update=$B.update_obj=function(mod,data){for(let attr in data){mod[attr]=data[attr]}}
Expand Down
2 changes: 1 addition & 1 deletion www/src/brython.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions www/src/py_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
(function($B){
$B.builtin_class_flags = {
builtins: {
1074287874: ['ReferenceError', 'SyntaxWarning', 'ConnectionAbortedError', 'Exception', 'OSError', 'KeyboardInterrupt', 'PermissionError', 'UnicodeTranslateError', 'InterruptedError', 'RuntimeWarning', 'Warning', 'SystemExit', 'ImportWarning', 'BaseException', 'FileNotFoundError', 'GeneratorExit', 'NotImplementedError', 'LookupError', 'WindowsError', 'IsADirectoryError', 'StopAsyncIteration', 'BlockingIOError', 'DeprecationWarning', 'StopIteration', 'BufferError', 'MemoryError', 'BaseExceptionGroup', 'FileExistsError', 'ModuleNotFoundError', 'ProcessLookupError', 'OverflowError', 'SyntaxError', 'EOFError', 'SystemError', 'RuntimeError', 'AssertionError', 'BytesWarning', 'EncodingWarning', 'RecursionError', 'ArithmeticError', 'PendingDeprecationWarning', 'TabError', 'UnboundLocalError', 'UnicodeDecodeError', 'NotADirectoryError', 'ResourceWarning', 'ChildProcessError', 'UnicodeError', 'BrokenPipeError', 'EnvironmentError', 'FloatingPointError', 'ValueError', 'UnicodeWarning', 'IndexError', 'NameError', 'IndentationError', 'ConnectionRefusedError', 'AttributeError', 'ConnectionError', 'FutureWarning', 'IOError', 'KeyError', 'TypeError', 'ConnectionResetError', 'TimeoutError', 'UnicodeEncodeError', 'ZeroDivisionError', 'ImportError', 'UserWarning'],
1074287874: ['UnicodeError', 'NameError', 'NotADirectoryError', 'TabError', 'IndentationError', 'BlockingIOError', 'SystemError', 'BaseException', 'EnvironmentError', 'InterruptedError', 'ImportError', 'SystemExit', 'PermissionError', 'UserWarning', 'SyntaxWarning', 'EncodingWarning', 'Exception', 'ProcessLookupError', 'RecursionError', 'ArithmeticError', 'IOError', 'ReferenceError', 'ImportWarning', 'SyntaxError', 'TypeError', 'ConnectionResetError', 'StopIteration', 'BrokenPipeError', 'IndexError', 'FutureWarning', 'BytesWarning', 'FloatingPointError', 'UnicodeTranslateError', 'IsADirectoryError', 'LookupError', 'GeneratorExit', 'TimeoutError', 'UnicodeEncodeError', 'ConnectionAbortedError', 'ValueError', 'AssertionError', 'ChildProcessError', 'PendingDeprecationWarning', 'RuntimeError', 'UnicodeWarning', 'AttributeError', 'ResourceWarning', 'OSError', 'WindowsError', 'StopAsyncIteration', 'EOFError', 'DeprecationWarning', 'FileExistsError', 'ModuleNotFoundError', 'BufferError', 'Warning', 'ConnectionError', 'KeyboardInterrupt', 'NotImplementedError', 'FileNotFoundError', 'ZeroDivisionError', 'ConnectionRefusedError', 'UnboundLocalError', 'RuntimeWarning', 'UnicodeDecodeError', 'MemoryError', 'KeyError', 'OverflowError', 'BaseExceptionGroup'],
1073763848: ['ExceptionGroup'],
21500162: ['bool'],
4723970: ['bytearray', 'float'],
138941698: ['bytes'],
546050: ['zip', 'property', 'enumerate', 'classmethod', 'map', 'staticmethod', 'reversed', 'super', 'filter'],
546050: ['property', 'staticmethod', 'map', 'classmethod', 'reversed', 'filter', 'enumerate', 'super', 'zip'],
529666: ['object', 'complex'],
541611330: ['dict'],
4740354: ['set', 'frozenset'],
Expand All @@ -21,10 +21,10 @@ $B.builtin_class_flags = {
2156420354: ['type'],
},
types: {
545154: ['method-wrapper', 'async_generator', 'classmethod_descriptor', 'member_descriptor', 'getset_descriptor', 'coroutine', 'generator', 'frame'],
545154: ['classmethod_descriptor', 'coroutine', 'generator', 'getset_descriptor', 'async_generator', 'member_descriptor', 'frame', 'method-wrapper'],
547202: ['builtin_function_or_method'],
545026: ['traceback', 'cell'],
528642: ['NotImplementedType', 'ellipsis', 'code', 'NoneType'],
528642: ['NoneType', 'ellipsis', 'NotImplementedType', 'code'],
678146: ['function'],
545090: ['mappingproxy'],
678274: ['method_descriptor'],
Expand Down
6 changes: 3 additions & 3 deletions www/src/version_info.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__BRYTHON__.implementation = [3, 12, 1, 'dev', 0]
__BRYTHON__.implementation = [3, 12, 2, 'dev', 0]
__BRYTHON__.version_info = [3, 12, 0, 'final', 0]
__BRYTHON__.compiled_date = "2024-03-03 17:06:55.562644"
__BRYTHON__.timestamp = 1709482015562
__BRYTHON__.compiled_date = "2024-03-03 21:41:29.884662"
__BRYTHON__.timestamp = 1709498489882
__BRYTHON__.builtin_module_names = ["_ajax",
"_ast",
"_base64",
Expand Down
Loading

0 comments on commit 8ed4e28

Please sign in to comment.