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.
- {fotolab-0.16.5 → fotolab-0.16.6}/.pre-commit-config.yaml +1 -1
- {fotolab-0.16.5 → fotolab-0.16.6}/CHANGELOG.md +6 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/PKG-INFO +6 -3
- {fotolab-0.16.5 → fotolab-0.16.6}/Pipfile.lock +15 -15
- {fotolab-0.16.5 → fotolab-0.16.6}/README.md +5 -2
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/__init__.py +1 -1
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/cli.py +1 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/noxfile.py +22 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/.coveragerc +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/.gitignore +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/.python-version +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/CONTRIBUTING.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/LICENSE.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/Pipfile +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/Makefile +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/make.bat +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/CHANGELOG.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/CONTRIBUTING.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/LICENSE.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/README.md +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/_static/logo.jpg +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/conf.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/docs/source/index.rst +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/__main__.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/animate.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/auto.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/border.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/contrast.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/env.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/info.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/montage.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/resize.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/rotate.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/sharpen.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/fotolab/watermark.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/pyproject.toml +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/tests/__init__.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/tests/conftest.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_env.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_help_flag.py +0 -0
- {fotolab-0.16.5 → fotolab-0.16.6}/tests/test_quiet_flag.py +0 -0
@@ -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.
|
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:
|
108
|
-
"sha256:
|
107
|
+
"sha256:69a79e083a716173e5532e0fa3bef45f793f4e61096cf52b5a42c0211c8b8aa5",
|
108
|
+
"sha256:c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f"
|
109
109
|
],
|
110
110
|
"markers": "python_version >= '3.8'",
|
111
|
-
"version": "==3.
|
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:
|
353
|
-
"sha256:
|
352
|
+
"sha256:2e416edcc62471a64cea09353f4e7bdba32aeb079b6e360554c659a122b1bc6a",
|
353
|
+
"sha256:48a07b626b55236e0fb4784ee69a465fbf59d79eec1f5b4785c3d3bc57d17aa5"
|
354
354
|
],
|
355
355
|
"markers": "python_full_version >= '3.8.1'",
|
356
|
-
"version": "==7.
|
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:
|
691
|
-
"sha256:
|
690
|
+
"sha256:442f950141b4f43df752dd303511ffded3a04c2b6fb7f65980574f0c31e6e79c",
|
691
|
+
"sha256:949a39f6b86c3e1515ba1787c2022131d165a8ad271b11370a8819aa070269e4"
|
692
692
|
],
|
693
693
|
"markers": "python_version >= '3.8'",
|
694
|
-
"version": "==2.
|
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:
|
847
|
-
"sha256:
|
846
|
+
"sha256:143e22dbb096cc39f1559d3accbe423e5fbf04d02849d6564e6471b5616bbd97",
|
847
|
+
"sha256:a21f0120d8657545ad5ec269d7276b0718c367c8ff2fa8ad8767ddf2c660b909"
|
848
848
|
],
|
849
849
|
"index": "pypi",
|
850
850
|
"markers": "python_version >= '3.9'",
|
851
|
-
"version": "==2.
|
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:
|
922
|
-
"sha256:
|
921
|
+
"sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472",
|
922
|
+
"sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168"
|
923
923
|
],
|
924
924
|
"markers": "python_version >= '3.8'",
|
925
|
-
"version": "==2.2.
|
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
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|