Created attachment 237808 [details] python-3.12.0a1 New port, repocopied from lang/python311
The result of "make test" on my amd64-head system: 409 tests OK. 10 slowest tests: - test_smtpnet: 5 min 50 sec - test_concurrent_futures: 3 min 5 sec - test_tools: 2 min 51 sec - test_urllib2net: 2 min 44 sec - test_multiprocessing_forkserver: 2 min 35 sec - test_socket: 2 min 33 sec - test_hashlib: 2 min 29 sec - test_urllibnet: 2 min 29 sec - test_asyncio: 2 min 27 sec - test_multiprocessing_spawn: 2 min 23 sec 4 tests failed: test_distutils test_dtrace test_tempfile test_tools 23 tests skipped: test_dbm_gnu test_devpoll test_epoll test_gdb test_idle test_ioctl test_launcher test_msilib test_perf_profiler test_spwd test_sqlite3 test_startfile test_tcl test_tix test_tkinter test_ttk test_ttk_textonly test_turtle test_winconsoleio test_winreg test_winsound test_wmi test_zipfile64 5 re-run tests: test_distutils test_dtrace test_shutil test_tempfile test_tools 1 test run no tests: test_shutil
Is there a reason why we install lib/python%%XYDOT%%/test which is from what I can tell by upstream only meant for internal use and doesn't seem to be common practice when distributing the runtime? https://docs.python.org/3/library/test.html
Created attachment 238242 [details] Update to 3.12.0a3 Update to 3.12.0a3
(In reply to Wen Heping from comment #3) Sorry, it is 3.12.0a2
For the record, I did a port for 3.12.0a2 as well. It looks the same apart from plist changes. I'd suggest to also add CONFIGURE_ENV+= ac_cv_buggy_getaddrinfo=no (this would be useful for older python versions as well) which fixes configure failure in networkless environment (reprise), see https://github.com/python/cpython/issues/100200). I also have a fix for one of the tests, see https://github.com/python/cpython/pull/100145. Also note that databases/py-sqlite3, databases/py-gdbm, x11-toolkits/py-tkinter do not build unless their setup3.py's are switched to setuptools (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283), but the fix for this is pending rollback for no good reason.
This seems like it would be good to merge if it's ready.
Any update on this? 3.12 stable is out now.
See also bug 271673; not sure which will be the one used for adding the port.
Superceded by 271673