Skip to content

Conversation

@Freso
Copy link

@Freso Freso commented Mar 27, 2024

Urwid used to provide VERSION both in its main namespace (urwid.VERSION) and under version (urwid.version.VERSION), but as of commit 8d8e4b678cc0f93149a4a964b26ee11fb136ea0f this is now only available in the main namespace, as setuptools-scm does not include VERSION in its generated version.py. This breaks audiotools with urwid>=2.2.0 (2023-09-21).

The simple fix is to just look at urwid.VERSION instead of urwid.version.VERSION, which is what this patch does.

Urwid used to provide `VERSION` both in its main namespace
(`urwid.VERSION`) and under `version` (`urwid.version.VERSION`), but
as of commit 8d8e4b678cc0f93149a4a964b26ee11fb136ea0f[1] this is now
only available in the main namespace[2], as setuptools-scm does not
include `VERSION` in its generated `version.py`[3]. This breaks
audiotools with urwid>=2.2.0 (2023-09-21).

The simple fix is to just look at `urwid.VERSION` instead of
`urwid.version.VERSION`, which is what this patch does.

[1] urwid/urwid@8d8e4b6
[2] urwid/urwid@8d8e4b6#diff-622c6cdaa0aebea827e82ba7a1e6127f21fe51c58ff6a88ff6b018c3885ea2e9L105-R217
[3] https://github.com/pypa/setuptools_scm/blob/main/src/setuptools_scm/_integration/dump_version.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant