From c9c96fca89f8ae555bf5104ec4a70a30889683c1 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Wed, 13 Nov 2024 20:27:12 +0100 Subject: [PATCH] Fix issue #123: MANIFEST.in is still required for Python < 3.8 to pack data files --- CHANGES.rst | 7 ++++++- MANIFEST.in | 1 + setup.py | 10 ++++++++-- ydiff.py | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 MANIFEST.in diff --git a/CHANGES.rst b/CHANGES.rst index b2566ac..2ad33ac 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,7 +2,12 @@ Change log ========== -Version 1.4 (2024-11-13) +Version 1.4.1 (2024-11-13) + + - Fix setup() dependency: MANIFEST.in is still required for Python < 3.8 to + pack data files + +Version 1.4 (2024-11-13) *Revoked due to #123* - Fine-grained, word-level diff for change blocks - New ``--theme`` option for selecting different themes diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..7539083 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include CHANGES.rst diff --git a/setup.py b/setup.py index e512c05..0b937d8 100755 --- a/setup.py +++ b/setup.py @@ -36,8 +36,14 @@ entry_points={ 'console_scripts': [ 'ydiff = ydiff:main', - ] - } + ], + }, + include_package_data=True, + package_data={ + 'ydiff': [ + 'CHANGES.rst', + ], + }, ) # vim:set et sts=4 sw=4 tw=79: diff --git a/ydiff.py b/ydiff.py index 18327a1..752c3bb 100755 --- a/ydiff.py +++ b/ydiff.py @@ -17,7 +17,7 @@ from typing import List, Tuple PKG_INFO = { - 'version' : '1.4', + 'version' : '1.4.1', 'license' : 'BSD-3', 'author' : 'Matt Wang', 'url' : 'https://github.com/ymattw/ydiff',