Commit Graph

1344 Commits

Author SHA1 Message Date
Edward Betts
010d1843c0 Correct spelling mistakes 2018-11-23 07:38:21 +00:00
Brian Warner
13102d3eed NEWS: update for 0.11.2 release 2018-11-13 15:08:53 -08:00
Brian Warner
a04e798615 NEWS: update for 0.11.1 release 2018-11-13 10:26:29 -08:00
Brian Warner
4e97bb041a fix/hush some flake8 warnings
test_ipaddrs.py had an invalid regexp, caught by the latest version of flake8

The new flake8 complains about both W503 (line break inside a conditional
before a binary operator) and W504 (line break *after* the operator). I think
break-before is the new preferred style, but for now I'm just going to ignore
them both and leave the code alone.
2018-11-13 10:21:41 -08:00
Brian Warner
74da87bec2 change __main__.py to use relative imports
This should fix `python -m wormhole` on py2. Closes #315.
2018-11-13 09:59:36 -08:00
Jakub Wilk
24836cea63 docs: fix typos 2018-11-03 15:38:58 +01:00
Brian Warner
0eaba64718 NEWS: update for 0.11.0 release 2018-10-16 16:31:01 -07:00
Brian Warner
da33f9f918 MANIFEST.in: add some missing files 2018-10-16 16:29:24 -07:00
Brian Warner
54a369c95a setup.py: bump dep on transit-relay to latest 0.1.2 2018-10-16 16:12:51 -07:00
Brian Warner
3f5bb3b5d5 NEWS: minor change to exercise travis
it's probably kind of dusty after all this time
2018-10-16 16:05:02 -07:00
Brian Warner
6d4eb8e69b add test_keys to nail down symmetric encryption format
This establishes what our mailbox protocol does to encrypt the
individual (post-SPAKE2) messages, which combines NaCl SecretBox and our own
key-derivation choices. I'd like to move off of NaCl/libsodium and I think
some RFC7539-implementing library might be compatible, and with these test
vectors I can check that. I also want to copy these tests into the Rust port.
2018-08-21 10:12:23 -07:00
Brian Warner
777c963c9a README: note py37 compatibility 2018-07-27 14:46:13 -07:00
Brian Warner
5d712395ef Merge branch 'py37'
Enable py37 in travis-ci
2018-07-27 14:33:25 -07:00
Brian Warner
454bf1eaf6 simplify .travis.yml 2018-07-27 14:26:31 -07:00
Brian Warner
d6866e11fe update allow_failures 2018-07-27 14:17:16 -07:00
Brian Warner
2bf9370c68 travis: use different dists/sudo for different python versions 2018-07-27 14:05:30 -07:00
Brian Warner
d893f7d39a try dist:xenial 2018-07-11 17:05:43 -07:00
Brian Warner
43bf219735 travis: use sudo=true and group=edge to get bionic
which maybe can install py37
2018-07-11 16:36:50 -07:00
Brian Warner
9d220bea73 travis: try "dist: xenial"
I don't think this will actually work
2018-07-11 16:13:29 -07:00
Brian Warner
ef32b23fe9 travis: move to 'trusty' dist
the old 'precise' environment doesn't have py3.7 available
2018-07-11 13:30:46 -07:00
Brian Warner
1181a7dba7 travis: require py37 to pass 2018-07-11 13:23:04 -07:00
Brian Warner
3f099cc51f setup.py: bump to txtorcon-18.0.2 to fix py3.4 2018-07-02 23:57:11 -07:00
Brian Warner
5ccda71467 Merge branch 'fix-py37'
I tested this locally (on MacOS) against python3.7.0, and it now works. This
will appear broken on travis/appveyor until those CI environments add support
for py3.7 (but the failures should be ignored since py3.7 is in the
'allowed_failures' list).

closes #306
2018-07-01 14:34:41 -07:00
Brian Warner
eacc6fe450 travis/appveyor: allow failures of the py3.7 build
until they're actually supported by both systems. Neither has a py3.7 image
available yet.
2018-07-01 14:33:28 -07:00
Brian Warner
4531513602 cmd_send/receive: work around python3.7.0 bug
See https://bugs.python.org/issue26175 . tempfile.SpooledTemporaryFile
doesn't fully implement the IOBase abstract class, which breaks because
py3.7.0's new zipfile module tries to delegate .seekable down to the wrapped
file and causes an AttributeError.

