536 Commits

Author SHA1 Message Date
Florian Sesser
0b1387592b Remove now-unused imports to fix codechecks 2024-11-14 12:04:01 +00:00
Florian Sesser
4f20612f3c This pacifies mypy regarding treq/StubTreq for me
Lots of trial and error, incl. trying the latest treq which
ships type annotations... in the end I just removed the stuff
mypy was complaining about and it made the errors go away.
Can it be as simple as that?
2024-11-14 11:51:12 +00:00
meejah
7042442c97 should always be bytes 2024-08-08 17:10:30 -06:00
meejah
38fb089422 Do what 'typing' says I guess? 2024-08-08 16:58:53 -06:00
Alexandre Detiste
4da491aeb0 remove more usage of "future" 2024-03-11 21:37:27 +01:00
Alexandre Detiste
53084f76ce remove more Python2 compatibility 2024-02-28 00:49:07 +01:00
Itamar Turner-Trauring
3fb0bcfff7 Remove unnecessary imports. 2024-02-27 15:37:53 -05:00
Alexandre Detiste
1cfe843d23 more python2 removal 2024-02-23 00:40:25 +01:00
Alexandre Detiste
b856238110 remove old Python2 __future__ statements 2024-02-15 16:53:34 +01:00
Itamar Turner-Trauring
fced1ab01b Switch to using pycddl for CBOR decoding. 2024-01-24 13:50:55 -05:00
Itamar Turner-Trauring
1db76da2e2 Centralize cbor dumping and loading, for better control. 2024-01-24 07:55:57 -05:00
Itamar Turner-Trauring
e6630b59f7 Fix mypy complaints, simplifying code while we're at it 2023-11-17 11:22:06 -05:00
Itamar Turner-Trauring
bab97cf319 Document constraints. 2023-10-19 11:12:44 -04:00
Itamar Turner-Trauring
daec717903 Lints 2023-10-16 11:27:08 -04:00
Itamar Turner-Trauring
cb83b08923 Decouple from reactor 2023-10-16 11:16:10 -04:00
Itamar Turner-Trauring
b60e53b3fb Run blocking code in a thread 2023-10-16 10:38:05 -04:00
Itamar Turner-Trauring
2ccdd183c1 Just always run in thread 2023-10-16 10:10:00 -04:00
Jean-Paul Calderone
50ce8abf9f adapt the existing case to a multi-case structure 2023-08-22 08:50:27 -04:00
Itamar Turner-Trauring
009f063067 Stricter type checking 2023-08-01 15:35:18 -04:00
Itamar Turner-Trauring
e545ab4a80 More accurate type 2023-08-01 15:31:38 -04:00
Itamar Turner-Trauring
176fac7360 Work in Python 3.8. 2023-07-28 14:20:05 -04:00
Itamar Turner-Trauring
00b7e7e178 More type annotations. 2023-07-28 13:48:43 -04:00
Itamar Turner-Trauring
0d0e32646f More type annotations. 2023-07-28 13:42:00 -04:00
Itamar Turner-Trauring
d669099a35 Add more type annotations. 2023-07-28 13:31:53 -04:00
Itamar Turner-Trauring
919e6b339d Add type annotation to _authorized_route 2023-07-28 13:19:53 -04:00
Itamar Turner-Trauring
2b7f3d1707 Add type annotations to _authorization_decorator. 2023-07-28 11:28:13 -04:00
Itamar Turner-Trauring
849f4ed2a5 More annotations. 2023-07-28 11:14:09 -04:00
Itamar Turner-Trauring
46d10a6281 Ensure and test (and necessary refactor) that lack of content-type is same as
CBOR content-type, as per spec.
2023-07-25 15:31:30 -04:00
Itamar Turner-Trauring
bc78dbc25c Point to correct ticket 2023-07-05 10:21:40 -04:00
Itamar Turner-Trauring
ea953f3ba1 Merge remote-tracking branch 'origin/3910-http-storage-server-tor-support' into 4035-new-mypy 2023-06-26 08:50:35 -04:00
meejah
75b9c59846 refactor 2023-06-22 01:59:02 -06:00
meejah
122e0a73a9 more-generic testing hook 2023-06-22 01:29:55 -06:00
Itamar Turner-Trauring
11e0151838 Fix some type issues in storage_client.py 2023-06-14 16:02:04 -04:00
Itamar Turner-Trauring
cab24e4c7b Another service name issue. 2023-06-14 14:12:39 -04:00
Itamar Turner-Trauring
b45ee20ba8 MyPy fixes for allmydata.storage. 2023-06-14 11:07:48 -04:00
Itamar Turner-Trauring
a99361b404 Merge branch '3910-http-storage-server-tor-support' into 4035-new-mypy 2023-06-14 09:56:15 -04:00
Jean-Paul Calderone
cb082b2094 Merge remote-tracking branch 'origin/master' into 3998-new-pyopenssl 2023-06-13 10:35:51 -04:00
Itamar Turner-Trauring
20d4175abc Fix typecheck complaint 2023-06-06 12:18:02 -04:00
Itamar Turner-Trauring
e8744f91e5 Hook up HTTP storage for servers listening on .onion addresses 2023-06-06 12:06:51 -04:00
Itamar Turner-Trauring
74a121da74 Fix bug which meant object could not be created. 2023-06-06 11:47:36 -04:00
Itamar Turner-Trauring
5af0ead5b9 Refactor HTTP client creation to be more centralized. 2023-06-06 10:58:16 -04:00
Itamar Turner-Trauring
96670ded65 Switch to using officially support constants, now part of pyOpenSSL's public
API.

The cryptography APIs we were previously using were not supported and aren't
available in all releases.
2023-06-01 17:27:21 -04:00
Itamar Turner-Trauring
f4a099c801 Merge remote-tracking branch 'origin/master' into 4029-http-storage-client-respects-request-to-use-tor 2023-05-23 14:53:55 -04:00
Itamar Turner-Trauring
d510103f96
Merge pull request #1301 from tahoe-lafs/4027-invalid-unicode
Invalid unicode in Authorization header should give better response

Fixes ticket:4027
2023-05-23 14:53:22 -04:00
Itamar Turner-Trauring
41131ca755
Merge pull request #1302 from tahoe-lafs/4028-more-integration
Fix another integration test failure

Fixes ticket:4028
2023-05-23 14:51:07 -04:00
Itamar Turner-Trauring
b03db14d70 Merge branch '4028-more-integration' into 4027-invalid-unicode 2023-05-23 14:08:09 -04:00
Itamar Turner-Trauring
1ed440812a Add a safety check. 2023-05-22 13:00:20 -04:00
Itamar Turner-Trauring
546a51355a Merge branch '4028-more-integration' into 4029-http-storage-client-respects-request-to-use-tor 2023-05-22 11:43:12 -04:00
Itamar Turner-Trauring
3cf03a5c33 More glue to connect Tor up to the HTTP-based storage client. 2023-05-18 09:28:58 -04:00
Itamar Turner-Trauring
ba9946e6ea Fix tests. 2023-05-10 16:34:02 -04:00