From 29553ebbf5c1bc23061947a7695af07abc4a2aef Mon Sep 17 00:00:00 2001 From: Shreyansh Sahare Date: Tue, 27 Feb 2024 17:18:31 +0530 Subject: [PATCH] Python 2 compatibility fix for setup.py `with.open` (#27) --- CHANGELOG.md | 6 ++++++ setup.py | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f603aed..67df162 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [0.16.0] + +### Changed + +- Updated python2 version incompatibility in `setup.py`. + ## [0.15.0] ### Changed diff --git a/setup.py b/setup.py index 8c66fc4..bd864ab 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,14 @@ +import io from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: +with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='card_data_parsers', - version='0.15.0', + version='0.16.0', author='Siva Narayanan', author_email='siva@fyle.in', url='https://www.fylehq.com',