fotolab 0.16.3__tar.gz → 0.16.5__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.3 → fotolab-0.16.5}/CHANGELOG.md +12 -0
  2. {fotolab-0.16.3 → fotolab-0.16.5}/CONTRIBUTING.md +2 -3
  3. {fotolab-0.16.3 → fotolab-0.16.5}/PKG-INFO +1 -1
  4. {fotolab-0.16.3 → fotolab-0.16.5}/Pipfile +3 -5
  5. {fotolab-0.16.3 → fotolab-0.16.5}/Pipfile.lock +60 -101
  6. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/__init__.py +1 -1
  7. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/watermark.py +2 -3
  8. {fotolab-0.16.3 → fotolab-0.16.5}/noxfile.py +8 -0
  9. {fotolab-0.16.3 → fotolab-0.16.5}/.coveragerc +0 -0
  10. {fotolab-0.16.3 → fotolab-0.16.5}/.gitignore +0 -0
  11. {fotolab-0.16.3 → fotolab-0.16.5}/.pre-commit-config.yaml +0 -0
  12. {fotolab-0.16.3 → fotolab-0.16.5}/.python-version +0 -0
  13. {fotolab-0.16.3 → fotolab-0.16.5}/LICENSE.md +0 -0
  14. {fotolab-0.16.3 → fotolab-0.16.5}/README.md +0 -0
  15. {fotolab-0.16.3 → fotolab-0.16.5}/docs/Makefile +0 -0
  16. {fotolab-0.16.3 → fotolab-0.16.5}/docs/make.bat +0 -0
  17. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/CHANGELOG.md +0 -0
  18. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/CONTRIBUTING.md +0 -0
  19. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/LICENSE.md +0 -0
  20. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/README.md +0 -0
  21. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/_static/logo.jpg +0 -0
  22. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/conf.py +0 -0
  23. {fotolab-0.16.3 → fotolab-0.16.5}/docs/source/index.rst +0 -0
  24. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/__main__.py +0 -0
  25. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/animate.py +0 -0
  26. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/auto.py +0 -0
  27. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/border.py +0 -0
  28. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/cli.py +0 -0
  29. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/contrast.py +0 -0
  30. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/env.py +0 -0
  31. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/info.py +0 -0
  32. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/montage.py +0 -0
  33. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/resize.py +0 -0
  34. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/rotate.py +0 -0
  35. {fotolab-0.16.3 → fotolab-0.16.5}/fotolab/sharpen.py +0 -0
  36. {fotolab-0.16.3 → fotolab-0.16.5}/pyproject.toml +0 -0
  37. {fotolab-0.16.3 → fotolab-0.16.5}/tests/__init__.py +0 -0
  38. {fotolab-0.16.3 → fotolab-0.16.5}/tests/conftest.py +0 -0
  39. {fotolab-0.16.3 → fotolab-0.16.5}/tests/test_env.py +0 -0
  40. {fotolab-0.16.3 → fotolab-0.16.5}/tests/test_help_flag.py +0 -0
  41. {fotolab-0.16.3 → fotolab-0.16.5}/tests/test_quiet_flag.py +0 -0
