Commit graph

40 commits

Author SHA1 Message Date
ed 8aba5aed4f list active downloads in controlpanel 2024-11-10 02:12:18 +00:00
ed c398553748 pkgres: fix multiprocessing 2024-10-05 17:32:08 +00:00
ed f1646b96ca dist: strip some pointless code 2024-10-01 18:35:36 +00:00
ed d866841c19 pkgres:
* pyz: yeet the resource tar which is now pointless thanks to pkgres
* cache impresource stuff because pyz lookups are Extremely slow
* prefer tx_file when possible for slightly better performance
* use hardcoded list of expected resources instead of dynamic
   discovery at runtime; much simpler and probably safer
* fix some forgotten resources (copying.txt, insecure.pem)
* fix loading jinja templates on windows
2024-09-19 22:04:49 +00:00
Shiz a462a644fb
Python 3.7 package resources support (#98)
add support for reading webdeps and jinja-templates using either
importlib_resources or pkg_resources, which removes the need for
extracting these to a temporary folder on the filesystem

* util: add helper functions to abstract embedded resource access
* http*: serve embedded resources through resource abstraction
* main: check webdeps through resource abstraction
* httpconn: remove unused method `respath(name)`
* use __package__ to find package resources
* util: use importlib_resources backport if available
* pass E.pkg as module object for importlib_resources compatibility
* util: add pkg_resources compatibility to resource abstraction
2024-09-19 09:00:34 +00:00
ed 7d64879ba8 more optimizations,
* 5% less cpu load from clients fetching thumbnails
* and slight improvement to up2k stuff
2024-09-15 17:46:43 +00:00
ed 5ab54763c6 remove pyoxidizer (unmaintained)
partially reverts e430b2567a

the remaining stuff might be useful for other cpython alternatives
2024-04-05 17:51:26 +00:00
ed 8c52b88767 make linters happier 2023-11-30 17:33:07 +00:00
clach04 2acdf685b1 Fix issue #33 - no color output expected when redirecting stdout 2023-06-05 01:58:49 +02:00
ed 03be26fafc improve check for type-hint support 2023-06-04 22:59:25 +00:00
ed c355f9bd91 catch common environment issues (#32):
* error-message which explains how to run on py2 / older py3
   when trying to run from source
* check compatibility between jinja2 and cpython on startup
* verify that webdeps are present on startup
* verify that webdeps are present when building sfx
* make-sfx.sh grabs the strip-hints dependency
2023-06-04 13:13:36 +00:00
ed 705b58c741 support the NO_COLOR environment variable
https://no-color.org/ and more importantly
https://youtu.be/biW5UVGkPMA?t=150
2023-06-02 20:22:57 +00:00
ed 8adfcf5950 win10-based copyparty64.exe 2023-02-14 21:50:14 +00:00
ed 99efc290df fix mdns on windows 2022-12-03 13:31:00 +00:00
ed 0cef062084 misc cleanup 2022-12-01 21:44:31 +00:00
ed c1315a3b39 webdav: misc fixes 2022-11-26 20:06:48 +00:00
ed b3eb117e87 add mdns zeroconf announcer 2022-11-13 20:05:16 +00:00
ed edad3246e0 make pylance happier 2022-10-29 20:40:25 +00:00
ed 1c66d06702 cleanup versionchecks 2022-09-25 21:31:47 +02:00
ed 1d367a0da0 cleanup 2022-09-23 20:37:37 +02:00
ed e430b2567a add pyoxidizer (windows-only) 2022-09-10 17:33:04 +02:00
ed 5d19f23372 accurate num.cores detection 2022-08-29 19:24:48 +02:00
ed 728dc62d0b optimize nonsparse uploads (fat32, exfat, hpfs) 2022-06-16 17:51:42 +02:00
ed 438384425a add types, isort, errorhandling 2022-06-16 01:07:15 +02:00
ed 0db1244d04 also consider TMPDIR and friends 2021-12-06 09:47:39 +01:00
ed ece08b8179 create ~/.config if /tmp is readonly 2021-12-06 02:02:44 +01:00
ed d9e83650dc handle invalid XDG_CONFIG_HOME on linux 2021-08-09 22:13:16 +02:00
ed 2f85c1fb18 add logging to file 2021-07-05 23:30:33 +02:00
ed 4dff726310 initial thumbnail and icon stuff 2021-05-25 03:37:01 +02:00
ed 403261a293 support pyinstaller 2021-05-12 21:21:07 +02:00
ed e4801d9b06 support msys2-python 2021-04-21 18:28:44 +02:00
ed 8dca8326f7 osx fixes + shrinking 2020-05-12 22:36:21 +02:00
ed 5283837e6d windows fixes 2020-04-20 03:19:58 +00:00
ed e679d1f5f8 support termux 2019-07-16 21:43:37 +00:00
ed 9da6a73044 full-duplex broker for up2k-registry 2019-07-01 02:42:29 +02:00
ed 9fcd4823b5 add cursed TLS to enable crypto.subtle, thx webkit 2019-06-25 21:01:00 +00:00
ed 63e089a5f0 support mojibake and py3.2 2019-06-12 16:39:43 +00:00
ed afa4216591 static resources 2019-06-02 14:16:53 +00:00
ed b3de0712d3 config file parser 2019-05-31 18:03:44 +00:00
ed 5b708c45ed hello world 2019-05-26 16:30:19 +00:00