From 819683ade5e665d1aa2815dce043f61acfb7b5b5 Mon Sep 17 00:00:00 2001 From: luistarkbank Date: Thu, 28 Mar 2024 17:25:33 -0300 Subject: [PATCH] Fix setup.py install --- CHANGELOG.md | 2 ++ setup.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb1c17..6edcc13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment: ## [Unreleased] +### Fixed +- setup.py install ## [2.25.0] - 2024-03-13 ### Added diff --git a/setup.py b/setup.py index b228dfc..c430082 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,12 @@ from re import search from setuptools import setup, find_packages -with open('README.md', encoding="utf-8") as f: - README = f.read() +try: + with open('README.md', encoding="utf-8") as f: + README = f.read() +except: + with open('README.md') as f: + README = f.read() with open('starkbank/__init__.py') as f: version = search(r'version = \"(.*)\"', f.read()).group(1)