shellman 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. shellman-1.0.2/CHANGELOG.md +237 -0
  2. shellman-1.0.2/CODE_OF_CONDUCT.md +84 -0
  3. shellman-1.0.2/CONTRIBUTING.md +122 -0
  4. {shellman-1.0.0 → shellman-1.0.2}/PKG-INFO +12 -10
  5. {shellman-1.0.0 → shellman-1.0.2}/README.md +3 -4
  6. shellman-1.0.2/config/coverage.ini +26 -0
  7. shellman-1.0.2/config/git-changelog.toml +9 -0
  8. shellman-1.0.2/config/mypy.ini +5 -0
  9. shellman-1.0.2/config/pytest.ini +14 -0
  10. shellman-1.0.2/config/ruff.toml +91 -0
  11. shellman-1.0.2/config/vscode/launch.json +57 -0
  12. shellman-1.0.2/config/vscode/settings.json +33 -0
  13. shellman-1.0.2/config/vscode/tasks.json +97 -0
  14. shellman-1.0.2/docs/.overrides/main.html +14 -0
  15. shellman-1.0.2/docs/.overrides/partials/comments.html +57 -0
  16. shellman-1.0.2/docs/.overrides/partials/path-item.html +22 -0
  17. shellman-1.0.2/docs/changelog.md +5 -0
  18. shellman-1.0.2/docs/code_of_conduct.md +5 -0
  19. shellman-1.0.2/docs/contributing.md +5 -0
  20. shellman-1.0.2/docs/credits.md +9 -0
  21. shellman-1.0.2/docs/css/material.css +4 -0
  22. shellman-1.0.2/docs/css/mkdocstrings.css +72 -0
  23. shellman-1.0.2/docs/index.md +7 -0
  24. shellman-1.0.2/docs/js/feedback.js +14 -0
  25. shellman-1.0.2/docs/license.md +11 -0
  26. shellman-1.0.2/docs/reference/api.md +9 -0
  27. shellman-1.0.2/docs/todo.md +24 -0
  28. shellman-1.0.2/docs/usage/index.md +351 -0
  29. shellman-1.0.2/docs/usage/plugins.md +115 -0
  30. shellman-1.0.2/docs/usage/syntax.md +75 -0
  31. shellman-1.0.2/docs/usage/tags.md +619 -0
  32. shellman-1.0.2/duties.py +212 -0
  33. shellman-1.0.2/mkdocs.yml +179 -0
  34. shellman-1.0.2/pyproject.toml +122 -0
  35. shellman-1.0.2/scripts/gen_credits.py +179 -0
  36. shellman-1.0.2/scripts/get_version.py +26 -0
  37. shellman-1.0.2/scripts/make +1 -0
  38. shellman-1.0.2/scripts/make.py +189 -0
  39. shellman-1.0.2/src/shellman/__init__.py +145 -0
  40. {shellman-1.0.0 → shellman-1.0.2}/src/shellman/__main__.py +1 -1
  41. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/cli.py +25 -16
  42. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/context.py +5 -2
  43. shellman-1.0.2/src/shellman/_internal/debug.py +107 -0
  44. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/reader.py +32 -15
  45. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/tags.py +64 -42
  46. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/__init__.py +16 -3
  47. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/helptext_function +15 -3
  48. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/manpage_function.groff +15 -3
  49. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/manpage_function.md +15 -3
  50. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/wikipage_function.md +15 -3
  51. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/filters.py +5 -2
  52. shellman-1.0.2/src/shellman/cli.py +17 -0
  53. shellman-1.0.2/src/shellman/context.py +17 -0
  54. shellman-1.0.2/src/shellman/py.typed +0 -0
  55. shellman-1.0.2/src/shellman/reader.py +17 -0
  56. shellman-1.0.2/src/shellman/tags.py +17 -0
  57. shellman-1.0.2/src/shellman/templates/__init__.py +17 -0
  58. shellman-1.0.2/src/shellman/templates/filters.py +17 -0
  59. shellman-1.0.2/tests/test_api.py +195 -0
  60. {shellman-1.0.0 → shellman-1.0.2}/tests/test_cli.py +38 -12
  61. {shellman-1.0.0 → shellman-1.0.2}/tests/test_context.py +1 -1
  62. {shellman-1.0.0 → shellman-1.0.2}/tests/test_reader.py +1 -1
  63. shellman-1.0.2/tests/test_tags.py +255 -0
  64. shellman-1.0.0/pyproject.toml +0 -113
  65. shellman-1.0.0/src/shellman/__init__.py +0 -19
  66. {shellman-1.0.0 → shellman-1.0.2}/LICENSE +0 -0
  67. /shellman-1.0.0/src/shellman/py.typed → /shellman-1.0.2/src/shellman/_internal/__init__.py +0 -0
  68. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/helptext +0 -0
  69. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/manpage.groff +0 -0
  70. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/manpage.md +0 -0
  71. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/usagetext +0 -0
  72. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/wikipage.md +0 -0
  73. {shellman-1.0.0/src/shellman → shellman-1.0.2/src/shellman/_internal}/templates/data/wikipage_toc.md +0 -0
  74. {shellman-1.0.0 → shellman-1.0.2}/tests/__init__.py +0 -0
  75. {shellman-1.0.0 → shellman-1.0.2}/tests/conftest.py +0 -0
  76. {shellman-1.0.0 → shellman-1.0.2}/tests/fakescripts/simple.sh +0 -0
