fotolab 0.16.5__tar.gz → 0.16.11__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 (41) hide show
  1. {fotolab-0.16.5 → fotolab-0.16.11}/.pre-commit-config.yaml +3 -3
  2. {fotolab-0.16.5 → fotolab-0.16.11}/.python-version +1 -1
  3. {fotolab-0.16.5 → fotolab-0.16.11}/CHANGELOG.md +39 -0
  4. {fotolab-0.16.5 → fotolab-0.16.11}/CONTRIBUTING.md +10 -7
  5. {fotolab-0.16.5 → fotolab-0.16.11}/PKG-INFO +50 -2
  6. {fotolab-0.16.5 → fotolab-0.16.11}/Pipfile.lock +260 -238
  7. {fotolab-0.16.5 → fotolab-0.16.11}/README.md +49 -1
  8. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/conf.py +1 -1
  9. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/__init__.py +1 -1
  10. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/cli.py +1 -0
  11. {fotolab-0.16.5 → fotolab-0.16.11}/noxfile.py +34 -8
  12. {fotolab-0.16.5 → fotolab-0.16.11}/.coveragerc +0 -0
  13. {fotolab-0.16.5 → fotolab-0.16.11}/.gitignore +0 -0
  14. {fotolab-0.16.5 → fotolab-0.16.11}/LICENSE.md +0 -0
  15. {fotolab-0.16.5 → fotolab-0.16.11}/Pipfile +0 -0
  16. {fotolab-0.16.5 → fotolab-0.16.11}/docs/Makefile +0 -0
  17. {fotolab-0.16.5 → fotolab-0.16.11}/docs/make.bat +0 -0
  18. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/CHANGELOG.md +0 -0
  19. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/CONTRIBUTING.md +0 -0
  20. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/LICENSE.md +0 -0
  21. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/README.md +0 -0
  22. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/_static/logo.jpg +0 -0
  23. {fotolab-0.16.5 → fotolab-0.16.11}/docs/source/index.rst +0 -0
  24. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/__main__.py +0 -0
  25. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/animate.py +0 -0
  26. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/auto.py +0 -0
  27. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/border.py +0 -0
  28. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/contrast.py +0 -0
  29. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/env.py +0 -0
  30. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/info.py +0 -0
  31. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/montage.py +0 -0
  32. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/resize.py +0 -0
  33. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/rotate.py +0 -0
  34. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/sharpen.py +0 -0
  35. {fotolab-0.16.5 → fotolab-0.16.11}/fotolab/watermark.py +0 -0
  36. {fotolab-0.16.5 → fotolab-0.16.11}/pyproject.toml +0 -0
  37. {fotolab-0.16.5 → fotolab-0.16.11}/tests/__init__.py +0 -0
  38. {fotolab-0.16.5 → fotolab-0.16.11}/tests/conftest.py +0 -0
  39. {fotolab-0.16.5 → fotolab-0.16.11}/tests/test_env.py +0 -0
  40. {fotolab-0.16.5 → fotolab-0.16.11}/tests/test_help_flag.py +0 -0
  41. {fotolab-0.16.5 → fotolab-0.16.11}/tests/test_quiet_flag.py +0 -0
@@ -58,7 +58,7 @@ repos:
58
58
  - --target-version=py312
59
59
 
60
60
  - repo: https://github.com/asottile/blacken-docs
61
- rev: 1.16.0
61
+ rev: 1.18.0
62
62
  hooks:
63
63
  - id: blacken-docs
64
64
  additional_dependencies:
@@ -77,7 +77,7 @@ repos:
77
77
  language_version: python3.12
78
78
 
79
79
  - repo: https://github.com/PyCQA/flake8
80
- rev: 7.0.0
80
+ rev: 7.1.0
81
81
  hooks:
82
82
  - id: flake8
83
83
  language_version: python3.12
@@ -107,7 +107,7 @@ repos:
107
107
  - --disable=R0801,W0212
108
108
 
109
109
  - repo: https://github.com/pre-commit/mirrors-mypy
110
- rev: v1.10.0
110
+ rev: v1.11.0
111
111
  hooks:
112
112
  - id: mypy
113
113
  exclude: docs/
@@ -2,4 +2,4 @@
2
2
  3.9.19
3
3
  3.10.14
4
4
  3.11.9
