[Updated] D8855: packaging: mark mercurial.templates and subdirs as packages
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Aug 6 00:48:07 UTC 2020
Closed by commit rHG41ff8a463e10: packaging: mark mercurial.templates and subdirs as packages (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8855?vs=22240&id=22285
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8855/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8855
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1268,6 +1268,7 @@
'mercurial.hgweb',
'mercurial.interfaces',
'mercurial.pure',
+ 'mercurial.templates',
'mercurial.thirdparty',
'mercurial.thirdparty.attr',
'mercurial.thirdparty.zope',
@@ -1292,6 +1293,13 @@
'hgext3rd',
'hgdemandimport',
]
+
+for name in os.listdir(os.path.join('mercurial', 'templates')):
+ if name != '__pycache__' and os.path.isdir(
+ os.path.join('mercurial', 'templates', name)
+ ):
+ packages.append('mercurial.templates.%s' % name)
+
if sys.version_info[0] == 2:
packages.extend(
[
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200806/bfb20781/attachment-0002.html>
More information about the Mercurial-patches
mailing list