Overview
Comment: | move name_to_fn and get_readme into MetaUtils |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
63fdedee18b22b1c6c904b43e044800c |
User & Date: | mario on 2022-11-01 18:50:32 |
Other Links: | manifest | tags |
Context
2022-11-01
| ||
23:29 | use dict.pop() instead of get+del check-in: 900b323b25 user: mario tags: trunk | |
18:50 | move name_to_fn and get_readme into MetaUtils check-in: 63fdedee18 user: mario tags: trunk | |
16:57 | add new comment extraction rx check-in: 3ad4b252ac user: mario tags: trunk | |
Changes
Modified html/bind.html from [58b168e720] to [4883e6f315].
︙ | |||
97 98 99 100 101 102 103 | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - + | </tr> </tbody> </table> <p>Module should be a package, as in a directory and init <code>plugins/__init__.py</code>. Ideally this module was already imported in main. But parameter may be a string.</p> <p>This could be invoked multiple times for the package name to append further path= arguments (=./contrib/, =/usr/share/app/extenstions/, or a .pyz). Which |
︙ |
Modified html/setup.html from [e6c6068172] to [ac7e57ed41].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | - - - - - - - - - - - - | <section> </section> <section> </section> <section> <h2 class="section-title" id="header-functions">Functions</h2> <dl> |
︙ | |||
97 98 99 100 101 102 103 104 105 106 107 108 109 110 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + + + + + + + + + + + + | <dl> <dt id="pluginconf.setup.MetaUtils.datafiles_man"><code class="name flex"> <span>def <span class="ident">datafiles_man</span></span>(<span>)</span> </code></dt> <dd> <div class="desc"><p>data_files=</p></div> </dd> <dt id="pluginconf.setup.MetaUtils.get_readme"><code class="name flex"> <span>def <span class="ident">get_readme</span></span>(<span>prefix='long_')</span> </code></dt> <dd> <div class="desc"><p>get README.md contents</p></div> </dd> <dt id="pluginconf.setup.MetaUtils.name_to_fn"><code class="name flex"> <span>def <span class="ident">name_to_fn</span></span>(<span>name)</span> </code></dt> <dd> <div class="desc"><p>find primary entry point.py from package name</p></div> </dd> </dl> <h3>Methods</h3> <dl> <dt id="pluginconf.setup.MetaUtils.classifiers"><code class="name flex"> <span>def <span class="ident">classifiers</span></span>(<span>self)</span> </code></dt> <dd> |
︙ | |||
131 132 133 134 135 136 137 | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | - + | <dt id="pluginconf.setup.MetaUtils.install_requires"><code class="name flex"> <span>def <span class="ident">install_requires</span></span>(<span>self)</span> </code></dt> <dd> <div class="desc"><p>depends: python:module, pip:module</p></div> </dd> <dt id="pluginconf.setup.MetaUtils.plugin_doc"><code class="name flex"> |
︙ | |||
178 179 180 181 182 183 184 | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | - - + + | <li><h3>Super-module</h3> <ul> <li><code><a title="pluginconf" href="index.html">pluginconf</a></code></li> </ul> </li> <li><h3><a href="#header-functions">Functions</a></h3> <ul class=""> |
︙ |
Modified pluginconf/__init__.py from [7148596eca] to [295be38bfd].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - + | # encoding: utf-8 # api: python ##type: extract # category: config # title: Plugin configuration # description: Read meta data, pyz/package contents, module locating |
︙ |
Modified pluginconf/bind.py from [fcff8bd0e5] to [f6f6f09ee5].
︙ | |||
167 168 169 170 171 172 173 | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | - + | | **Returns** | None | - | Module should be a package, as in a directory and init `plugins/__init__.py`. Ideally this module was already imported in main. But parameter may be a string. This could be invoked multiple times for the package name to append further path= arguments (=./contrib/, =/usr/share/app/extenstions/, or a .pyz). Which |
︙ |
Modified pluginconf/flit.py from [7e6be741f0] to [50d8d8a6ee].
︙ | |||
151 152 153 154 155 156 157 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | - - - + + + - - | "obsoletes_dist": [], "requires_external": [], "provides_extra": [], } #print(meta) # comment/readme |
︙ |
Modified pluginconf/setup.py from [69618d8a4a] to [eeec59e038].
︙ | |||
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + | import os import re import glob import pprint import pluginconf |
︙ | |||
234 235 236 237 238 239 240 | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | - - - - + | if not key in kwargs: kwargs[key] = val # package name if "name" not in kwargs and kwargs.get("packages"): kwargs["name"] = kwargs["packages"][0] |
︙ | |||
268 269 270 271 272 273 274 275 276 277 278 279 280 281 | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | + + + | if "depends" in pmd: kwargs["python_requires"] = pmd.python_requires() if "depends" in pmd and not kwargs["install_requires"]: kwargs["install_requires"] = pmd.install_requires() # suggests: if "suggests" in pmd and not kwargs["extras_require"]: kwargs["extras_require"].update(pmd.extras_require()) # read README if field empty or says `@README` if re.match("^$|^[@./]*README.{0,5}$", kwargs.get("long_description", "")): kwargs.update(pmd.get_readme()) # doc: if not kwargs.get("long_description"): kwargs.update(pmd.plugin_doc()) # keywords= if "keywords" not in kwargs: kwargs["keywords"] = pmd.get_keywords() |
︙ |