5
- 3.12.3
5
+ 3.12.4
@@ -7,6 +7,45 @@ and this project adheres to [0-based versioning](https://0ver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## v0.16.11 (2024-07-28)
11
+
12
+ - Bump deps and `pre-commit` hooks
13
+ - Refactor `readme` nox session to capture help message correctly
14
+ - Use common helper function to install deps
15
+
16
+ ## v0.16.10 (2024-07-21)
17
+
18
+ - Bump deps
19
+ - Fix first line of comment should be in imperative mood
20
+ - Install `pipenv` in venv managed by `nox`
21
+ - Update `nox` session in contributing doc
22
+ - Use `sphinx-build` in venv managed by `nox`
23
+
24
+ ## v0.16.9 (2024-07-14)
25
+
26
+ - Add marker to all subcommand in readme
27
+ - Bump deps
28
+ - Fix `pipenv` install warning in `nox`
29
+ - Refactor `readme` session in `nox`
30
+
31
+ ## v0.16.8 (2024-07-07)
32
+
33
+ - Bump deps, `pre-commit` hooks, and Python versions for `pyenv`
34
+ - Do not reuse `venv` for all `nox` sessions
35
+
36
+ ## v0.16.7 (2024-06-30)
37
+
38
+ - Bump deps and `pre-commit` hooks
39
+ - Reuse `venv` for `doc` session in `nox`
40
+ - Tally program description in doc and program
41
+ - Update `nox` sessions list to contributing doc
42
+
43
+ ## v0.16.6 (2024-06-23)
44
+
45
+ - Add `readme` session to `nox`
46
+ - Bump deps and `pre-commit` hooks
47
+ - Set CLI program name explicitly
48
+
10
49
  ## v0.16.5 (2024-06-16)
11
50
 
12
51
  - Bump, sort, and remove unused deps
@@ -50,14 +50,17 @@ nox -l
50
50
  ```console
51
51
  ...
52
52
  * deps -> Update pre-commit hooks and deps.
53
- * lint -> Runs pre-commit linter.
54
- * test-3.8 -> Runs test.
55
- * test-3.9 -> Runs test.
56
- * test-3.10 -> Runs test.
57
- * test-3.11 -> Runs test.
58
- * test-3.12 -> Runs test.
59
- * cov -> Runs test coverage.
53
+ * lint -> Run pre-commit linter.
54
+ * test-3.8 -> Run test.
55
+ * test-3.9 -> Run test.
56
+ * test-3.10 -> Run test.
57
+ * test-3.11 -> Run test.
58
+ * test-3.12 -> Run test.
59
+ * cov -> Run test coverage.
60
60
  * doc -> Build doc with sphinx.
61
+ * readme -> Update console help menu to readme.
62
+
63
+ sessions marked with * are selected, sessions marked with - are skipped.
61
64
  ```
62
65
 
63
66
  ## Create a Pull Request
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fotolab
3
- Version: 0.16.5
3
+ Version: 0.16.11
4
4
  Summary: A console program that manipulate images.
5
5
  Keywords: photography,photo
6
6
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
@@ -56,6 +56,8 @@ python -m pip install -e git+https://github.com/kianmeng/fotolab.git
56
56
  fotolab -h
57
57
  ```
58
58
 
59
+ <!--help !-->
60
+
59
61
  ```console
60
62
  usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
61
63
  {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
@@ -82,7 +84,7 @@ positional arguments:
82
84
  watermark watermark an image
83
85
  env print environment information for bug reporting
84
86
 
85
- optional arguments:
87
+ options:
86
88
  -h, --help show this help message and exit
87
89
  -o, --overwrite overwrite existing image
88
90
  -op, --open open the image using default program (default: 'False')
@@ -94,12 +96,16 @@ optional arguments:
94
96
  -V, --version show program's version number and exit
95
97
  ```
96
98
 
99
+ <!--help !-->
100
+
97
101
  ### fotolab animate
98
102
 
99
103
  ```console
100
104
  fotolab animate -h
101
105
  ```
102
106
 
107
+ <!--help-animate !-->
108
+
103
109
  ```console
104
110
  usage: fotolab animate [-h] [-f FORMAT] [-d DURATION] [-l LOOP]
105
111
  IMAGE_FILENAMES [IMAGE_FILENAMES ...]
@@ -116,12 +122,16 @@ optional arguments:
116
122
  -l LOOP, --loop LOOP set the loop cycle (default: '0')
117
123
  ```
118
124
 
125
+ <!--help-animate !-->
126
+
119
127
  ### fotolab auto
120
128
 
121
129
  ```console
122
130
  fotolab auto -h
123
131
  ```
124
132
 
133
+ <!--help-auto !-->
134
+
125
135
  ```console
126
136
  usage: fotolab auto [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
127
137
 
@@ -132,12 +142,16 @@ optional arguments:
132
142
  -h, --help show this help message and exit
133
143
  ```
134
144
 
145
+ <!--help-auto !-->
146
+
135
147
  ### fotolab border
136
148
 
137
149
  ```console
138
150
  fotolab border -h
139
151
  ```
140
152
 
153
+ <!--help-border !-->
154
+
141
155
  ```console
142
156
  usage: fotolab border [-h] [-c COLOR] [-w WIDTH] [-wt WIDTH] [-wr WIDTH]
143
157
  [-wb WIDTH] [-wl WIDTH]
@@ -162,12 +176,16 @@ optional arguments:
162
176
  set the width of left border (default: '0')
163
177
  ```
164
178
 
179
+ <!--help-border !-->
180
+
165
181
  ### fotolab contrast
166
182
 
167
183
  ```console
168
184
  fotolab contrast -h
169
185
  ```
170
186
 
187
+ <!--help-contrast !-->
188
+
171
189
  ```console
172
190
  usage: fotolab contrast [-h] [-c CUTOFF] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
173
191
 
@@ -181,12 +199,16 @@ optional arguments:
181
199
  discard from histogram (default: '1')
182
200
  ```
183
201
 
202
+ <!--help-contrast !-->
203
+
184
204
  ### fotolab info
185
205
 
186
206
  ```console
187
207
  fotolab info -h
188
208
  ```
189
209
 
210
+ <!--help-info !-->
211
+
190
212
  ```console
191
213
  usage: fotolab info [-h] IMAGE_FILENAME
192
214
 
@@ -197,12 +219,16 @@ optional arguments:
197
219
  -h, --help show this help message and exit
198
220
  ```
199
221
 
222
+ <!--help-info !-->
223
+
200
224
  ### fotolab rotate
201
225
 
202
226
  ```console
203
227
  fotolab rotate -h
204
228
  ```
205
229
 
230
+ <!--help-rotate !-->
231
+
206
232
  ```console
207
233
  usage: fotolab rotate [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
208
234
 
@@ -213,12 +239,16 @@ optional arguments:
213
239
  -h, --help show this help message and exit
214
240
  ```
215
241
 
242
+ <!--help-rotate !-->
243
+
216
244
  ### fotolab montage
217
245
 
218
246
  ```console
219
247
  fotolab montage -h
220
248
  ```
221
249
 
250
+ <!--help-montage !-->
251
+
222
252
  ```console
223
253
  usage: fotolab montage [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
224
254
 
@@ -229,12 +259,16 @@ optional arguments:
229
259
  -h, --help show this help message and exit
230
260
  ```
231
261
 
262
+ <!--help-montage !-->
263
+
232
264
  ### fotolab resize
233
265
 
234
266
  ```console
235
267
  fotolab resize -h
236
268
  ```
237
269
 
270
+ <!--help-resize !-->
271
+
238
272
  ```console
239
273
  usage: fotolab resize [-h] [-wh WIDTH | -ht HEIGHT]
240
274
  IMAGE_FILENAMES [IMAGE_FILENAMES ...]
@@ -250,12 +284,16 @@ optional arguments:
250
284
  set the height of the image (default: '277')
251
285
  ```
252
286
 
287
+ <!--help-resize !-->
288
+
253
289
  ### fotolab sharpen
254
290
 
255
291
  ```console
256
292
  fotolab sharpen -h
257
293
  ```
258
294
 
295
+ <!--help-sharpen !-->
296
+
259
297
  ```console
260
298
  usage: fotolab sharpen [-h] [-r RADIUS] [-p PERCENT] [-t THRESHOLD]
261
299
  IMAGE_FILENAMES [IMAGE_FILENAMES ...]
@@ -275,12 +313,16 @@ optional arguments:
275
313
  (default: '3')
276
314
  ```
277
315
 
316
+ <!--help-sharpen !-->
317
+
278
318
  ### fotolab watermark
279
319
 
280
320
  ```console
281
321
  fotolab watermark -h
282
322
  ```
283
323
 
324
+ <!--help-watermark !-->
325
+
284
326
  ```console
285
327
  usage: fotolab watermark [-h] [-t WATERMARK_TEXT]
286
328
  [-p {top-left,top-right,bottom-left,bottom-right}]
@@ -314,12 +356,16 @@ optional arguments:
314
356
  'black')
315
357
  ```
316
358
 
359
+ <!--help-watermark !-->
360
+
317
361
  ### fotolab env
318
362
 
319
363
  ```console
320
364
  fotolab env -h
321
365
  ```
322
366
 
367
+ <!--help-env !-->
368
+
323
369
  ```console
324
370
  usage: fotolab env [-h]
325
371
 
@@ -327,6 +373,8 @@ options:
327
373
  -h, --help show this help message and exit
328
374
  ```
329
375
 
376
+ <!--help-env !-->
377
+
330
378
  ## Copyright and License
331
379
 
332
380
  Copyright (C) 2024 Kian-Meng Ang