@@ -0,0 +1,237 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ <!-- insertion marker -->
9
+ ## [1.0.2](https://github.com/pawamoy/shellman/releases/tag/1.0.2) - 2025-03-27
10
+
11
+ <small>[Compare with 1.0.1](https://github.com/pawamoy/shellman/compare/1.0.1...1.0.2)</small>
12
+
13
+ ### Deprecations
14
+
15
+ Submodules are deprecated, import from the top-level `shellman` module instead.
16
+
17
+ ### Bug Fixes
18
+
19
+ - Return correct tag instances from `from_lines`, fixing parsing of `file` tags (value and description) ([e597d9d](https://github.com/pawamoy/shellman/commit/e597d9d33bc6767fb653db37b910607f1d3f476d) by Timothée Mazzucotelli). [Issue-mkdocstrings-shell-3](https://github.com/mkdocstrings/shell/issues/3)
20
+
21
+ ### Code Refactoring
22
+
23
+ - Re-expose submodules as deprecated ([c8f6676](https://github.com/pawamoy/shellman/commit/c8f66760ceb1428a94543ddbdab2e2c8111c3784) by Timothée Mazzucotelli).
24
+ - Move submodules under internal folder, sync API and docs ([60de99f](https://github.com/pawamoy/shellman/commit/60de99f3df4e13e2321a84797a4e3aaa103efdd0) by Timothée Mazzucotelli).
25
+
26
+ ## [1.0.1](https://github.com/pawamoy/shellman/releases/tag/1.0.1) - 2024-11-25
27
+
28
+ <small>[Compare with 1.0.0](https://github.com/pawamoy/shellman/compare/1.0.0...1.0.1)</small>
29
+
30
+ ### Build
31
+
32
+ - Drop support for Python 3.8 ([3675ff8](https://github.com/pawamoy/shellman/commit/3675ff8649f3925c60714e20e114e63e3230cc2c) by Timothée Mazzucotelli).
33
+
34
+ ### Bug Fixes
35
+
36
+ - Add missing rendering of functions stdin/stdout/stderr ([d7fc017](https://github.com/pawamoy/shellman/commit/d7fc0177396858f5078c58f25ceedc849053fc5d) by Timothée Mazzucotelli). [Issue-37](https://github.com/pawamoy/shellman/issues/37)
37
+
38
+ ## [1.0.0](https://github.com/pawamoy/shellman/releases/tag/1.0.0) - 2023-09-03
39
+
40
+ <small>[Compare with 0.4.1](https://github.com/pawamoy/shellman/compare/0.4.1...1.0.0)</small>
41
+
42
+ It has been a long time since the last release, and the last time I worked on this project.
43
+ I've updated the project with my latest template. Support for Python 2 is dropped.
44
+ I took the opportunity to privatize most of the API. I'll see in a later version
45
+ if there is a need to expose a main `parse` function or similar, to extract
46
+ information from a given file.
47
+
48
+ ### Breaking Changes
49
+
50
+ - `shellman.reader.DocLine.doc_type`: Public object points to a different kind of object: function -> attribute
51
+ - `shellman.reader.preprocess_stream`: Public object was removed
52
+ - `shellman.reader.preprocess_lines`: Public object was removed
53
+ - `shellman.reader.process_blocks`: Public object was removed
54
+ - `shellman.reader.merge`: Public object was removed
55
+ - `shellman.context.get_cli_context`: Public object was removed
56
+ - `shellman.context.get_env_context`: Public object was removed
57
+ - `shellman.context.get_file_context`: Public object was removed
58
+ - `shellman.context.get_context`: Public object was removed
59
+ - `shellman.context.update`: Public object was removed
60
+ - `shellman.cli.get_context`: Public object was removed
61
+ - `shellman.cli.update`: Public object was removed
62
+ - `shellman.cli.merge`: Public object was removed
63
+ - `shellman.cli.valid_file`: Public object was removed
64
+ - `shellman.cli.render`: Public object was removed
65
+ - `shellman.cli.write`: Public object was removed
66
+ - `shellman.cli.common_ancestor`: Public object was removed
67
+ - `shellman.cli.is_format_string`: Public object was removed
68
+ - `shellman.cli.guess_filename`: Public object was removed
69
+ - `shellman.cli.output_name_variables`: Public object was removed
70
+ - `shellman.cli.get_vcs_root`: Public object was removed
71
+ - `shellman.cli.main(argv)`: Parameter was removed
72
+ - `shellman.templates.get_builtin_path`: Public object was removed
73
+ - `shellman.templates.get_env`: Public object was removed
74
+ - `shellman.templates.get_custom_template`: Public object was removed
75
+ - `shellman.templates.load_plugin_templates`: Public object was removed
76
+ - `shellman.templates.names`: Public object was removed
77
+ - `shellman.templates.parser_choices`: Public object was removed
78
+ - `shellman.templates.filters.do_groffauto(escape)`: Parameter kind was changed: positional or keyword -> keyword-only
79
+ - `shellman.templates.filters.do_smartwrap(indentfirst)`: Parameter kind was changed: positional or keyword -> keyword-only
80
+ - `shellman.templates.filters.do_format(string)`: Parameter was added as required
81
+ - `shellman.templates.filters.do_groupby(sort)`: Parameter kind was changed: positional or keyword -> keyword-only
82
+
83
+ ### Bug Fixes
84
+
85
+ - Update for Python 3 and new versions of dependencies ([e16c46f](https://github.com/pawamoy/shellman/commit/e16c46f0a72c8161d745851182379a53f78f242e) by Timothée Mazzucotelli).
86
+
87
+ ### Code Refactoring
88
+
89
+ - Rewrite tag classes as dataclasses ([f1780d4](https://github.com/pawamoy/shellman/commit/f1780d473ae9a25b52e49614cfc8a866024bcaf7) by Timothée Mazzucotelli).
90
+
91
+ ## [0.4.1](https://github.com/pawamoy/shellman/tags/0.4.1) - 2018-10-10
92
+
93
+ <small>[Compare with 0.4.0](https://github.com/pawamoy/shellman/compare/0.4.0...0.4.1)</small>
94
+
95
+ ### Fixed
96
+ - Fix `body` filter for Python 2 ([ce7d0ef](https://github.com/pawamoy/shellman/commit/ce7d0ef1a4b6f7365580d06ff064504c38247d01)).
97
+
98
+ ## [0.4.0](https://github.com/pawamoy/shellman/tags/0.4.0) - 2018-09-28
99
+
100
+ <small>[Compare with 0.3.4](https://github.com/pawamoy/shellman/compare/0.3.4...0.4.0)</small>
101
+
102
+ ### Added
103
+ - Add context variable to avoid escaping lines starting with given values ([742e023](https://github.com/pawamoy/shellman/commit/742e02321de656e80944d627a6cf727cbc6e66e0)).
104
+ - Add usagetext template ([a7c20fc](https://github.com/pawamoy/shellman/commit/a7c20fc751990c229018fc1b6c01835f9da5c193)).
105
+
106
+ ### Fixed
107
+ - Fix escape filter condition ([f32cd43](https://github.com/pawamoy/shellman/commit/f32cd43a0b4d88f841e7e5fee9633f7f772637e8)).
108
+ - Fix python 2 unicode decode error ([0040028](https://github.com/pawamoy/shellman/commit/0040028f245586bbdffe62b14218abc31539dc85)).
109
+ - Fix variables for output ([01155fb](https://github.com/pawamoy/shellman/commit/01155fbf3fcb4c1beb3ad867a428783ae647af57)).
110
+
111
+ ### Misc
112
+ - Improve error messages ([96ebb68](https://github.com/pawamoy/shellman/commit/96ebb68c01b7b132666bb900d7f20f2f1c296d65)).
113
+
114
+ ## [0.3.4](https://github.com/pawamoy/shellman/tags/0.3.4) - 2018-09-22
115
+
116
+ <small>[Compare with 0.3.3](https://github.com/pawamoy/shellman/compare/0.3.3...0.3.4)</small>
117
+
118
+ ### Fixed
119
+ - Fix writing UTF-8 contents to file for Python 2 ([9e99b23](https://github.com/pawamoy/shellman/commit/9e99b232d2c1171c9e3ee3b20f0f788b82d1d634)).
120
+
121
+ ### Misc
122
+ - Improve credits line ([f7a7cae](https://github.com/pawamoy/shellman/commit/f7a7cae8e1bf7363a73c127b542584e348dfae5c)).
123
+
124
+ ## [0.3.3](https://github.com/pawamoy/shellman/tags/0.3.3) - 2018-09-18
125
+
126
+ <small>[Compare with 0.3.2](https://github.com/pawamoy/shellman/compare/0.3.2...0.3.3)</small>
127
+
128
+ ### Fixed
129
+ - Fix manifest (missing setup.py) ([62ccfaf](https://github.com/pawamoy/shellman/commit/62ccfaf90c4bd301c625101763462bc0c5374567)).
130
+
131
+ ## [0.3.2](https://github.com/pawamoy/shellman/tags/0.3.2) - 2018-09-18
132
+
133
+ <small>[Compare with 0.3.1](https://github.com/pawamoy/shellman/compare/0.3.1...0.3.2)</small>
134
+
135
+ ### Misc
136
+ - Add logo and demo.svg to fix PyPI page ([1e06662](https://github.com/pawamoy/shellman/commit/1e066626e7bcfb919e4d0ce4508b9305a962551a)).
137
+
138
+ ## [0.3.1](https://github.com/pawamoy/shellman/tags/0.3.1) - 2018-09-18
139
+
140
+ <small>[Compare with 0.3.0](https://github.com/pawamoy/shellman/compare/0.3.0...0.3.1)</small>
141
+
142
+ ### Misc
143
+ - Reduce size of package, simplify manifest ([f123b53](https://github.com/pawamoy/shellman/commit/f123b53fc973e05db36f5370d48647d56c571dcf)).
144
+ - Switch documents to markdown ([f3917e9](https://github.com/pawamoy/shellman/commit/f3917e9c46566898681e075bbc45afb7151e015f)).
145
+
146
+ ## [0.3.0](https://github.com/pawamoy/shellman/tags/0.3.0) - 2018-09-17
147
+
148
+ <small>[Compare with 0.2.2](https://github.com/pawamoy/shellman/compare/0.2.2...0.3.0)</small>
149
+
150
+ ### Added
151
+ - Add credits in wikipage template ([e70b7c8](https://github.com/pawamoy/shellman/commit/e70b7c8fa4acef2acf1bd7a0dfd96383ef50fec4)).
152
+ - Add groupby_unsorted filter to improve option rendering ([2e42177](https://github.com/pawamoy/shellman/commit/2e421776319e8422ddf3191c98666e4c43e1ae16)).
153
+ - Add logo ([f9289a0](https://github.com/pawamoy/shellman/commit/f9289a0edbdc53ea16bfbc07bf4ac873ae8548f0)).
154
+ - Add new reader module ([ea13cfb](https://github.com/pawamoy/shellman/commit/ea13cfb4a31f9cee2f1a108fd9e1103cb5afda28)).
155
+ - Add option to smart_width to indent first line or not ([e625afb](https://github.com/pawamoy/shellman/commit/e625afbe1ba9a851bed40e4792d6fcd0e9fafab1)).
156
+ - Add vcsroot name variable ([f5db3b3](https://github.com/pawamoy/shellman/commit/f5db3b35f953a82eba64fc375e4f4638457b1e03)).
157
+
158
+ ### Changed
159
+ - Change README.rst to README.md ([4628e76](https://github.com/pawamoy/shellman/commit/4628e76bce717ea3ab47b7f29114caa7e1d50084)).
160
+
161
+ ### Fixed
162
+ - Fix code block ([de304ee](https://github.com/pawamoy/shellman/commit/de304eeb56ae2d3431ab6c5db9fdca7100ee2dbd)).
163
+ - Fix credits and readme url to gitlab plugins doc ([9958019](https://github.com/pawamoy/shellman/commit/9958019791d981ea566a1973c4f8aa47ae2d5ac2)).
164
+ - Fix get context from env ([f1e2296](https://github.com/pawamoy/shellman/commit/f1e2296646ecf523c559e7db3bdcd14779dd01fd)).
165
+ - Fix usage tag ([4a47431](https://github.com/pawamoy/shellman/commit/4a474311f748f70a07fceb8acfbabdaba634b3eb)).
166
+ - Fix wikipage template ([2f5a0ad](https://github.com/pawamoy/shellman/commit/2f5a0adf3ec8a28c242d1bcad426030fda9ac224)).
167
+
168
+ ### Removed
169
+ - Remove blank line in AUTHORS ([e414282](https://github.com/pawamoy/shellman/commit/e414282316518aa2a5f8895433f576d659720195)).
170
+ - Remove formatter options, enforce user behavior ([48c26d0](https://github.com/pawamoy/shellman/commit/48c26d03e328272b1001134c86be6d79e1736a90)).
171
+ - Remove MPL2.0 notices in sources (now ISC) ([87e92df](https://github.com/pawamoy/shellman/commit/87e92df8b9577968db090ac00bada17086368574)).
172
+ - Remove pyup file, remove option-description subtag (implicit) ([4a08fa1](https://github.com/pawamoy/shellman/commit/4a08fa1e42f5972cf462419f7869db6f9a5aafd9)).
173
+
174
+ ### Misc
175
+ - Allow failure for style and spell on travis ([4a7a60f](https://github.com/pawamoy/shellman/commit/4a7a60f208dcd654b7f9618b0157ffa584be3bea)).
176
+ - Automatically compute indent_str from indent, cast indent to int ([0a09554](https://github.com/pawamoy/shellman/commit/0a0955499450aa5c4069b5fafc38abc0db409094)).
177
+ - Handle multiple file input/output, fix some templates vars, format with black ([2c6672b](https://github.com/pawamoy/shellman/commit/2c6672b47b04082865528e6028dd1fd3645c7058)).
178
+ - Ignore bandit warning as irrelevant (no html templates) ([4947fe5](https://github.com/pawamoy/shellman/commit/4947fe59d912a954e775944f40da2be94dc095da)).
179
+ - Implement context abilities ([5e7c9d4](https://github.com/pawamoy/shellman/commit/5e7c9d4bcc3ddc52caca079a625a927959853843)).
180
+ - Implement plugin abilities ([cd4723f](https://github.com/pawamoy/shellman/commit/cd4723f84771d2d5f60fd0dc047d597b708a1c31)).
181
+ - Implement smart_width for text format, write more templates ([bb15f51](https://github.com/pawamoy/shellman/commit/bb15f518085c903033b8f9c007c67aba97db03da)).
182
+ - Improve helptext usage display, fix smartwrap indent ([11f78bf](https://github.com/pawamoy/shellman/commit/11f78bfcfb043fadc943ac60147293d74c6088d9)).
183
+ - Improve manpage groff template, fix various issues ([b829593](https://github.com/pawamoy/shellman/commit/b82959337e7f3c6801533c02976e74f55e268ff9)).
184
+ - Link up with argparse ([12f186d](https://github.com/pawamoy/shellman/commit/12f186dd1905f270fc095ff1539d0416d8911afc)).
185
+ - Rename tag to section ([5e80735](https://github.com/pawamoy/shellman/commit/5e80735f7f23c2dc9ca63dca94286f0a8763272b)).
186
+ - Update demo script and svg ([ec0c282](https://github.com/pawamoy/shellman/commit/ec0c282b282cf23fc97b2767928109d19df37f6d)).
187
+ - Update docs, simplify context usage ([8c6c950](https://github.com/pawamoy/shellman/commit/8c6c950f14f2b3f8502e16f2e9ff0fe209b00259)).
188
+ - Use GitLab-CI instead of Travis ([de662d0](https://github.com/pawamoy/shellman/commit/de662d03c8b4ee7cb4a35c2b1909da6415de597d)).
189
+
190
+
191
+ ## [0.2.2](https://github.com/pawamoy/shellman/tags/0.2.2) - 2017-05-02
192
+
193
+ <small>[Compare with 0.2.1](https://github.com/pawamoy/shellman/compare/0.2.1...0.2.2)</small>
194
+
195
+ ### Changed
196
+ - Change license from MPL 2.0 to ISC (no 'same license' condition) ([868b89e](https://github.com/pawamoy/shellman/commit/868b89ee7df7af36fdc3e4ce424a241867e89c24)).
197
+
198
+ ### Fixed
199
+ - Fix cli main return None -> 0 ([7beeecc](https://github.com/pawamoy/shellman/commit/7beeeccb559606bb2b338f2426fb3f5b91f840e7)).
200
+ - Fix codacy badge ([fe55efb](https://github.com/pawamoy/shellman/commit/fe55efbd2cd205df1f9b1ce8b02f2dd2d101ba6e)).
201
+ - Fix docs spelling ([69988a2](https://github.com/pawamoy/shellman/commit/69988a2e70e18108525ce6bf412cb743441b3516)).
202
+ - Fix installation instruction (--user does not install entry point...) ([aa2037b](https://github.com/pawamoy/shellman/commit/aa2037b627ce2e6e2fb1b83fa1fb0669545756ec)).
203
+ - Fix man synopsis section ([d79db9a](https://github.com/pawamoy/shellman/commit/d79db9a2c0e361374b1d8e8e376d95599605e9a0)).
204
+
205
+ ### Misc
206
+ - Begin to fix output option ([f1e5488](https://github.com/pawamoy/shellman/commit/f1e5488f997a065d26c5f20d00afd7efe93e234d)).
207
+ - Hide sphinx warnings, travis install enchant ([c216c78](https://github.com/pawamoy/shellman/commit/c216c780a3502b795bf96a3269f263aeac2c1a08)).
208
+ - Use codacy instead of codecov ([c024b1c](https://github.com/pawamoy/shellman/commit/c024b1ce8bfaf0aa7f0d71378d528cebd8e96c46)).
209
+
210
+
211
+ ## [0.2.1](https://github.com/pawamoy/shellman/tags/0.2.1) - 2016-12-06
212
+
213
+ <small>[Compare with 0.2.0](https://github.com/pawamoy/shellman/compare/0.2.0...0.2.1)</small>
214
+
215
+ ### Misc
216
+ - Update README, fix help display ([a131b82](https://github.com/pawamoy/shellman/commit/a131b82d84d68e4dfa5211cdc5dd26c930fa33c1)).
217
+
218
+
219
+ ## [0.2.0](https://github.com/pawamoy/shellman/tags/0.2.0) - 2016-12-06
220
+
221
+ <small>[Compare with first commit](https://github.com/pawamoy/shellman/compare/7c77c2bda82a2808aacc4500e01b33f082325ec5...0.2.0)</small>
222
+
223
+ ### Added
224
+ - Add check feature, add tests ([4916b51](https://github.com/pawamoy/shellman/commit/4916b514b85fcf6a87a81fe0d3ac6ed4f8bc1011)).
225
+ - Add demo example ([ec78d6b](https://github.com/pawamoy/shellman/commit/ec78d6bc2c238c02685e260494be37a510d0f015)).
226
+ - Add markdown format, improve python3 compatibility, add gitignore ([6b8c295](https://github.com/pawamoy/shellman/commit/6b8c2959e340bd999177b99c4f1a70286a19aaab)).
227
+ - Add tests ([4d08087](https://github.com/pawamoy/shellman/commit/4d080877799e33fba2b8a5ee0133257763ac80c2)).
228
+
229
+ ### Fixed
230
+ - Fix changing release date over upstream update ([11738c4](https://github.com/pawamoy/shellman/commit/11738c4484efae0535aa97abd77911752d8d4f47)).
231
+ - Fix command line usage and tests usage combination ([bcef7c9](https://github.com/pawamoy/shellman/commit/bcef7c9b5413584c740de2c028f0786e3c8ef48a)).
232
+ - Fix dangerous warning about sys.argv as default value ([effe263](https://github.com/pawamoy/shellman/commit/effe26350d8a0516a890c265b195089f83a7fda0)).
233
+
234
+ ### Misc
235
+ - Implement new structure ([40b4806](https://github.com/pawamoy/shellman/commit/40b48063b02b5cae1c7074f0921b411fb2aed9f6)).
236
+ - Setup tests ([5d50692](https://github.com/pawamoy/shellman/commit/5d50692ab5c49644039eab74d467335fded253c0)).
237
+ - Write doc ([1a8e0e4](https://github.com/pawamoy/shellman/commit/1a8e0e4d4624d8ca0eeb66dd78eb3d8b65a11f45)).
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dev@pawamoy.fr. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
84
+
@@ -0,0 +1,122 @@
1
+ # Contributing
2
+
3
+ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
4
+
5
+ ## Environment setup
6
+
7
+ Nothing easier!
8
+
9
+ Fork and clone the repository, then:
10
+
11
+ ```bash
12
+ cd shellman
13
+ make setup
14
+ ```
15
+
16
+ > NOTE: If it fails for some reason, you'll need to install [uv](https://github.com/astral-sh/uv) manually.
17
+ >
18
+ > You can install it with:
19
+ >
20
+ > ```bash
21
+ > curl -LsSf https://astral.sh/uv/install.sh | sh
22
+ > ```
23
+ >
24
+ > Now you can try running `make setup` again, or simply `uv sync`.
25
+
26
+ You now have the dependencies installed.
27
+
28
+ You can run the application with `make run shellman [ARGS...]`.
29
+
30
+ Run `make help` to see all the available actions!
31
+
32
+ ## Tasks
33
+
34
+ The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed,
35
+ while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
36
+
37
+ If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
38
+
39
+ ## Development
40
+
41
+ As usual:
42
+
43
+ 1. create a new branch: `git switch -c feature-or-bugfix-name`
44
+ 1. edit the code and/or the documentation
45
+
46
+ **Before committing:**
47
+
48
+ 1. run `make format` to auto-format the code
49
+ 1. run `make check` to check everything (fix any warning)
50
+ 1. run `make test` to run the tests (fix any issue)
51
+ 1. if you updated the documentation or the project dependencies:
52
+ 1. run `make docs`
53
+ 1. go to http://localhost:8000 and check that everything looks good
54
+ 1. follow our [commit message convention](#commit-message-convention)
55
+
56
+ If you are unsure about how to fix or ignore a warning, just let the continuous integration fail, and we will help you during review.
57
+
58
+ Don't bother updating the changelog, we will take care of this.
59
+
60
+ ## Commit message convention
61
+
62
+ Commit messages must follow our convention based on the [Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message) or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
63
+
64
+ ```
65
+ <type>[(scope)]: Subject
66
+
67
+ [Body]
68
+ ```
69
+
70
+ **Subject and body must be valid Markdown.** Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
71
+
72
+ Scope and body are optional. Type can be:
73
+
74
+ - `build`: About packaging, building wheels, etc.
75
+ - `chore`: About packaging or repo/files management.
76
+ - `ci`: About Continuous Integration.
77
+ - `deps`: Dependencies update.
78
+ - `docs`: About documentation.
79
+ - `feat`: New feature.
80
+ - `fix`: Bug fix.
81
+ - `perf`: About performance.
82
+ - `refactor`: Changes that are not features or bug fixes.
83
+ - `style`: A change in code style/format.
84
+ - `tests`: About tests.
85
+
86
+ If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
87
+
88
+ ```
89
+ Body.
90
+
91
+ Issue #10: https://github.com/namespace/project/issues/10
92
+ Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
93
+ ```
94
+
95
+ These "trailers" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons `:`. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
96
+
97
+ We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
98
+
99
+ ## Pull requests guidelines
100
+
101
+ Link to any related issue in the Pull Request message.
102
+
103
+ During the review, we recommend using fixups:
104
+
105
+ ```bash
106
+ # SHA is the SHA of the commit you want to fix
107
+ git commit --fixup=SHA
108
+ ```
109
+
110
+ Once all the changes are approved, you can squash your commits:
111
+
112
+ ```bash
113
+ git rebase -i --autosquash main
114
+ ```
115
+
116
+ And force-push:
117
+
118
+ ```bash
119
+ git push -f
120
+ ```
121
+
122
+ If this seems all too complicated, you can push or force-push each new commit, and we will squash them ourselves if needed, before merging.
@@ -1,19 +1,21 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: shellman
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Write documentation in comments and render it with templates.
5
- Author-Email: Timothée Mazzucotelli <pawamoy@pm.me>
6
- License: ISC
5
+ Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
6
+ License-Expression: ISC
7
+ License-File: LICENSE
7
8
  Classifier: Development Status :: 4 - Beta
8
9
  Classifier: Intended Audience :: Developers
9
10
  Classifier: Programming Language :: Python
10
11
  Classifier: Programming Language :: Python :: 3
11
12
  Classifier: Programming Language :: Python :: 3 :: Only
12
- Classifier: Programming Language :: Python :: 3.8
13
13
  Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
17
19
  Classifier: Topic :: Documentation
18
20
  Classifier: Topic :: Software Development
19
21
  Classifier: Topic :: Utilities
@@ -26,9 +28,10 @@ Project-URL: Issues, https://github.com/pawamoy/shellman/issues
26
28
  Project-URL: Discussions, https://github.com/pawamoy/shellman/discussions
27
29
  Project-URL: Gitter, https://gitter.im/shellman/community
28
30
  Project-URL: Funding, https://github.com/sponsors/pawamoy
29
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.9
30
32
  Requires-Dist: jinja2>=3
31
33
  Requires-Dist: importlib-metadata>=4.6; python_version < "3.10"
34
+ Requires-Dist: typing-extensions>=4.0; python_version < "3.11"
32
35
  Description-Content-Type: text/markdown
33
36
 
34
37
  <p align="center">
@@ -106,15 +109,14 @@ You can also write a plugin, see the docs: https://pawamoy.github.io/shellman/pl
106
109
 
107
110
  ## Installation
108
111
 
109
- With `pip`:
110
112
  ```bash
111
113
  pip install shellman
112
114
  ```
113
115
 
114
- With [`pipx`](https://github.com/pipxproject/pipx):
116
+ With [`uv`](https://docs.astral.sh/uv/):
117
+
115
118
  ```bash
116
- python3.8 -m pip install --user pipx
117
- pipx install shellman
119
+ uv tool install shellman
118
120
  ```
119
121
 
120
122
  ## Some projects using shellman
@@ -73,15 +73,14 @@ You can also write a plugin, see the docs: https://pawamoy.github.io/shellman/pl
73
73
 
74
74
  ## Installation
75
75
 
76
- With `pip`:
77
76
  ```bash
78
77
  pip install shellman
79
78
  ```
80
79
 
81
- With [`pipx`](https://github.com/pipxproject/pipx):
80
+ With [`uv`](https://docs.astral.sh/uv/):
81
+
82
82
  ```bash
83
- python3.8 -m pip install --user pipx
84
- pipx install shellman
83
+ uv tool install shellman
85
84
  ```
86
85
 
87
86
  ## Some projects using shellman
@@ -0,0 +1,26 @@
1
+ [coverage:run]
2
+ branch = true
3
+ parallel = true
4
+ source =
5
+ src/
6
+ tests/
7
+
8
+ [coverage:paths]
9
+ equivalent =
10
+ src/
11
+ .venv/lib/*/site-packages/
12
+ .venvs/*/lib/*/site-packages/
13
+
14
+ [coverage:report]
15
+ precision = 2
16
+ omit =
17
+ src/*/__init__.py
18
+ src/*/__main__.py
19
+ src/*/templates/*
20
+ tests/__init__.py
21
+ exclude_lines =
22
+ pragma: no cover
23
+ if TYPE_CHECKING
24
+
25
+ [coverage:json]
26
+ output = htmlcov/coverage.json
@@ -0,0 +1,9 @@
1
+ bump = "auto"
2
+ convention = "angular"
3
+ in-place = true
4
+ output = "CHANGELOG.md"
5
+ parse-refs = false
6
+ parse-trailers = true
7
+ sections = ["build", "deps", "feat", "fix", "refactor"]
8
+ template = "keepachangelog"
9
+ versioning = "pep440"
@@ -0,0 +1,5 @@
1
+ [mypy]
2
+ ignore_missing_imports = true
3
+ exclude = tests/fixtures/
4
+ warn_unused_ignores = false
5
+ show_error_codes = true
@@ -0,0 +1,14 @@
1
+ [pytest]
2
+ python_files =
3
+ test_*.py
4
+ addopts =
5
+ --cov
6
+ --cov-config config/coverage.ini
7
+ testpaths =
8
+ tests
9
+
10
+ # action:message_regex:warning_class:module_regex:line
11
+ filterwarnings =
12
+ error
13
+ # TODO: remove once pytest-xdist 4 is released
14
+ ignore:.*rsyncdir:DeprecationWarning:xdist