It's actually quite obvious. In packaging._get_revno_and_last_tag we have following code:
changelog = git._iter_log_oneline(git_dir=git_dir)
row_count = 0
for row_count, (ignored, tag_set, ignored) in enumerate(changelog):
If git._iter_log_online returns None what it sometimes does, we get "TypeError: 'NoneType' object is not iterable".
You can also achieve this by setting os.environ['SKIP_WRITE_GIT_CHANGELOG'] = '1' in your setup.py.
I'll attach a small sample project that does exactly this.
The fix is just to add the line changelog = changelog if changelog else [] after changelog = git._iter_log_oneline(git_dir=git_dir). I have a PR ready. Just let me know.
It's actually quite obvious. In packaging. _get_revno_ and_last_ tag we have following code:
changelog = git._iter_ log_oneline( git_dir= git_dir) changelog) :
row_count = 0
for row_count, (ignored, tag_set, ignored) in enumerate(
If git._iter_ log_online returns None what it sometimes does, we get "TypeError: 'NoneType' object is not iterable". 'SKIP_WRITE_ GIT_CHANGELOG' ] = '1' in your setup.py. log_oneline( git_dir= git_dir) . I have a PR ready. Just let me know.
You can also achieve this by setting os.environ[
I'll attach a small sample project that does exactly this.
The fix is just to add the line changelog = changelog if changelog else [] after changelog = git._iter_