Bug 274671 - lang/python313: New port, 3.13.2 release
Summary: lang/python313: New port, 3.13.2 release
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on: 286298 270510
Blocks:
  Show dependency treegraph
 
Reported: 2023-10-23 11:05 UTC by Wen Heping
Modified: 2025-05-28 00:59 UTC (History)
20 users (show)

See Also:


Attachments
python-3.13.0a1 (39.49 KB, application/x-gzip)
2023-10-23 11:05 UTC, Wen Heping
no flags Details
Update to alpha3 (40.97 KB, application/x-gzip)
2024-01-19 08:59 UTC, wen
no flags Details
python-3.13.0a4 (40.69 KB, application/x-gzip)
2024-02-17 09:33 UTC, Wen Heping
no flags Details
Update to 3.13.0 alpha5 (40.81 KB, application/x-gzip)
2024-03-17 00:56 UTC, Wen Heping
no flags Details
Update to 3.13.0a6 (41.04 KB, application/x-gzip)
2024-04-12 09:18 UTC, Wen Heping
no flags Details
Update to 3.13.0beta1 (41.81 KB, application/x-gzip)
2024-05-09 13:12 UTC, Wen Heping
no flags Details
Update to 3.13.0 beta2 (42.11 KB, application/x-gzip)
2024-06-07 06:03 UTC, Wen Heping
no flags Details
Python-3.13.0rc1 (42.29 KB, application/x-gzip)
2024-08-02 00:22 UTC, Wen Heping
no flags Details
Update to 3.13.0rc3 (42.07 KB, application/x-gzip)
2024-10-03 02:21 UTC, Wen Heping
no flags Details
Update to 3.13.0 release (42.07 KB, application/x-gzip)
2024-10-08 12:37 UTC, Wen Heping
no flags Details
Update to 3.13.1 (42.29 KB, application/x-gzip)
2024-12-05 12:44 UTC, Wen Heping
no flags Details
Update to 3.13.2 (42.41 KB, application/x-gzip)
2025-02-07 03:00 UTC, Wen Heping
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wen Heping freebsd_committer freebsd_triage 2023-10-23 11:05:59 UTC
Created attachment 245824 [details]
python-3.13.0a1

- New ports, python-3.13.0a1

test results:

== Tests result: FAILURE then FAILURE ==

10 slowest tests:
- test_tools: 6 min 26 sec
- test_smtpnet: 5 min
- test_socket: 4 min 15 sec
- test_ssl: 1 min 15 sec
- test_imaplib: 51.2 sec
- test.test_concurrent_futures.test_wait: 47.9 sec
- test_signal: 47.0 sec
- test_subprocess: 45.1 sec
- test.test_multiprocessing_spawn.test_processes: 43.7 sec
- test.test_multiprocessing_spawn.test_threads: 42.1 sec

27 tests skipped:
    test.test_asyncio.test_windows_events
    test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace
    test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
    test.test_gdb.test_misc test.test_gdb.test_pretty_print
    test_dbm_gnu test_devpoll test_epoll test_idle test_ioctl
    test_launcher test_msvcrt test_perf_profiler test_perfmaps
    test_sqlite3 test_startfile test_tcl test_tkinter test_ttk
    test_ttk_textonly test_turtle test_winconsoleio test_winreg
    test_winsound test_wmi

1 test skipped (resource denied):
    test_zipfile64

2 re-run tests:
    test.test_concurrent_futures.test_shutdown test_dtrace

1 test failed:
    test_dtrace

440 tests OK.

Total duration: 8 min 19 sec
Total tests: run=39,403 failures=17 skipped=1,334
Total test files: run=470/469 failed=1 skipped=27 resource_denied=1 rerun=2
Result: FAILURE then FAILURE
*** Error code 2
Comment 1 wen 2024-01-19 08:59:03 UTC
Created attachment 247766 [details]
Update to alpha3

Update to alpha3
Comment 2 Wen Heping freebsd_committer freebsd_triage 2024-02-17 09:33:27 UTC
Created attachment 248522 [details]
python-3.13.0a4

Python-3.13.0 alpha4
Comment 3 Wen Heping freebsd_committer freebsd_triage 2024-03-17 00:56:56 UTC
Created attachment 249232 [details]
Update to 3.13.0 alpha5

Update to 3.13.0 alpha5
Comment 4 Wen Heping freebsd_committer freebsd_triage 2024-04-12 09:18:58 UTC
Created attachment 249928 [details]
Update to 3.13.0a6

Update to alpha6
Comment 5 Wen Heping freebsd_committer freebsd_triage 2024-05-09 13:12:51 UTC
Created attachment 250546 [details]
Update to 3.13.0beta1

Update to python-3.13.0beta1
Comment 6 Wen Heping freebsd_committer freebsd_triage 2024-06-07 06:03:14 UTC
Created attachment 251261 [details]
Update to 3.13.0 beta2

Update to 3.13.0 beta2
Comment 7 Wen Heping freebsd_committer freebsd_triage 2024-08-02 00:22:34 UTC
Created attachment 252441 [details]
Python-3.13.0rc1

Python-3.13.0rc1
Comment 8 Wen Heping freebsd_committer freebsd_triage 2024-10-03 02:21:01 UTC
Created attachment 253973 [details]
Update to 3.13.0rc3

