packaging: make "mercurial.defaultrc" a key in package_data
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 02 Aug 2020 10:08:18 -0700
changeset 45269 8bc9d045005a
parent 45268 3c2fae87bd5a
child 45270 c8655782ef19
packaging: make "mercurial.defaultrc" a key in package_data Before this patch, we had a `mercurial` key with a `defaultrc/*.rc` value. It seems more correct to have a `mercurial.defaultrc` key with a `*.rc` value since `mercurial.defaultrc` it became a pacakge in 1390bb81163e (help: get helptext/ data from `resources` module if available, 2019-12-12). Differential Revision: https://phab.mercurial-scm.org/D8856
setup.py
--- a/setup.py	Thu Jul 30 12:22:41 2020 -0700
+++ b/setup.py	Sun Aug 02 10:08:18 2020 -0700
@@ -1614,11 +1614,8 @@
     msvccompiler.MSVCCompiler = HackedMSVCCompiler
 
 packagedata = {
-    'mercurial': [
-        'locale/*/LC_MESSAGES/hg.mo',
-        'defaultrc/*.rc',
-        'dummycert.pem',
-    ],
+    'mercurial': ['locale/*/LC_MESSAGES/hg.mo', 'dummycert.pem',],
+    'mercurial.defaultrc': ['*.rc',],
     'mercurial.helptext': ['*.txt',],
     'mercurial.helptext.internals': ['*.txt',],
 }