fotolab 0.16.5__tar.gz → 0.16.6__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.6}/.pre-commit-config.yaml +1 -1
  2. {fotolab-0.16.5 → fotolab-0.16.6}/CHANGELOG.md +6 -0
  3. {fotolab-0.16.5 → fotolab-0.16.6}/PKG-INFO +6 -3
  4. {fotolab-0.16.5 → fotolab-0.16.6}/Pipfile.lock +15 -15
  5. {fotolab-0.16.5 → fotolab-0.16.6}/README.md +5 -2
  6. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/__init__.py +1 -1
  7. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/cli.py +1 -0
  8. {fotolab-0.16.5 → fotolab-0.16.6}/noxfile.py +22 -0
  9. {fotolab-0.16.5 → fotolab-0.16.6}/.coveragerc +0 -0
  10. {fotolab-0.16.5 → fotolab-0.16.6}/.gitignore +0 -0
  11. {fotolab-0.16.5 → fotolab-0.16.6}/.python-version +0 -0
  12. {fotolab-0.16.5 → fotolab-0.16.6}/CONTRIBUTING.md +0 -0
  13. {fotolab-0.16.5 → fotolab-0.16.6}/LICENSE.md +0 -0
  14. {fotolab-0.16.5 → fotolab-0.16.6}/Pipfile +0 -0
  15. {fotolab-0.16.5 → fotolab-0.16.6}/docs/Makefile +0 -0
  16. {fotolab-0.16.5 → fotolab-0.16.6}/docs/make.bat +0 -0
  17. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/CHANGELOG.md +0 -0
  18. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/CONTRIBUTING.md +0 -0
  19. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/LICENSE.md +0 -0
  20. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/README.md +0 -0
  21. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/_static/logo.jpg +0 -0
  22. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/conf.py +0 -0
  23. {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/index.rst +0 -0
  24. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/__main__.py +0 -0
  25. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/animate.py +0 -0
  26. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/auto.py +0 -0
  27. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/border.py +0 -0
  28. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/contrast.py +0 -0
  29. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/env.py +0 -0
  30. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/info.py +0 -0
  31. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/montage.py +0 -0
  32. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/resize.py +0 -0
  33. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/rotate.py +0 -0
  34. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/sharpen.py +0 -0
  35. {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/watermark.py +0 -0
  36. {fotolab-0.16.5 → fotolab-0.16.6}/pyproject.toml +0 -0
  37. {fotolab-0.16.5 → fotolab-0.16.6}/tests/__init__.py +0 -0
  38. {fotolab-0.16.5 → fotolab-0.16.6}/tests/conftest.py +0 -0
  39. {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_env.py +0 -0
  40. {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_help_flag.py +0 -0
  41. {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_quiet_flag.py +0 -0
@@ -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
@@ -7,6 +7,12 @@ and this project adheres to [0-based versioning](https://0ver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## v0.16.6 (2024-06-23)
11
+
12
+ - Add `readme` session to `nox`
13
+ - Bump deps and `pre-commit` hooks
14
+ - Set CLI program name explicitly
15
+
10
16
  ## v0.16.5 (2024-06-16)
11
17
 
12
18
  - Bump, sort, and remove unused deps
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fotolab
3
- Version: 0.16.5
3
+ Version: 0.16.6
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,10 +56,11 @@ 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
- {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
62
- ...
63
+ {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env} ...
63
64
 
64
65
  A console program to manipulate photos.
65
66
 
@@ -94,6 +95,8 @@ optional arguments:
94
95
  -V, --version show program's version number and exit
95
96
  ```
96
97
 
98
+ <!--help !-->
99
+
97
100
  ### fotolab animate
98
101
 
99
102
  ```console
@@ -104,11 +104,11 @@
104
104
  },
105
105
  "argcomplete": {
106
106
  "hashes": [
107
- "sha256:c168c3723482c031df3c207d4ba8fa702717ccb9fc0bfe4117166c1f537b4a54",
108
- "sha256:fd03ff4a5b9e6580569d34b273f741e85cd9e072f3feeeee3eba4891c70eda62"
107
+ "sha256:69a79e083a716173e5532e0fa3bef45f793f4e61096cf52b5a42c0211c8b8aa5",
108
+ "sha256:c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f"
109
109
  ],
110
110
  "markers": "python_version >= '3.8'",
111
- "version": "==3.3.0"
111
+ "version": "==3.4.0"
112
112
  },
113
113
  "astor": {
114
114
  "hashes": [
@@ -349,11 +349,11 @@
349
349
  },
350
350
  "flake8": {
351
351
  "hashes": [
352
- "sha256:33f96621059e65eec474169085dc92bf26e7b2d47366b70be2f67ab80dc25132",
353
- "sha256:a6dfbb75e03252917f2473ea9653f7cd799c3064e54d4c8140044c5c065f53c3"
352
+ "sha256:2e416edcc62471a64cea09353f4e7bdba32aeb079b6e360554c659a122b1bc6a",
353
+ "sha256:48a07b626b55236e0fb4784ee69a465fbf59d79eec1f5b4785c3d3bc57d17aa5"
354
354
  ],
355
355
  "markers": "python_full_version >= '3.8.1'",
356
- "version": "==7.0.0"
356
+ "version": "==7.1.0"
357
357
  },
358
358
  "flake8-docstrings": {
359
359
  "hashes": [
@@ -687,11 +687,11 @@
687
687
  },
688
688
  "pycodestyle": {
689
689
  "hashes": [
690
- "sha256:41ba0e7afc9752dfb53ced5489e89f8186be00e599e712660695b7a75ff2663f",
691
- "sha256:44fe31000b2d866f2e41841b18528a505fbd7fef9017b04eff4e2648a0fadc67"
690
+ "sha256:442f950141b4f43df752dd303511ffded3a04c2b6fb7f65980574f0c31e6e79c",
691
+ "sha256:949a39f6b86c3e1515ba1787c2022131d165a8ad271b11370a8819aa070269e4"
692
692
  ],
693
693
  "markers": "python_version >= '3.8'",
694
- "version": "==2.11.1"
694
+ "version": "==2.12.0"
695
695
  },
696
696
  "pydocstyle": {
697
697
  "hashes": [
@@ -843,12 +843,12 @@
843
843
  },
844
844
  "sphinx-autodoc-typehints": {
845
845
  "hashes": [
846
- "sha256:0072b65f5ab2818c229d6d6c2cc993770af55d36bb7bfb16001e2fce4d14880c",
847
- "sha256:22427d74786274add2b6d4afccb8b3c8c1843f48a704550f15a35fd948f8a4de"
846
+ "sha256:143e22dbb096cc39f1559d3accbe423e5fbf04d02849d6564e6471b5616bbd97",
847
+ "sha256:a21f0120d8657545ad5ec269d7276b0718c367c8ff2fa8ad8767ddf2c660b909"
848
848
  ],
849
849
  "index": "pypi",
850
850
  "markers": "python_version >= '3.9'",
851
- "version": "==2.1.1"
851
+ "version": "==2.2.0"
852
852
  },
853
853
  "sphinx-copybutton": {
854
854
  "hashes": [
@@ -918,11 +918,11 @@
918
918
  },
919
919
  "urllib3": {
920
920
  "hashes": [
921
- "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d",
922
- "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"
921
+ "sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472",
922
+ "sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168"
923
923
  ],
924
924
  "markers": "python_version >= '3.8'",
925
- "version": "==2.2.1"
925
+ "version": "==2.2.2"
926
926
  },
927
927
  "virtualenv": {
928
928
  "hashes": [
@@ -34,10 +34,11 @@ python -m pip install -e git+https://github.com/kianmeng/fotolab.git
34
34
  fotolab -h
35
35
  ```
36
36
 
37
+ <!--help !-->
38
+
37
39
  ```console
38
40
  usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
39
- {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
40
- ...
41
+ {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env} ...
41
42
 
42
43
  A console program to manipulate photos.
43
44
 
@@ -72,6 +73,8 @@ optional arguments:
72
73
  -V, --version show program's version number and exit
73
74
  ```
74
75
 
76
+ <!--help !-->
77
+
75
78
  ### fotolab animate
76
79
 
77
80
  ```console
@@ -21,7 +21,7 @@ import subprocess
21
21
  import sys
22
22
  from pathlib import Path
23
23
 
24
- __version__ = "0.16.5"
24
+ __version__ = "0.16.6"
25
25
 
26
26
  log = logging.getLogger(__name__)
27
27
 
@@ -68,6 +68,7 @@ def setup_logging(args: argparse.Namespace) -> None:
68
68
  def build_parser() -> argparse.ArgumentParser:
69
69
  """Build the CLI parser."""
70
70
  parser = argparse.ArgumentParser(
71
+ prog="fotolab",
71
72
  description=__doc__,
72
73
  formatter_class=lambda prog: argparse.RawTextHelpFormatter(
73
74
  prog, max_help_position=20
@@ -14,8 +14,12 @@
14
14
  # along with this program. If not, see <https://www.gnu.org/licenses/>.
15
15
 
16
16
  """Nox configuration."""
17
+ from io import StringIO
18
+
17
19
  import nox
18
20
 
21
+ from fotolab.cli import build_parser
22
+
19
23
 
20
24
  @nox.session()
21
25
  def deps(session: nox.Session) -> None:
@@ -60,3 +64,21 @@ def doc(session: nox.Session) -> None:
60
64
  """Build doc with sphinx."""
61
65
  session.run("pipenv", "install", "--dev", external=True)
62
66
  session.run("sphinx-build", "docs/source/", "docs/build/html")
67
+
68
+
69
+ @nox.session(python="3.12", reuse_venv=True)
70
+ def readme(_session: nox.Session) -> None:
71
+ """Update console help menu to readme."""
72
+ with open("README.md", "r+", encoding="utf8") as f:
73
+ content = f.read()
74
+ marker = content.split("<!--help !-->")[1]
75
+
76
+ buffer = StringIO()
77
+ parser = build_parser()
78
+ parser.print_help(file=buffer)
79
+
80
+ help_message = f"\n\n```console\n{buffer.getvalue()}```\n\n"
81
+ readme_md = content.replace(marker, help_message)
82
+
83
+ f.seek(0)
84
+ f.write(readme_md)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes