Skip to content

Commit

Permalink
[release] 0.13.8 -- hop 0.1.0 alpha 22
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-m committed Jan 15, 2025
1 parent 58e8629 commit f80b503
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.13.8 -- hop 0.1.0 alpha 22 (2025-01-15)

* Update licence date. (HEAD -> main)
* [hop] Fix: add missing kwargs in arguments transmitted to the parent table. (ddbe18f)
* Bump virtualenv from 20.25.1 to 20.26.6 (e09fc9e)
* [github/CI] Use ubuntu-22 (Python 3.7 not present on ubuntu-24). (38212e8)

# 0.13.7 -- hop 0.1.0 alpha 21 (2024-11-29)

* [hop] Fix bug with pg enum types. (3e3e0fe)
Expand Down
13 changes: 9 additions & 4 deletions half_orm/packager/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import importlib
import os
import re
import shutil
import sys
import time
from keyword import iskeyword
Expand Down Expand Up @@ -147,11 +148,15 @@ def __update_init_files(package_dir, files_list, warning):
if re.findall(SKIP, reldir):
continue
all_ = __get_modules_list(dir, files_list, files)
with open(os.path.join(dir, INIT_PY), 'w', encoding='utf-8') as init_file:
init_file.write(f'"""{warning}"""\n\n')
dirs = next(os.walk(dir))[1]

all_ = ",\n ".join([f"'{elt}'" for elt in all_])
init_file.write(f'__all__ = [\n {all_}\n]\n')
if len(all_) == 0 and dirs == ['__pycache__']:
shutil.rmtree(dir)
else:
with open(os.path.join(dir, INIT_PY), 'w', encoding='utf-8') as init_file:
init_file.write(f'"""{warning}"""\n\n')
all_ = ",\n ".join([f"'{elt}'" for elt in all_])
init_file.write(f'__all__ = [\n {all_}\n]\n')

def __get_inheritance_info(rel, package_name):
"""Returns inheritance informations for the rel relation.
Expand Down
2 changes: 1 addition & 1 deletion half_orm/packager/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0a21
0.1.0a22
2 changes: 1 addition & 1 deletion half_orm/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.7
0.13.8

0 comments on commit f80b503

Please sign in to comment.