refs #306
2018-07-01 14:27:32 -07:00
Brian Warner
47e4c436a8 tox/travis/appveyor: enable testing on py3.7 2018-07-01 10:29:48 -07:00
Brian Warner
5dd41cead3 setup.py: update to latest mailbox-server 0.3.1 2018-06-23 19:31:29 -07:00
Brian Warner
206005670f NEWS: update with recent changes 2018-06-16 17:31:37 -07:00
Brian Warner
b06eda5f11 setup.py: update to newly-released mailbox-server 0.2.0 2018-06-16 17:26:53 -07:00
Brian Warner
2413af5f87 delete Dockerfile: broken, and I think it's for the server anyways
The servers were moved out to separate repos (magic-wormhole-mailbox-server
and magic-wormhole-transit-relay), and I think this Dockerfile was building
an image mostly to run the mailbox server.

It might make sense in the future to have a Docker image for just the client,
in which case it'll be time to bring these Dockerfiles back with different
contents.

refs #295
2018-06-16 16:55:33 -07:00
Brian Warner
7278925b11 Merge PR296: require pep8 formatting 2018-06-16 16:46:44 -07:00
Brian Warner
41fabd39ba test_machines: remove no-longer relevant comment
The flake8 config excludes E741, which would complain about using
'l' (lower-case ell) as a variable name. We use this for the Lister object in
one test that uses single-character variable names for all the machines ('b'
for Boss, 'm' for Mailbox, etc). That comment was added before excluding
E741. If we ever restore that warning, we might want to rename the variable.
2018-06-16 16:33:27 -07:00
Brian Warner
fc177726e1 cli.py: move timing check back to top
We care about how long it takes to import all the wormhole-specific things,
to investigate user-perceived latency from the time the command is launched
to the time they can actually interact with it. So we need to record
`time.time()` before doing the rest of the imports, even though pep8 says all
imports should be done before any non-importing statements.
2018-06-16 16:27:11 -07:00
Brian Warner
1444e32746 extreme measures to appease last pep8 complaint
a singly-parenthesized 'if' condition will always line up with the 'then'
body, won't it
2018-06-16 16:22:40 -07:00
Brian Warner
dada79d85c fix remaining pep8 complaints 2018-06-16 16:19:38 -07:00
Brian Warner
b216c0adf3 tox: increase flake8 complexity limit to 40, we can lower later 2018-06-16 16:19:38 -07:00
Brian Warner
b5b8cd1260 Merge branch 'master' into pr296 2018-06-16 16:09:38 -07:00
Brian Warner
1011197dce Merge PR304: fix long description on PyPI 2018-06-16 11:10:40 -07:00
Brian Warner
5335cfb8b6 Merge PR300: use pywin32 instead of pypiwin32 2018-06-16 11:09:32 -07:00
Marius Gedminas
21dbf00a7f
Add long_description_content_type to setup.py
The new PyPI code discards long_description when it's not valid ReStructuredText.  Luckily it also supports Markdown, but you have to [specify the content type](https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py) explicitly in that case.

(IIRC for this to work correctly you also have to use sufficiently recent versions of setuptools and twine to upload releases.)

Should fix #303.
2018-06-12 14:08:34 +03:00
Ofek Lev
16c48a54f1
update Windows dependency 2018-06-02 17:36:15 -04:00
Thomas Waldmann
a333a02366 use pyinstaller to build wormhole fat/standalone binary
tested with/on:
- ubuntu linux 18.04 amd64
- pyinstaller 3.3.1 (pip install pyinstaller)
- python 3.6.5

There is a good chance it also works on FreeBSD, maybe also on macOS.

The change in __main__.py was required because otherwise it complains about
__main__ not being a package when trying the dot-relative import.
2018-06-02 18:05:45 +02:00
Brian Warner
6f42433c57 docs/api: minor rephrasings 2018-05-28 23:42:04 -07:00
Vasudev Kamath
aac5980bf4 Enable checking for pep8 confirmance in tox
Also make sure to ignore E741 naming a variable as l will raise this error and
reason is l is similar to 1 and people might get confused. For me it doesn't
look like an error hence ignored in tox.ini
2018-04-21 13:00:25 +05:30
Vasudev Kamath
12dcd6a184 Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
Brian Warner
355cc01aee Merge PR293: include client version in server BIND message 2018-04-03 17:11:53 -07:00
Brian Warner
5c84f6a373 wormhole: slightly different way to unicode-encode the version
(this is somewhat more in line with how this distinction is made elsewhere in
the code)
2018-04-03 17:10:46 -07:00
Brian Warner
0dd3a12546 cosmetic changes, remove debug print 2018-04-03 17:05:33 -07:00
Baime
1197e5fb6d fix py 3.x versioneer issue 2018-03-23 18:19:31 +01:00
Baime
e77a2d605b bind passes tuple, fixed implementation issues 2018-03-23 17:33:48 +01:00