Commit Graph

26 Commits

Author SHA1 Message Date
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
47e4c436a8 tox/travis/appveyor: enable testing on py3.7 2018-07-01 10:29:48 -07:00
Brian Warner
b216c0adf3 tox: increase flake8 complexity limit to 40, we can lower later 2018-06-16 16:19:38 -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
Brian Warner
598ab8b62a drop py3.3 support, since new txtorcon imports asyncio on py3
py3.3 is pretty rare in the wild anyways
2017-05-24 17:31:43 -07: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
9a4de44cb0 tox: clean up, install with [dev] 2017-01-15 16:23:23 -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
123073a519 tox coverage: always build .xml after the run
I almost always want this, and I keep forgetting to run 'coverage xml'
myself.
2016-12-10 15:29:10 -08:00
Brian Warner
fc9a6f7d99 tox: turn on 'usedevelop'
This should fix the coverage data's filenames: previously they were like
".tox/coverage/lib/python2.7/site-packages/wormhole/foo.py", now they
should be "src/wormhole/foo.py".
2016-07-01 09:41:57 -07:00
meejah
e11c7496a9 add 'dev' extra, with mock + tox, and a pypy environment 2016-06-22 02:14:34 -06:00
Brian Warner
2d85c71099 tox.ini: make test and test-coverage look the same 2016-06-03 16:15:30 -07:00
laharah
74b4a10ac1 Windows build and CI patch
a compressed patch to apply new settings for the windows build
and allows appveyor to execute tox tests correctly
2016-06-03 16:12:55 -07:00
Brian Warner
783cd984f6 add 'coverage' environment for tox 2016-05-24 16:03:39 -07:00
Brian Warner
3da52b0a3e add 'mock', building out test_wormhole 2016-05-22 11:31:00 -07:00
Brian Warner
a4ce663c31 tox.ini: pyflakes-1.2.3 is out, and works
This no longer suffers from the bug which caused pyflakes to crash when
it sees "from . import x".
2016-05-12 16:43:46 -07:00
Brian Warner
3f5b66eddc pyflakes-1.2.2 is broken too 2016-05-06 15:45:48 -07:00
Brian Warner
46fb9d9cfc tox: reject pyflakes-1.2*, due to a bug
https://bugs.launchpad.net/pyflakes/+bug/1560134 causes an internal
error in pyflakes 1.2.0 and 1.2.1 when it encounters one of our "from .
import x" statements.
2016-05-06 08:54:25 -07:00
Brian Warner
7a5a99a1a8 unsplit tests step 3: modify files 2016-04-20 18:54:10 -07:00
Brian Warner
f9e3b83456 move tests step 2: fix imports, setup.py, tox.ini 2016-04-18 16:45:03 -07:00
Brian Warner
83c2612fc3 Require twisted (>=16.1.0) all the time.
The core Wormhole exchange will retain a blocking/non-Twisted
implementation, but the file-transferring Transit class is going to be
Twisted-only (maybe Twisted+asyncio). I want to improve the
protocol (add more parallelism, reduce round-trips), and the blocking
implementation is a messy bundle of threads and ick.

When this process is done (eventually), I'll be splitting out the
blocking Wormhole class into a separate distribution, which doesn't
depend upon Twisted.
2016-04-18 15:47:05 -07:00
Brian Warner
c856081a58 tox: we no longer need twisted-trunk, 16.1.0 is good 2016-04-15 16:09:23 -07:00
Brian Warner
d86dc05b5f tox: remove 'meta', do pyflakes/smoketest in each build 2016-03-02 13:35:12 -08:00
Brian Warner
f28f294138 first attempt at windows builds, with appveyor.com
The .appveyor.yml tells the tox.ini to install pypiwin32 directly,
rather than through a "twisted[windows]" extra. I wasn't able to get the
"extra" syntax to work properly under appyeyor, even though it worked ok
for me locally.

We use an extra "meta" tox environment to run "wormhole --version". This
confirms that versioneer is getting the right value, since we're now
running it from an installed sdist, rather than a checked-out git source
tree.
2016-02-27 16:11:02 -08:00
Brian Warner
cc9b2c574b tox: temporary workaround for twisted bug
Install twisted from git trunk until a release after twisted-15.5.0.
2016-02-27 14:43:33 -08:00
Brian Warner
101ac4c1af switch to tox for running tests 2016-02-27 14:39:56 -08:00