Commit Graph

881 Commits

Author SHA1 Message Date
Shannon Mulloy
ffefb5ebdc improve coverage with input mock 2017-02-05 15:42:49 -08:00
Shannon Mulloy
33526b2180 rx: _remove_existing after accept 2017-02-05 13:29:20 -08:00
Shannon Mulloy
56a0a1f584 rx: allow overwrite with --output-file= #73 2017-02-04 19:27:09 -08:00
Brian Warner
20619bcce7 send: set allowZip64=True, to handle large (>2GB) directories
refs #138
2017-02-02 11:40:24 -08:00
Brian Warner
625cb96b63 tox: simplify with new-ish tox features
use 'extras' and 'usedevelop' instead of 'deps = --editable=.[dev]'
2017-01-16 22:35:10 -05:00
Brian Warner
abe305a80d NEWS: update for 0.9.2 release 2017-01-16 18:21:42 -05:00
Brian Warner
775a35d337 update Tor docs, mention py2-only 2017-01-16 18:21:42 -05:00
Brian Warner
12d676f7dc MANIFEST.in: include snapcraft.yaml 2017-01-16 18:10:01 -05:00
Brian Warner
47a22fde6f more NEWS updates 2017-01-16 17:57:40 -05:00
Brian Warner
ed674e5ffe transit: increase connection timeout from 15s to 60s
I haven't seen any timeouts yet, but I'm thinking ahead to .onion connections
that might take longer than 15 seconds to establish.
2017-01-16 17:56:16 -05:00
Brian Warner
862820679c don't hang when asked to send a zero-length file
closes #98
2017-01-16 17:29:40 -05:00
Brian Warner
360ad70667 update NEWS 2017-01-16 16:50:24 -05:00
Brian Warner
38c8a7192c Merge branch 'fix-tor-2' 2017-01-16 11:37:44 -05:00
Brian Warner
f2704c6ce0 cli: oops, fix ssh args
wish there were some tests for this
2017-01-16 11:34:32 -05:00
Brian Warner
df62e16462 cli: handle tor args in 'ssh' subcommands 2017-01-16 11:29:20 -05:00
Brian Warner
c6ac04433f add docs/tor.md 2017-01-16 11:14:23 -05:00
Brian Warner
47007273ec rewrite Tor support (py2 only)
The new TorManager adds --launch-tor and --tor-control-port= arguments
(requiring the user to explicitly request a new Tor process, if that's what
they want). The default (when --tor is enabled) looks for a control port in
the usual places (/var/run/tor/control, localhost:9051, localhost:9151), then
falls back to hoping there's a SOCKS port in the usual
place (localhost:9050). (closes #64)

The ssh utilities should now accept the same tor arguments as ordinary
send/receive commands. There are now full tests for TorManager, and basic
tests for how send/receive use it. (closes #97)

Note that Tor is only supported on python2.7 for now, since txsocksx (and
therefore txtorcon) doesn't work on py3. You need to do "pip install
magic-wormhole[tor]" to get Tor support, and that will get you an inscrutable
error on py3 (referencing vcversioner, "install_requires must be a string or
list of strings", and "int object not iterable").

To run tests, you must install with the [dev] extra (to get "mock" and other
libraries). Our setup.py only includes "txtorcon" in the [dev] extra when on
py2, not on py3. Unit tests tolerate the lack of txtorcon (they mock out
everything txtorcon would provide), so they should provide the same coverage
on both py2 and py3.
2017-01-15 22:39:03 -05:00
Brian Warner
203216c0ff cli: move TorArgs out to separate decorator 2017-01-15 22:21:29 -05:00
Brian Warner
aa772858f5 cli: print useful error when --tor is requested but unavailable 2017-01-15 17:35:46 -05:00
Brian Warner
33370bb1b3 transit: mention tor when describing connections that use it 2017-01-15 17:03:40 -05:00
Brian Warner
2d949f23c6 setup.py: refactor slightly 2017-01-15 16:26:23 -05:00
Brian Warner
9a4de44cb0 tox: clean up, install with [dev] 2017-01-15 16:23:23 -05:00
Brian Warner
bcac0c74f3 codes: don't assume 'readline' has a __doc__
This fixes cygwin, which (for some reason) doesn't include docstrings in the
readline module.

closes #111
2017-01-14 17:56:49 -05:00
Brian Warner
d1c3c621e8 Merge branch '15-advise-tab' 2017-01-12 16:24:59 -08:00
Brian Warner
b3763f9e78 show "you can use tabs" reminder if code was input without completion
refs #15
2017-01-12 16:14:42 -08:00
Brian Warner
62b069dea6 Wormhole: control stderr 2017-01-12 16:14:42 -08:00
Brian Warner
174b56debd Merge PR131: add snapcraft.io packaging
closes #131
2017-01-12 15:34:42 -08:00
Leo Arias
6ecb4a9868 Add the packaging metadata to build the wormhole snap 2017-01-12 15:34:28 -08:00
Brian Warner
f1a72aa4a4 travis: 3.6 is supported now
Also add 'nightly' to look for problems with the upcoming python
release (currently 3.7-dev).
2017-01-12 15:14:20 -08:00
Atul Varma
cfc6e44d68 Make footnotes section an HTML comment
I noticed that the footnotes section appears as a visible heading when rendered as HTML (e.g. in GitHub), which looks odd because there's nothing below it, so I thought it might be useful to wrap it in an HTML comment so it's only seen by those who view it in its text form.  Feel free to close this PR if you disagree though!
2017-01-04 18:58:58 -05:00
Brian Warner
2e3a0d4a1d change URL of public relay to new DNS names
These point to the same host (same IP address) as before, but the new names
are tied to the project's official domain (magic-wormhole.io), rather than my
personal one, so they can be managed independently.
2017-01-02 23:42:44 -05:00
Brian Warner
7f2edeeb11 document some attacks
closes #107
2017-01-01 14:29:48 -05:00
Brian Warner
92f8c60b31 upgrade to versioneer-0.18 2017-01-01 14:10:57 -05:00
Brian Warner
7393f1e80d NEWS: update for 0.9.1 release 2017-01-01 13:15:04 -05:00
Brian Warner
7d995ca1d5 transit server: respect --blur-usage= by not logging connections 2017-01-01 13:00:35 -05:00
Brian Warner
af79897fc2 NEWS: reflow previous entry 2017-01-01 11:29:12 -05:00
Brian Warner
822fb212c4 Merge branch '103-transit-priority' 2016-12-31 00:59:20 -05:00
Brian Warner
b2fd899ac9 prioritize relay connections
closes #103
2016-12-31 00:33:00 -05:00
Brian Warner
8b864c3eae parse/transmit/record hint priorities
Use --transit-helper=tcp:HOST:PORT:priority=1.3 to override the default 0.0 .
Larger (positive) priority numbers will be attempted first.
2016-12-31 00:32:42 -05:00
Brian Warner
bc17047983 test_transit: refactor, simplify 2016-12-31 00:31:23 -05:00
Brian Warner
1abe733a81 more coverage: parse_hint_argv 2016-12-31 00:25:15 -05:00
Brian Warner
fe6ff466d8 more coverage: parse_tcp_v1_hint 2016-12-31 00:21:34 -05:00
Brian Warner
511a73c491 improve coverage: Transit._endpoint_from_hint_obj 2016-12-31 00:09:58 -05:00
Brian Warner
7f54d810eb remove unused+uncovered code 2016-12-31 00:08:26 -05:00
Brian Warner
361952fdd9 README: improve Fedora-specific installation hints
refs #120
2016-12-29 13:52:25 -05:00
Brian Warner
1882e51a3b README: note py3.6 compatibility 2016-12-29 13:51:40 -05:00
Brian Warner
ff619c073e turn on python3.6 builds for tox and travis
Python3.6 was just released a few days ago, and travis hasn't yet added it
for real, so we use "3.6-dev" until they get it deployed completely.
2016-12-27 00:39:58 -05:00
Brian Warner
d74b16486e Merge branch 'pr120'
Closes #120
2016-12-26 16:19:36 -05:00
Brian Warner
636fc94840 README: rewrap, update windows/py3 note. 2016-12-26 16:19:29 -05:00
xloem
2b049ac7c6 Missing build dependency 2016-12-26 16:19:29 -05:00