[Updated] [+ ] D8858: packaging: include templates with their package as key in package_data
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Aug 4 02:18:11 UTC 2020
martinvonz updated this revision to Diff 22239.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8858?vs=22168&id=22239
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8858/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8858
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1627,10 +1627,8 @@
for root in ('templates',):
for curdir, dirs, files in os.walk(os.path.join('mercurial', root)):
- curdir = curdir.split(os.sep, 1)[1]
- for f in filter(ordinarypath, files):
- f = os.path.join(curdir, f)
- packagedata['mercurial'].append(f)
+ packagename = curdir.replace(os.sep, '.')
+ packagedata[packagename] = list(filter(ordinarypath, files))
datafiles = []
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/2ac391b6/attachment.html>
More information about the Mercurial-patches
mailing list