##// END OF EJS Templates
Let %autoreload work on modules with frozen dataclasses...
Let %autoreload work on modules with frozen dataclasses See Issue #12411 and Issue #12185. The problem is that a frozen `dataclasses.dataclass` overrides the `__setattr__()` method, so updating its `__class__` member requires going through the base `object` class. This seems to fix the problem.

File last commit:

r27319:02470596
r27716:becb905f
Show More
build_release
21 lines | 493 B | text/plain | TextLexer
#!/usr/bin/env python3
"""IPython release build script.
"""
import os
import sys
from toollib import sh, get_ipdir, cd, build_command
def build_release():
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Build source and binary distros
sh(build_command)
# don't try to change, xz, bz2 deprecated.
sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz']))
if __name__ == '__main__':
build_release()