Update to 3.13.0rc3
Comment 9 Wen Heping freebsd_committer freebsd_triage 2024-10-08 12:37:11 UTC
Created attachment 254094 [details]
Update to 3.13.0 release

Update to 3.13.0 release
Comment 10 Wen Heping freebsd_committer freebsd_triage 2024-12-05 12:44:39 UTC
Created attachment 255638 [details]
Update to 3.13.1

Update to 3.13.1
Comment 11 doctor 2025-01-19 02:44:38 UTC
When will this be added to the FreeBSD port tree?
Comment 12 Wen Heping freebsd_committer freebsd_triage 2025-02-07 03:00:03 UTC
Created attachment 257308 [details]
Update to 3.13.2

Update to 3.13.2
Comment 13 p5B2EA84B3 2025-04-02 14:16:01 UTC
What exactly prevents the committing of lang/python3.13 as a new port.

I do see Wen's attachments but not an initial commit for creating the port.

I do need to understand the criteria/policy if any for porting new Python releases. 

We had python 3.10.0.beta4, 3.10.0rc1, 3.10.0rc2 as ports but do fail to provide actual Python releases for 3.12 and 3.12. 

What's going on here please? What is the point of failure?

I do NOT criticize Wen here, as he is doing a great job by providing port-upgrades for Python in typically less than 5 days. And he is the one providing upgrade attachments. But there is an issue for getting the first (3.x.0 versions) releases in a reasonable timely manner as a port.

And yes, upgrading Python default versions looked also more like <fill in a appropriate word yourself> than anything else. But this is another story and still needs to be improved.
Comment 14 p5B2EA84B3 2025-04-02 14:40:37 UTC
Please increase  Importance: 	--- Affects Only Me ---> Affects some people
Comment 15 commit-hook freebsd_committer freebsd_triage 2025-04-05 20:37:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=de7c5ca4a2d40df82a8ca46b37c8b859a412b89c

commit de7c5ca4a2d40df82a8ca46b37c8b859a412b89c
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-04-05 20:12:38 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-04-05 20:12:38 +0000

    devel/py-wheel044: "temporarily" add

    The sole purpose of this port is to build setuptools < 70.1.0 under
    USE_PYTHON=pep517, as a stopgap to allow newer Python
    distributions/interpreters to land while the setuptools update
    continues to be worked on. This port will be removed once setuptools
    is updated. Nothing else is to declare this as a dependency; continue
    to use devel/py-wheel elsewhere.

    As of setuptools 70.1.0, bdist_wheel (what setuptools executes as
    part of ${PEP517_BUILD_CMD} to build the wheel) has moved from wheel
    to setuptools [0], so once setuptools is updated past said version,
    consumers should not continue declaring devel/py-wheel in BUILD_DEPENDS
    unless the package needs functionality beyond what moved into
    setuptools.

    [0] https://setuptools.pypa.io/en/latest/history.html#v70-1-0

    PR: 271673, 274671

 devel/Makefile                                     |  1 +
 devel/py-wheel044/Makefile (new)                   | 26 +++++++++
 devel/py-wheel044/distinfo (new)                   |  3 ++
 .../files/patch-src_wheel___bdist__wheel.py (new)  | 62 ++++++++++++++++++++++
 devel/py-wheel044/pkg-descr (new)                  | 13 +++++
 5 files changed, 105 insertions(+)
Comment 16 commit-hook freebsd_committer freebsd_triage 2025-04-05 20:58:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b5ae17d2f43388fade30e266615a9e34bf06abd

commit 8b5ae17d2f43388fade30e266615a9e34bf06abd
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-04-05 20:45:55 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-04-05 20:45:55 +0000

    devel/py-setuptools: convert to USE_PYTHON=pep517

    The previous method of building/bootstrapping setuptools via the
    built-in distutils module no longer works in Python 3.12+ as it has
    been removed [0]. Since USE_PYTHON=pep517 has its own bootstrapping
    process, use this method to build setuptools.

    This allows newer Python distributions/interpreters to land in the
    tree, for the purpose of having buildable packages.

    While here, remove a slew of dead code and adjust WWW

    [0] https://peps.python.org/pep-0632/

    PR: 271673, 274671

 devel/py-setuptools/Makefile                       | 39 ++++++----------------
 .../files/easy-install.pth.dist (gone)             |  2 --
 .../patch-setuptools_package__index.py (gone)      | 11 ------
 devel/py-setuptools/files/pkg-message.in (gone)    |  8 -----
 4 files changed, 10 insertions(+), 50 deletions(-)
Comment 17 Charlie Li freebsd_committer freebsd_triage 2025-04-08 02:18:08 UTC
Took wen@'s attachment, cleaned it up a bit, posted at review D49680. Feel free to test for any showstoppers.

Amongst other new features [0] are experimental free-threaded/Global Interpreter Lock-disabled support and JIT compiler. They are to be exposed but not enabled by default in the port.

[0] https://docs.python.org/3/whatsnew/3.13.html
Comment 18 Konstantin Belousov freebsd_committer freebsd_triage 2025-05-27 21:52:18 UTC
Sorry, but why did 3.13 still not committed to the tree?
What we are waiting for?  A release for 3.33?