Commit Graph

622 Commits

Author SHA1 Message Date
Arvid Norberg 9e4045ed42 use 32 bit time points in torrent (#1662)
use 32 bit time points in torrent and add some slack to time point comparisons in python test
2017-02-05 19:18:06 -05:00
arvidn 381defab05 merged RC_1_1 into master 2017-02-05 12:51:48 -05:00
arvidn 7ff4f56ae2 add function to get default settings 2017-02-05 11:31:43 -05:00
Falcosc a9d6d54111 fix multible torrent status timer bugs related to move time (#1492)
fix last_upload and last_download overflow after 9 hours in past. change last_upload, last_download, finished_time,  resume, upload_mode_time to time_point and duration
2017-02-04 13:34:14 -05:00
arvidn 95c8c1de0f fix build 2017-01-28 21:26:46 -05:00
arvidn 6b91adab6a merged RC_1_1 into master 2017-01-28 14:36:23 -05:00
Arvid Norberg 7285813449 fix merge issue in python endpoint converter (#1625)
fix merge issue in python endpoint converter
2017-01-25 23:42:26 -05:00
Falcosc c979802ce9 add check and test for torrent parameter (#1541)
add test and fix for add_torrent_params python binding
2017-01-24 09:26:11 -05:00
Falcosc 32e0028e32 Fix python client (#1512)
extend python test to include examples. add piece index and block index python bindings
2017-01-24 08:50:36 -05:00
arvidn 62db98ca09 add missing min_memory_usage() and high_performance_seed() settings presets to python 2017-01-24 01:34:05 -05:00
arvidn 173951ec7f merged RC_1_1 into master 2017-01-21 02:28:29 -05:00
Calum Lind d32ed4b9de Fixup python code in bindings to pass PEP8 codestyle
* Passes Flake8 default settings.
 * Tabs replace spaces
 * Ensure print_function available for python2
2017-01-21 00:21:54 -05:00
arvidn 27001750a4 add python binding for generate_fingerprint 2017-01-16 14:27:02 -05:00
Calum Lind 748c6e0da0 Fix debug flags and add option to python build
* The '-g' flag are being passed in by CXXFLAGS and CFLAGS so ensure
   that debugging builds are actually off by adding '-g0' to DEBUG_FLAGS.
 * Add DEBUG_FLAGS to Python compiler options.
2017-01-16 13:41:37 -05:00
Calum Lind fc3eae8e9b [#1561] Silence deprecated warnings in Python bindings 2017-01-16 13:41:37 -05:00
arvidn 450a8fb170 fix add_torrent_params field in add_torrent_alert. include more fields in dict -> add_torrent_param converter for add_torrent/async_add_torrent 2017-01-16 11:37:17 -05:00
Arvid Norberg d4672f41ba fix python binding issue with string_view (#1560)
fix python binding issue with string_view
2017-01-15 14:42:22 -05:00
arvidn 934c58a816 merged RC_1_1 into master 2017-01-15 00:45:17 -05:00
Calum Lind de499310f5 [#1217] Fix RuntimeWarning registering pointer with Python
This fix checks for existing registered pointers for alert so that Boost
does not output the following warning when importing libtorrent in Python:

> RuntimeWarning: to-Python converter for boost::shared_ptrlibtorrent::alert already registered; second conversion method ignored.
2017-01-14 22:41:38 -05:00
Calum Lind 9b30d09099 [#1543] Fix missing C++11 flag for building python bindings
* Extract the flags from CXX and put into CXXFLAGS which is
   passed into setup.py extra_compile_args.
 * Remove now redundant os.environ test in setup.py
2017-01-14 19:30:25 -05:00
arvidn febcbbf17c fix make_torrent.py to not use deprecated functions 2017-01-14 16:04:01 -05:00
arvidn ea6e29d23f fix python binding time_point conversion 2016-12-31 12:33:50 -05:00
arvidn 8800cae585 fix msvc-warning in python binding 2016-12-31 02:01:29 -05:00
arvidn 4f89b397b1 fix python build 2016-12-29 15:06:56 -08:00
arvidn 59b322bc79 merged RC_1_1 into master 2016-12-29 08:54:28 -08:00
Arvid Norberg f1e34dfbd5 remove long-standing deprecated filter_pieces functions (#1457)
remove long-standing deprecated filter_pieces functions
2016-12-27 12:42:23 -08:00
arvidn eb5b0e9897 fix another c++98 issue 2016-12-24 11:27:58 -08:00
arvidn fa7846d1fd fix c++98 build 2016-12-24 08:40:49 -08:00
Arvid Norberg a6de426d1e add file_status to python binding (#1448)
add more missing functions to python bindings
2016-12-23 13:57:10 -08:00
arvidn 3f612d7e99 cleaning up of left-overs from torrent eviction functionality 2016-12-23 06:06:59 -05:00
arvidn 820fd29bff add missing session stats functions to python bindings 2016-12-23 06:06:44 -05:00
Arvid Norberg 3f1084d63d strengthened type safety in handling of piece and file indices (#1409)
strengthened type safety in handling of piece and file indices
2016-12-22 10:42:33 -05:00
arvidn a2c4e7490e merged RC_1_1 into master 2016-12-20 01:16:13 -05:00
arvidn a39f3714b2 fix python build with CC/CXX environment 2016-12-08 18:39:43 -05:00
arvidn 864fcfaced initialize piece priorities to 4 2016-12-04 18:36:45 -05:00
Alden Torres d5c4cd7280 fixed sign-compare warnings and some refactor (#1354)
fixed sign-compare warnings and some refactor. make sequence_number backed by std::int64_t
2016-11-27 08:46:53 -05:00
AllSeeingEyeTolledEweSew 3abecd2546 Cast cached_piece_info::kind to int. 2016-11-26 11:06:49 -05:00
Arvid Norberg 54f052a97b allocation slot type (#1352)
use a specialized type for allocation slot indices
2016-11-26 03:09:01 -05:00
arvidn b3c3c2aae6 merged RC_1_1 into master 2016-11-24 07:40:32 -05:00
AllSeeingEyeTolledEweSew c5f1c07a87 Bind cache_status::pieces. (#1323)
expose cache_status::pieces in python binding
2016-11-22 18:38:45 -05:00
arvidn 13f9c11078 fix python binding 2016-11-14 00:43:59 -05:00
arvidn ef1c241647 merged RC_1_1 into master 2016-11-13 21:54:09 -05:00
Arvid Norberg a7dcdf30ef cleanup and fixes to python bindings (#1317) 2016-11-13 20:52:56 -05:00
arvidn c9333849e6 deprecate relative times in torrent_status, replaced by std::chrono::time_point 2016-11-12 17:37:10 -05:00
arvidn ab6940d560 back-port python binding patch to expose cache_flushed_alert 2016-11-11 01:06:23 -05:00
All Seeing Eye Tolled Ewe Sew d69773c9e0 Add python bindings for cache_flushed_alert. 2016-11-10 19:58:47 -05:00
arvidn 583082a3a0 merged RC_1_1 into master 2016-11-09 19:53:55 -05:00
arvidn 19a5d9f989 add proxy_type_t to python binding 2016-11-05 11:37:14 -04:00
arvidn 2a999e1ea7 merge RC_1_1 into master 2016-11-03 23:58:35 -04:00
arvidn 98549a7c13 deprecated session_settings API has been removed. remove it from the test 2016-11-03 23:12:07 -04:00