From 062509ca85232d07c8259e6568c188cda9bd408f Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Fri, 17 Nov 2023 23:50:39 +0100 Subject: [PATCH] Update setup.py --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index b55a8cf1a..103d27018 100755 --- a/setup.py +++ b/setup.py @@ -60,6 +60,12 @@ def read_version(): return variables["VERSION"] +def read(fname, encoding="ascii"): + return open( + os.path.join(os.path.dirname(__file__), fname), "r", encoding=encoding + ).read() + + if __name__ == "__main__": VERSION = read_version()