vonshednob / pter

Manage your todo.txt in a commandline user interface (TUI)
https://vonshednob.cc/pter/
MIT License
102 stars 6 forks source link

Support Python 3.12 #30

Closed chenrui333 closed 8 months ago

chenrui333 commented 10 months ago

While trying to build the latest release, 3.9.0 against py3.12, we found some issue:

/opt/homebrew/Cellar/pter/3.9.0/libexec/lib/python3.12/site-packages/pter/utils.py:21: SyntaxWarning: invalid escape sequence '\s'
  EMPTY_FIELD_RE = re.compile('([a-z]+[:])(?:\s|$)')
To start pter you must provide at least one todo.txt file. See --help for more information.

relates to https://github.com/Homebrew/homebrew-core/pull/151150

vonshednob commented 10 months ago

I'll get right on it!

vonshednob commented 10 months ago

Alright, fixed in version 3.10.0 (also on pypi).

Thanks for letting me know about this!

chenrui333 commented 10 months ago

watching this PR, https://github.com/Homebrew/homebrew-core/pull/151249

thanks for the turnaround.

chenrui333 commented 10 months ago

still repro with 3.10.0

vonshednob commented 10 months ago

That’s strange. I cannot reproduce that issue:

# pter --version
pter 3.10.0
# python --version
Python 3.12.0
# pter todo.txt

Is it the same error message, about the SyntaxWarning?

dtrodrigues commented 9 months ago

There's a curses issue that should work on Python 3.12 on macOS after https://github.com/python/cpython/issues/111460 is resolved.

vonshednob commented 9 months ago

Thank you @dtrodrigues for pointing that out!

chenrui333 commented 8 months ago

seems working fine now with 3.11.4 release, https://github.com/Homebrew/homebrew-core/pull/157699. Closing.