D7376: help: create packages for the help text

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Thu Nov 14 22:14:22 EST 2019


indygreg added a comment.


  FWIW I have a series of patches somewhere that teach the help, templates, etc subsystems to use the `importlib.resources` API if available.
  
  I also have plans to enable PyOxidizer to package resources with more flexibility so we wouldn't necessarily have to rename a bunch of files and add `__init__.py` files to mark directories as packages so `importlib.resources` *just works*. I haven't gotten around to it yet. I figured if Mercurial has resources files like this, other projects would, so I would need to teach PyOxidizer to handle wonky layouts like this.
  
  But if we want to continue and support the `importlib.resources` API so things work with the current state of PyOxidizer, that's fine by me. It just isn't strictly required if there is resistance to mass renaming files and conforming to the wonky requirements imposed today.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7376/new/

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

To: mharbison72, #hg-reviewers, marmoute
Cc: indygreg, martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list