Commit Graph

1336 Commits

Author SHA1 Message Date
Milan Hauth b29900acf4 time_point_to_python: preserve microseconds 2026-05-17 16:08:40 +02:00
Milan Hauth 0f73afaa4b add python binding alert.timestamp 2026-05-17 16:08:40 +02:00
Arvid Norberg 39b70addf0 Merge branch 'RC_2_0' into RC_2_1 2026-05-12 21:00:28 +02:00
Arvid Norberg b076205bd4 fix python type stub 2026-05-12 10:13:26 +02:00
Arvid Norberg bfecc673fd fix race in session_handle::wait_for_alert(). The alert pointer it returned could become invalid immediately, not safe to dereference. Update its signature 2026-04-29 20:31:34 +02:00
Arvid Norberg 9187b08cdc update python bindings to match clang-tidy 2026-04-29 19:34:37 +02:00
Arvid Norberg 22a96baa40 fix flaky python test 2026-04-28 08:49:33 +02:00
Arvid Norberg 8f8120ad71 address python tests using deprecated functions 2026-04-27 14:34:33 +02:00
Arvid Norberg 0aa2427150 fixup python typestubs 2026-04-21 22:20:52 +02:00
Arvid Norberg 03da18b708 explicitly flush the error message in TORRENT_ASSERT_PRECOND to make sure it's visible before terminating the process. Fix incorrect python test 2026-04-21 14:05:04 +02:00
Arvid Norberg cd8c96e111 local_connection is deprecated, use outgoing_connection 2026-04-12 19:00:03 +02:00
Arvid Norberg c0dcbace56 Merge branch 'RC_2_0' 2026-03-28 18:41:47 +01:00
Andrej730 d22bb50b05 cmake - fix python install path being treated as absolute
Otherwise it was installing binary in my case (Windows) to `Installing: /Lib/site-packages/libtorrent.cp313-win_amd64.pyd` which means `"L:\Lib\site-packages\libtorrent.cp313-win_amd64.pyd"` instead of `L:/my/install/prefix/Lib\site-packages\libtorrent.cp313-win_amd64.pyd`
2026-03-27 18:26:47 +01:00
Arvid Norberg c09bc40bc6 update gil.hpp to use C++17 2026-03-22 09:33:35 +01:00
Arvid Norberg 4cadfa6140 fix roundtrip of renamed_files 2026-03-21 14:04:01 +01:00
Arvid Norberg 19898eead8 python bindings 2026-03-15 23:17:52 +01:00
Arvid Norberg f639f78463 expose the current upload- and download rate limits per torrent in torrent_status. These fields can now be queried via an asynchronous request (post_torrent_updates()) 2026-03-15 01:19:26 +01:00
Arvid Norberg 20886c0a4c Merge branch 'RC_2_0' 2026-03-14 09:08:32 +01:00
Arvid Norberg 740a0b9aea bump version to 2.0.12 2026-03-13 23:14:28 +01:00
qstokkink 229b02884f Fixed Python type hints 2026-03-07 10:48:10 +01:00
Arvid Norberg 694ad4c058 add missing session settings to python type stubs 2026-03-06 11:34:39 +01:00
Arvid Norberg 28d1558c07 Merge branch 'RC_2_0' 2026-03-05 07:38:04 +01:00
arvidn 5abab0509c add new multi-threaded disk I/O subsystem using preadv and pwritev 2026-03-03 15:01:55 +01:00
Arvid Norberg 41c7d02c47 updates 2026-02-25 01:19:27 +01:00
qstokkink 47b84956d5 Exposed torrent_handle.high_priority binding 2026-02-15 09:43:14 +01:00
qstokkink c4565af25e Add RC_2_0 Python type stubs 2026-02-15 09:43:14 +01:00
Quinten Stokkink 9ae712aaec Moved type stubs into libtorrent directory 2026-02-15 09:43:14 +01:00
Quinten Stokkink 519b80d43e fix wheel types not being found 2026-02-15 09:43:14 +01:00
AllSeeingEyeTolledEweSew 37e1d8b784 Add type stubs and tests for sha256_hash 2026-02-15 09:43:14 +01:00
AllSeeingEyeTolledEweSew 88cee10961 Add type stubs 2026-02-15 09:43:14 +01:00
Arvid Norberg d92eae1c55 Merge branch 'RC_2_0' 2026-02-14 17:02:38 +01:00
HavenCTO 0e123fd452 added python 314 compatibility 2026-02-14 11:10:57 +01:00
Arvid Norberg 6d4e2cc064 make the save path for part files configurable 2026-01-24 11:47:19 +01:00
Arvid Norberg 4263da263a fix alert_test.py 2026-01-20 16:36:33 +01:00
arvidn 9c1ee8e513 Merge branch 'RC_2_0' 2025-12-29 23:23:50 +01:00
Arvid Norberg 27401c9f44 add high_priority flag to tracker announcements, to put them at the front of the queue. This can be done manually in force_reannounce() or will happen automatically as part of connection-boost 2025-12-29 02:01:22 +01:00
arvidn 60b09be37e fix python binding for notify_callback to hold the GIL when destructing 2025-12-27 22:18:01 +01:00
arvidn 89bf9f7ccb update CMakeList.txt 2025-12-27 22:18:01 +01:00
Arvid Norberg a01469c8d1 Merge branch 'RC_2_0' 2025-09-09 09:20:48 +02:00
Arvid Norberg 883569e195 don't link against libboost_system explicitly, as it's deprecated. It's a header-only library now 2025-09-08 16:54:23 +02:00
arvidn 77eb55f31e Transition resolving duplicate and invalid filenames to the new structure where torrent_info and file_storage are immutable and renamed files are recorded in a separate structure. 2025-07-15 17:45:39 +02:00
arvidn 15ac737cd2 support IPv6 in python tests 2025-07-14 21:34:23 -07:00
arvidn a10c76156b deprecated torrent_info::remap_files() and correct the pre-condition to not work for v2 (or hybrid) torrents 2025-07-13 16:45:20 +02:00
Arvid Norberg f51bffbd19 make torrent_info immutable to avoid copying it 2025-06-29 15:12:16 +02:00
Arvid Norberg ecf301e166 Merge branch 'RC_2_0' 2025-06-28 19:15:21 +02:00
xavier2k6 bb00170ea2 Python bindings: Revise supported python versions
* Drop support for Python <3.9 (EOL)
* Add Python 3.12 & 3.13 support
* Updated URL for "supported python versions"
* Remove PyEval_InitThreads() call for Python 3.7 and later as Python calls it automatically now.
This removes a deprecation warning when using Python 3.9.
https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
2025-05-11 09:25:49 +02:00
Arvid Norberg c48cdadcdb Merge branch 'RC_2_0' 2025-03-30 17:50:07 +02:00
Arvid Norberg 21cbbf74ee support find_torrent() for v2 torrents 2025-03-30 14:18:06 +02:00
Arvid Norberg a865c60871 deprecate keeping DHT nodes in torrent_info, in favor of add_torrent_params 2025-02-15 09:35:42 +01:00
Arvid Norberg b8c0dba4dd deprecate make_magnet_uri() overloads that take torrent_handle and torrent_info, in favor of add_torrent_params. Also deprecate web seeds being stored in torrent_info 2025-02-15 00:54:09 +01:00