[Updated] [+ ] D8855: packaging: mark mercurial.templates and subdirs as packages
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Aug 4 06:59:59 UTC 2020
martinvonz updated this revision to Diff 22240.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8855?vs=22165&id=22240
BRANCH
default
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://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200804/63d9d08b/attachment-0001.html>
More information about the Mercurial-patches
mailing list