IPTCInfo3 2.3.1__tar.gz → 2.3.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.
@@ -20,5 +20,8 @@ __pycache__
20
20
  # pipfile stuff
21
21
  Pipfile.lock
22
22
 
23
+ # uv stuff
24
+ uv.lock
25
+
23
26
  # virtualenvs
24
27
  .venv/
@@ -1,3 +1,10 @@
1
+ ## 2.3.2
2
+
3
+ ### New Features
4
+ - Added `'creator'` alias for `'by-line'` (dataset 80) per IPTC Core — `info['creator']` now works for reading and writing (idea from adityamulik's PR #34, corrected: raw dataset 1 does not exist in IIM)
5
+
6
+ ---
7
+
1
8
  ## 2.3.1
2
9
 
3
10
  ### Compatibility
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: IPTCInfo3
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Extract and modify IPTC metadata from JPEG images
5
5
  Project-URL: Homepage, https://github.com/jamesacampbell/iptcinfo3
6
6
  Project-URL: Repository, https://github.com/jamesacampbell/iptcinfo3
@@ -26,9 +26,9 @@ Classifier: Topic :: Multimedia :: Graphics
26
26
  Classifier: Topic :: Utilities
27
27
  Requires-Python: >=3.10
28
28
  Provides-Extra: dev
29
- Requires-Dist: pytest-cov>=4.0; extra == 'dev'
29
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
30
30
  Requires-Dist: pytest-watch>=4.2; extra == 'dev'
31
- Requires-Dist: pytest>=7.0; extra == 'dev'
31
+ Requires-Dist: pytest>=8.0; extra == 'dev'
32
32
  Description-Content-Type: text/x-rst
33
33
 
34
34
  ``IPTCINFO 3``
@@ -26,7 +26,7 @@ import tempfile
26
26
  from struct import pack, unpack
27
27
  import json
28
28
 
29
- __version__ = '2.3.1'
29
+ __version__ = '2.3.2'
30
30
  __author__ = 'Gulácsi, Tamás'
31
31
  __updated_by__ = 'Campbell, James'
32
32
 
@@ -554,6 +554,10 @@ class IPTCData(dict):
554
554
  # Alias for compatibility with gThumb/exiftool
555
555
  elif isinstance(key, str) and key.lower() == 'destination':
556
556
  return 103 # Maps to 'original transmission reference'
557
+ # Alias per IPTC Core: 'creator' is stored as 'by-line' (dataset 80).
558
+ # (Closes adityamulik's PR #34 idea; raw dataset 1 does not exist in IIM.)
559
+ elif isinstance(key, str) and key.lower() == 'creator':
560
+ return 80 # Maps to 'by-line'
557
561
  elif key.startswith(cls.c_cust_pre) and key[len(cls.c_cust_pre):].isdigit():
558
562
  # example: nonstandard_69 -> 69
559
563
  return int(key[len(cls.c_cust_pre):])
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "IPTCInfo3"
7
- version = "2.3.1"
7
+ version = "2.3.2"
8
8
  description = "Extract and modify IPTC metadata from JPEG images"
9
9
  readme = "README.rst"
10
10
  license = { text = "Artistic-1.0 OR GPL-1.0-or-later" }
@@ -41,8 +41,8 @@ Issues = "https://github.com/jamesacampbell/iptcinfo3/issues"
41
41
 
42
42
  [project.optional-dependencies]
43
43
  dev = [
44
- "pytest>=7.0",
45
- "pytest-cov>=4.0",
44
+ "pytest>=8.0",
45
+ "pytest-cov>=5.0",
46
46
  "pytest-watch>=4.2",
47
47
  ]
48
48
 
File without changes
File without changes