Skip to content

Improve Python version and OS compatibility, fixing deprecations #1654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Sep 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small clarity improvements in setup.py
  • Loading branch information
EliahKagan committed Sep 10, 2023
commit 415a8ebdf8d0648cd17218e817963721d8df54da
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import os
import sys

with open(os.path.join(os.path.dirname(__file__), "VERSION")) as v:
VERSION = v.readline().strip()
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
VERSION = ver_file.readline().strip()

with open("requirements.txt") as reqs_file:
requirements = reqs_file.read().splitlines()
Expand Down Expand Up @@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None:
with open(filename) as f:
for line in f:
if "__version__ =" in line:
line = line.replace("\"git\"", "'%s'" % VERSION)
line = line.replace('"git"', "'%s'" % VERSION)
found = True
out.append(line)
except OSError:
Expand Down