You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
incorrect 'git' version for GitPython==3.1.28 installed from PyPI #1500
-__version__ = 'git'+__version__ = "git"-#{ Initialization+# { Initialization
def _init_externals() -> None:
"""Initialize external projects by putting them into the path"""
- if __version__ == 'git' and 'PYOXIDIZER' not in os.environ:- sys.path.insert(1, osp.join(osp.dirname(__file__), 'ext', 'gitdb'))+ if __version__ == "git" and "PYOXIDIZER" not in os.environ:+ sys.path.insert(1, osp.join(osp.dirname(__file__), "ext", "gitdb"))
However, setup.py puts the version in by doing a find/replace with a search for 'git':
line=line.replace("'git'", "'%s'"%VERSION)
and that fails, which leaves "git" in two places in __init__.py.
Activity
branfosj commentedon Oct 10, 2022
In 21ec529 there is the change:
However,
setup.pyputs the version in by doing a find/replace with a search for'git':and that fails, which leaves
"git"in two places in__init__.py.fix version replacement in `setup.py` (#1500)
Byron commentedon Oct 10, 2022
Thanks for letting me know! This should be fixed with v3.1.29, please let me know in the comments if it isn't though.
boegel commentedon Oct 11, 2022
I can confirm that a proper versio is printed for GitPython 3.1.29, thanks a lot for the quick fix!