@@ -7,6 +7,18 @@ and this project adheres to [0-based versioning](https://0ver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## v0.16.5 (2024-06-16)
11
+
12
+ - Bump, sort, and remove unused deps
13
+ - Load and use default system font when watermarking
14
+
15
+ ## v0.16.4 (2024-06-09)
16
+
17
+ - Add `deps` session to `nox`
18
+ - Bump deps
19
+ - Remove `tox` dep
20
+ - Update `nox` session output in contributing doc
21
+
10
22
  ## v0.16.3 (2024-06-02)
11
23
 
12
24
  - Bump deps
@@ -49,6 +49,7 @@ nox -l
49
49
 
50
50
  ```console
51
51
  ...
52
+ * deps -> Update pre-commit hooks and deps.
52
53
  * lint -> Runs pre-commit linter.
53
54
  * test-3.8 -> Runs test.
54
55
  * test-3.9 -> Runs test.
@@ -56,9 +57,7 @@ nox -l
56
57
  * test-3.11 -> Runs test.
57
58
  * test-3.12 -> Runs test.
58
59
  * cov -> Runs test coverage.
59
- * doc -> Runs test.
60
-
61
- sessions marked with * are selected, sessions marked with - are skipped.
60
+ * doc -> Build doc with sphinx.
62
61
  ```
63
62
 
64
63
  ## Create a Pull Request
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fotolab
3
- Version: 0.16.3
3
+ Version: 0.16.5
4
4
  Summary: A console program that manipulate images.
5
5
  Keywords: photography,photo
6
6
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
@@ -14,20 +14,18 @@ flake8-pytest-style = "*"
14
14
  flake8-simplify = "*"
15
15
  fotolab = {editable = true, path = "."}
16
16
  importlib-metadata = "*"
17
+ myst-parser = "*"
18
+ nox = "*"
17
19
  pre-commit = "*"
18
20
  pytest = "*"
19
21
  pytest-cov = "*"
20
22
  pytest-randomly = "*"
21
23
  pytest-xdist = "*"
22
24
  scripttest = "*"
23
- tomli = "*"
24
- tox = "<4"
25
- tox-pyenv = "*"
26
- nox = "*"
27
25
  sphinx = "*"
28
- myst-parser = "*"
29
26
  sphinx-autodoc-typehints = "*"
30
27
  sphinx-copybutton = "*"
28
+ tomli = "*"
31
29
 
32
30
  [requires]
33
31
  python_version = "3.8"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_meta": {
3
3
  "hash": {
4
- "sha256": "19e394fb1e58e326146dd6ca4a6088c93dccb33a39c84132c9b4db9b6b82f0e4"
4
+ "sha256": "8d7307a0ff05c5de6ef45cc8bc2e1bf6c18b97ccf3a911c31ce0dd9a77feab08"
5
5
  },
6
6
  "pipfile-spec": 6,
7
7
  "requires": {
@@ -96,11 +96,11 @@
96
96
  "develop": {
97
97
  "alabaster": {
98
98
  "hashes": [
99
- "sha256:1ee19aca801bbabb5ba3f5f258e4422dfa86f82f3e9cefb0859b283cdd7f62a3",
100
- "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2"
99
+ "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65",
100
+ "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92"
101
101
  ],
102
- "markers": "python_version >= '3.6'",
103
- "version": "==0.7.13"
102
+ "markers": "python_version >= '3.9'",
103
+ "version": "==0.7.16"
104
104
  },
105
105
  "argcomplete": {
106
106
  "hashes": [
@@ -128,11 +128,11 @@
128
128
  },
129
129
  "certifi": {
130
130
  "hashes": [
131
- "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f",
132
- "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"
131
+ "sha256:3cd43f1c6fa7dedc5899d69d3ad0398fd018ad1a17fba83ddaf78aa46c747516",
132
+ "sha256:ddc6c8ce995e6987e7faf5e3f1b02b302836a0e5d98ece18392cb1a36c72ad56"
133
133
  ],
134
134
  "markers": "python_version >= '3.6'",
135
- "version": "==2024.2.2"
135
+ "version": "==2024.6.2"
136
136
  },
137
137
  "cfgv": {
138
138
  "hashes": [
@@ -316,11 +316,11 @@
316
316
  },
317
317
  "docutils": {
318
318
  "hashes": [
319
- "sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6",
320
- "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"
319
+ "sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f",
320
+ "sha256:dafca5b9e384f0e419294eb4d2ff9fa826435bf15f15b7bd45723e8ad76811b2"
321
321
  ],
322
- "markers": "python_version >= '3.7'",
323
- "version": "==0.20.1"
322
+ "markers": "python_version >= '3.9'",
323
+ "version": "==0.21.2"
324
324
  },
325
325
  "exceptiongroup": {
326
326
  "hashes": [
@@ -341,11 +341,11 @@
341
341
  },
342
342
  "filelock": {
343
343
  "hashes": [
344
- "sha256:43339835842f110ca7ae60f1e1c160714c5a6afd15a2873419ab185334975c0f",
345
- "sha256:6ea72da3be9b8c82afd3edcf99f2fffbb5076335a5ae4d03248bb5b6c3eae78a"
344
+ "sha256:58a2549afdf9e02e10720eaa4d4470f56386d7a6f72edd7d0596337af8ed7ad8",
345
+ "sha256:71b3102950e91dfc1bb4209b64be4dc8854f40e5f534428d8684f953ac847fac"
346
346
  ],
347
347
  "markers": "python_version >= '3.8'",
348
- "version": "==3.14.0"
348
+ "version": "==3.15.1"
349
349
  },
350
350
  "flake8": {
351
351
  "hashes": [
@@ -561,11 +561,11 @@
561
561
  },
562
562
  "nodeenv": {
563
563
  "hashes": [
564
- "sha256:07f144e90dae547bf0d4ee8da0ee42664a42a04e02ed68e06324348dafe4bdb1",
565
- "sha256:508ecec98f9f3330b636d4448c0f1a56fc68017c68f1e7857ebc52acf0eb879a"
564
+ "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f",
565
+ "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"
566
566
  ],
567
567
  "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'",
568
- "version": "==1.9.0"
568
+ "version": "==1.9.1"
569
569
  },
570
570
  "nox": {
571
571
  "hashes": [
@@ -578,11 +578,11 @@
578
578
  },
579
579
  "packaging": {
580
580
  "hashes": [
581
- "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5",
582
- "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"
581
+ "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002",
582
+ "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"
583
583
  ],
584
- "markers": "python_version >= '3.7'",
585
- "version": "==24.0"
584
+ "markers": "python_version >= '3.8'",
585
+ "version": "==24.1"
586
586
  },
587
587
  "pillow": {
588
588
  "hashes": [
@@ -678,20 +678,12 @@
678
678
  },
679
679
  "pre-commit": {
680
680
  "hashes": [
681
- "sha256:5804465c675b659b0862f07907f96295d490822a450c4c40e747d0b1c6ebcb32",
682
- "sha256:841dc9aef25daba9a0238cd27984041fa0467b4199fc4852e27950664919f660"
681
+ "sha256:8ca3ad567bc78a4972a3f1a477e94a79d4597e8140a6e0b651c5e33899c3654a",
682
+ "sha256:fae36fd1d7ad7d6a5a1c0b0d5adb2ed1a3bda5a21bf6c3e5372073d7a11cd4c5"
683
683
  ],
684
684
  "index": "pypi",
685
- "markers": "python_version >= '3.8'",
686
- "version": "==3.5.0"
687
- },
688
- "py": {
689
- "hashes": [
690
- "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719",
691
- "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"
692
- ],
693
- "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
694
- "version": "==1.11.0"
685
+ "markers": "python_version >= '3.9'",
686
+ "version": "==3.7.1"
695
687
  },
696
688
  "pycodestyle": {
697
689
  "hashes": [
@@ -727,12 +719,12 @@
727
719
  },
728
720
  "pytest": {
729
721
  "hashes": [
730
- "sha256:5046e5b46d8e4cac199c373041f26be56fdb81eb4e67dc11d4e10811fc3408fd",
731
- "sha256:faccc5d332b8c3719f40283d0d44aa5cf101cec36f88cde9ed8f2bc0538612b1"
722
+ "sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343",
723
+ "sha256:de4bb8104e201939ccdc688b27a89a7be2079b22e2bd2b07f806b6ba71117977"
732
724
  ],
733
725
  "index": "pypi",
734
726
  "markers": "python_version >= '3.8'",
735
- "version": "==8.2.1"
727
+ "version": "==8.2.2"
736
728
  },
737
729
  "pytest-cov": {
738
730
  "hashes": [
@@ -761,14 +753,6 @@
761
753
  "markers": "python_version >= '3.8'",
762
754
  "version": "==3.6.1"
763
755
  },
764
- "pytz": {
765
- "hashes": [
766
- "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812",
767
- "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"
768
- ],
769
- "markers": "python_version < '3.9'",
770
- "version": "==2024.1"
771
- },
772
756
  "pyyaml": {
773
757
  "hashes": [
774
758
  "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5",
@@ -841,14 +825,6 @@
841
825
  "index": "pypi",
842
826
  "version": "==1.3"
843
827
  },
844
- "six": {
845
- "hashes": [
846
- "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
847
- "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
848
- ],
849
- "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
850
- "version": "==1.16.0"
851
- },
852
828
  "snowballstemmer": {
853
829
  "hashes": [
854
830
  "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1",
@@ -858,21 +834,21 @@
858
834
  },
859
835
  "sphinx": {
860
836
  "hashes": [
861
- "sha256:780f4d32f1d7d1126576e0e5ecc19dc32ab76cd24e950228dcf7b1f6d3d9e22f",
862
- "sha256:d170a81825b2fcacb6dfd5a0d7f578a053e45d3f2b153fecc948c37344eb4cbe"
837
+ "sha256:413f75440be4cacf328f580b4274ada4565fb2187d696a84970c23f77b64d8c3",
838
+ "sha256:a4a7db75ed37531c05002d56ed6948d4c42f473a36f46e1382b0bd76ca9627bc"
863
839
  ],
864
840
  "index": "pypi",
865
- "markers": "python_version >= '3.8'",
866
- "version": "==7.1.2"
841
+ "markers": "python_version >= '3.9'",
842
+ "version": "==7.3.7"
867
843
  },
868
844
  "sphinx-autodoc-typehints": {
869
845
  "hashes": [
870
- "sha256:60ed1e3b2c970acc0aa6e877be42d48029a9faec7378a17838716cacd8c10b12",
871
- "sha256:f73ae89b43a799e587e39266672c1075b2ef783aeb382d3ebed77c38a3fc0149"
846
+ "sha256:0072b65f5ab2818c229d6d6c2cc993770af55d36bb7bfb16001e2fce4d14880c",
847
+ "sha256:22427d74786274add2b6d4afccb8b3c8c1843f48a704550f15a35fd948f8a4de"
872
848
  ],
873
849
  "index": "pypi",
874
- "markers": "python_version >= '3.8'",
875
- "version": "==2.0.1"
850
+ "markers": "python_version >= '3.9'",
851
+ "version": "==2.1.1"
876
852
  },
877
853
  "sphinx-copybutton": {
878
854
  "hashes": [
@@ -885,27 +861,27 @@
885
861
  },
886
862
  "sphinxcontrib-applehelp": {
887
863
  "hashes": [
888
- "sha256:29d341f67fb0f6f586b23ad80e072c8e6ad0b48417db2bde114a4c9746feb228",
889
- "sha256:828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e"
864
+ "sha256:c40a4f96f3776c4393d933412053962fac2b84f4c99a7982ba42e09576a70619",
865
+ "sha256:cb61eb0ec1b61f349e5cc36b2028e9e7ca765be05e49641c97241274753067b4"
890
866
  ],
891
- "markers": "python_version >= '3.8'",
892
- "version": "==1.0.4"
867
+ "markers": "python_version >= '3.9'",
868
+ "version": "==1.0.8"
893
869
  },
894
870
  "sphinxcontrib-devhelp": {
895
871
  "hashes": [
896
- "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e",
897
- "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"
872
+ "sha256:6485d09629944511c893fa11355bda18b742b83a2b181f9a009f7e500595c90f",
873
+ "sha256:9893fd3f90506bc4b97bdb977ceb8fbd823989f4316b28c3841ec128544372d3"
898
874
  ],
899
- "markers": "python_version >= '3.5'",
900
- "version": "==1.0.2"
875
+ "markers": "python_version >= '3.9'",
876
+ "version": "==1.0.6"
901
877
  },
902
878
  "sphinxcontrib-htmlhelp": {
903
879
  "hashes": [
904
- "sha256:0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff",
905
- "sha256:c38cb46dccf316c79de6e5515e1770414b797162b23cd3d06e67020e1d2a6903"
880
+ "sha256:0dc87637d5de53dd5eec3a6a01753b1ccf99494bd756aafecd74b4fa9e729015",
881
+ "sha256:393f04f112b4d2f53d93448d4bce35842f62b307ccdc549ec1585e950bc35e04"
906
882
  ],
907
- "markers": "python_version >= '3.8'",
908
- "version": "==2.0.1"
883
+ "markers": "python_version >= '3.9'",
884
+ "version": "==2.0.5"
909
885
  },
910
886
  "sphinxcontrib-jsmath": {
911
887
  "hashes": [
@@ -917,19 +893,19 @@
917
893
  },
918
894
  "sphinxcontrib-qthelp": {
919
895
  "hashes": [
920
- "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72",
921
- "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6"
896
+ "sha256:053dedc38823a80a7209a80860b16b722e9e0209e32fea98c90e4e6624588ed6",
897
+ "sha256:e2ae3b5c492d58fcbd73281fbd27e34b8393ec34a073c792642cd8e529288182"
922
898
  ],
923
- "markers": "python_version >= '3.5'",
924
- "version": "==1.0.3"
899
+ "markers": "python_version >= '3.9'",
900
+ "version": "==1.0.7"
925
901
  },
926
902
  "sphinxcontrib-serializinghtml": {
927
903
  "hashes": [
928
- "sha256:352a9a00ae864471d3a7ead8d7d79f5fc0b57e8b3f95e9867eb9eb28999b92fd",
929
- "sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"
904
+ "sha256:326369b8df80a7d2d8d7f99aa5ac577f51ea51556ed974e7716cfd4fca3f6cb7",
905
+ "sha256:93f3f5dc458b91b192fe10c397e324f262cf163d79f3282c158e8436a2c4511f"
930
906
  ],
931
- "markers": "python_version >= '3.5'",
932
- "version": "==1.1.5"
907
+ "markers": "python_version >= '3.9'",
908
+ "version": "==1.1.10"
933
909
  },
934
910
  "tomli": {
935
911
  "hashes": [
@@ -940,23 +916,6 @@
940
916
  "markers": "python_version >= '3.7'",
941
917
  "version": "==2.0.1"
942
918
  },
943
- "tox": {
944
- "hashes": [
945
- "sha256:57b5ab7e8bb3074edc3c0c0b4b192a4f3799d3723b2c5b76f1fa9f2d40316eea",
946
- "sha256:d0d28f3fe6d6d7195c27f8b054c3e99d5451952b54abdae673b71609a581f640"
947
- ],
948
- "index": "pypi",
949
- "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
950
- "version": "==3.28.0"
951
- },
952
- "tox-pyenv": {
953
- "hashes": [
954
- "sha256:916c2213577aec0b3b5452c5bfb32fd077f3a3196f50a81ad57d7ef3fc2599e4",
955
- "sha256:e470c18af115fe52eeff95e7e3cdd0793613eca19709966fc2724b79d55246cb"
956
- ],
957
- "index": "pypi",
958
- "version": "==1.1.0"
959
- },
960
919
  "urllib3": {
961
920
  "hashes": [
962
921
  "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d",
@@ -975,11 +934,11 @@
975
934
  },
976
935
  "zipp": {
977
936
  "hashes": [
978
- "sha256:2828e64edb5386ea6a52e7ba7cdb17bb30a73a858f5eb6eb93d8d36f5ea26091",
979
- "sha256:35427f6d5594f4acf82d25541438348c26736fa9b3afa2754bcd63cdb99d8e8f"
937
+ "sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19",
938
+ "sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c"
980
939
  ],
981
940
  "markers": "python_version >= '3.8'",
982
- "version": "==3.19.1"
941
+ "version": "==3.19.2"
983
942
  }
984
943
  }
985
944
  }
@@ -21,7 +21,7 @@ import subprocess
21
21
  import sys
22
22
  from pathlib import Path
23
23
 
24
- __version__ = "0.16.3"
24
+ __version__ = "0.16.5"
25
25
 
26
26
  log = logging.getLogger(__name__)
27
27
 
@@ -144,9 +144,8 @@ def run(args: argparse.Namespace) -> None:
144
144
 
145
145
  draw = ImageDraw.Draw(watermarked_image)
146
146
 
147
- font = ImageFont.truetype(
148
- "arial.ttf", calc_font_size(original_image, args)
149
- )
147
+ font = ImageFont.load_default(calc_font_size(original_image, args))
148
+ log.debug("default font: %s", " ".join(font.getname()))
150
149
 
151
150
  (left, top, right, bottom) = draw.textbbox(
152
151
  xy=(0, 0), text=args.text, font=font
@@ -17,6 +17,14 @@
17
17
  import nox
18
18
 
19
19
 
20
+ @nox.session()
21
+ def deps(session: nox.Session) -> None:
22
+ """Update pre-commit hooks and deps."""
23
+ session.install("pre-commit")
24
+ session.run("pre-commit", "autoupdate", *session.posargs)
25
+ session.run("pipenv", "update", external=True)
26
+
27
+
20
28
  @nox.session()
21
29
  def lint(session: nox.Session) -> None:
22
30
  """Runs pre-commit linter."""
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