Skip to content

Bump version to force upgrade during pip install docopt - #529

Open
hobson wants to merge 1 commit into
docopt:masterfrom
hobson:patch-1
Open

hobson wants to merge 1 commit into
docopt:masterfrom
hobson:patch-1

Conversation

@hobson

@hobson hobson commented Jul 7, 2025

Copy link
Copy Markdown

Current version on PyPi is 0.6.2 but the source code in this file is not what is installed. For example the following Python re SyntaxWarnings are generated when non-raw strings are passed to re when pymux installs and uses the latest version on pypi.org:

/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
  name = re.findall('(<\S*?>)', source)[0]
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
  value = re.findall('\[default: (.*)\]', source, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
  matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
  split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]

Current version on PyPi is 0.6.2 but the source code in this file is not what is installed.  For example the following Python re SyntaxWarnings are generated when non-raw strings are passed to `re` when pymux installs and uses the latest version on pypi.org:

```bash
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
  name = re.findall('(<\S*?>)', source)[0]
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
  value = re.findall('\[default: (.*)\]', source, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
  matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
  split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
```
@Hellseher

Copy link
Copy Markdown

Hi,

Is this project maintained, this would be nice to merge this PR to make it less noise on Python 3.12, thanks.

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.

2 participants