D8854: templates: add __init__.py files to templates/ dirs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

D8854: templates: add __init__.py files to templates/ dirs

pulkit (Pulkit Goyal)
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is necessary for them to be loaded with `importlib.resources`,
  which we want to do for PyOxidizer and similar. `importlib.resources`
  cannot read resources from submodules
  (`resources.open_binary('mercurial.templates', 'coal/map')` is not
  valid), so we need one `__init__.py` per directory.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8854

AFFECTED FILES
  mercurial/templates/__init__.py
  mercurial/templates/atom/__init__.py
  mercurial/templates/coal/__init__.py
  mercurial/templates/gitweb/__init__.py
  mercurial/templates/json/__init__.py
  mercurial/templates/monoblue/__init__.py
  mercurial/templates/paper/__init__.py
  mercurial/templates/raw/__init__.py
  mercurial/templates/rss/__init__.py
  mercurial/templates/spartan/__init__.py
  mercurial/templates/static/__init__.py

CHANGE DETAILS

diff --git a/mercurial/templates/static/__init__.py b/mercurial/templates/static/__init__.py
new file mode 100644
diff --git a/mercurial/templates/spartan/__init__.py b/mercurial/templates/spartan/__init__.py
new file mode 100644
diff --git a/mercurial/templates/rss/__init__.py b/mercurial/templates/rss/__init__.py
new file mode 100644
diff --git a/mercurial/templates/raw/__init__.py b/mercurial/templates/raw/__init__.py
new file mode 100644
diff --git a/mercurial/templates/paper/__init__.py b/mercurial/templates/paper/__init__.py
new file mode 100644
diff --git a/mercurial/templates/monoblue/__init__.py b/mercurial/templates/monoblue/__init__.py
new file mode 100644
diff --git a/mercurial/templates/json/__init__.py b/mercurial/templates/json/__init__.py
new file mode 100644
diff --git a/mercurial/templates/gitweb/__init__.py b/mercurial/templates/gitweb/__init__.py
new file mode 100644
diff --git a/mercurial/templates/coal/__init__.py b/mercurial/templates/coal/__init__.py
new file mode 100644
diff --git a/mercurial/templates/atom/__init__.py b/mercurial/templates/atom/__init__.py
new file mode 100644
diff --git a/mercurial/templates/__init__.py b/mercurial/templates/__init__.py
new file mode 100644



To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel