From 65c0a4eb067db3ce6e25cb51baa5c2cb2c50bbf2 Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Fri, 17 Nov 2023 23:51:00 +0100 Subject: [PATCH] fix: add `read()` again (#32) --- 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()