coherent-oss / coherent.build

A zero-config Python project build backend
5 stars 0 forks source link

Ensure compatibility with Python 3.8 #12

Open jaraco opened 2 weeks ago

jaraco commented 2 weeks ago

Currently, the codebase uses some constructs that are incompatible with Python 3.8 (namely str.removeprefix and possible removesuffix). This usage will need to be adapted and verified on Python 3.8.

jaraco commented 2 weeks ago

I realized I've been copy/pasting the removeprefix/removesuffix code to a number of projects:

So I decided to release jaraco.compat 4.1 with a routine to do the work.

As it turns out, path, distutils, and backports.tarfile don't currently have any dependencies, so I'm going to leave them alone, but I've updated the others to use the renewed compat library.

jaraco commented 1 week ago

@bswck has discovered that use of datetime.UTC isn't viable until Python 3.11. Also, tests are passing on Python 3.8, so there's not good coverage.