From 95d7f00ad379897f3b88a7d6bcbb20f0a8107f8d Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Tue, 9 Mar 2021 10:54:03 -0800 Subject: [PATCH] updates version parsing to handle newlines, but also removes newline from version.txt (#506) --- ipfx/version.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipfx/version.txt b/ipfx/version.txt index 21e8796a..e4c0d46e 100644 --- a/ipfx/version.txt +++ b/ipfx/version.txt @@ -1 +1 @@ -1.0.3 +1.0.3 \ No newline at end of file diff --git a/setup.py b/setup.py index 2c3de39c..0e82fa98 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ "version.txt" ) with open(version_file_path, "r") as version_file: - version = version_file.read() + version = version_file.readline().strip() readme_path = os.path.join(