extensions: imp module is removed in Python 3.12 - use importlib to load files
imp has been deprecated for a long time, and has finally been removed in Python
3.12 .
imp was only used for loading extensions that has been specified with direct
.py path or path to a package directory. The same use cases can be achieved
quite simple with importlib, , possiby with small changes in corner cases with
undefined behaviour, such as extensions without .py source.
There might also be corner cases and undefined behaviour around use of
sys.modules and reloading.
# Declare macOS-specific requirements for generating
# the compiled (frozen) set of requirements in
# ./requirements-macos.txt.
# If run on Windows, it may be necessary to run dos2unix
# on the output file to replace any CRLF newlines with LF.
# TODO: dulwich, pygit2, and pytest-vcr are flagged as being
# incompatible with in-memory resources. Maybe there's a
# way to bundle just them externally.
docutils
#dulwich
# Needed by the release note tooling
fuzzywuzzy
keyring
#pygit2
pygments
# Needed by the phabricator tests
#pytest-vcr