Commit graph

44 commits

Author SHA1 Message Date
Adrian Sampson
00dece4dc2 Shorter default envlist for tox (#2035)
Now just typing `tox` or `detox` runs some sensible defaults. (This excludes
Python 3 and coverage.) You can request other environments explicitly with
`-e`.
2016-06-06 11:22:53 -07:00
Jack Wilsdon
fa7afba327 Remove basepython so any version can be used 2016-06-03 02:47:19 +01:00
Jack Wilsdon
85864eb747 Add specific versions for environments in tox 2016-06-03 02:32:09 +01:00
Jack Wilsdon
82df8d18df Update tox configuration
- Add support for Python 3 testing.
 - Add Python 3.3, 3.4 and 3.5 tests to Travis and AppVeyor.
 - Allow arguments to be passed to tox from test matrix.
 - Simplify tox configuration so that we now only have `test`, `flake8`
   and `docs` tasks.
2016-06-03 00:46:02 +01:00
Jack Wilsdon
078a0702d3 Move single line properties to the same line as the key 2016-04-29 18:37:55 +01:00
Jack Wilsdon
144c732ab0 Add flake8 check for pep8 naming
Add flake8 check for pep8 naming using pep8-naming.
2016-04-26 23:33:52 +01:00
Adrian Sampson
53b5faf7a8 Add __future__ import style checker
This adds the [flake8-future-import][f] plugin for flake8, which enforces the
standard set of `__future__` imports at the top of all Python files. This
revealed a fair number of files that need to be fixed.

To be revisited after #1887 is merged.

[f]: https://github.com/xZise/flake8-future-import
2016-04-16 01:26:47 +02:00
wordofglass
0346be701e list skipped tests when running nosetests 2016-04-14 17:14:49 +02:00
Adrian Sampson
fd4a81cf3d Re-enable pypy in tox
This wasn't a problem and my fix didn't work anyway. 😳
2015-07-27 12:23:01 -07:00
Adrian Sampson
bb8b5e7092 Temporarily disable pypy on Travis
Another RPython failure inside PyPy that I can't reproduce locally. :(
2015-07-27 11:56:41 -07:00
Kylie McClain
687dc9ddcd Use python-mpd2 instead of python-mpd. Fixes #1472. 2015-05-24 18:24:29 -04:00
Adrian Sampson
d6348a4da2 tests: Use bytes for mock responses
Also, require a newer version of responses that is less sensitive to this.
2015-05-13 18:09:35 -07:00
Cody Reichert
b776a71a8c handle mpdstats update_rating when item is None / add appropriate tests 2015-04-28 23:23:27 -05:00
Adrian Sampson
020ed0c76b Merge pull request #1389 from tomjaspers/faster-levenshtein
Use Levenshtein distance from Jellyfish library
2015-04-05 23:41:27 -05:00
Bruno Cauet
c6f6e3164a Merge branch 'thread-safe-logging2' 2015-04-01 10:45:12 +02:00
Bruno Cauet
f6f68420b5 Drop Python 2.6 support
See PR #1366 and PR #1390 for a thorough explanation.
2015-04-01 10:43:33 +02:00
Tom Jaspers
57196e643a Use Levenshtein distance from Jellyfish library
Its about two orders of magnitude faster than current 'handrolled' one

See #646
2015-03-31 14:02:58 +02:00
Bruno Cauet
c6455c269f Merge branch 'master' into thumbnails
Conflicts:
	docs/changelog.rst
2015-02-09 16:08:29 +01:00
Bruno Cauet
39183cd539 Add pyxdg and pathlib to tox.ini testenv 2015-01-29 13:17:51 +01:00
Adrian Sampson
84b42b6f1e Tox: Do not conflate 2.6 with setup.py test
It was confusing to have different ways of running the tests for the two
versions. This also reduced the verbosity, making Travis' web interface more
useful.
2015-01-27 14:04:12 -08:00
Adrian Sampson
c1b47bbe9f Tox/Travis: Cut down on dependencies
Faster tests through fewer unnecessary deps.
2015-01-26 15:03:21 -08:00
Adrian Sampson
fd1817f406 Fiddling with Travis build
- verbose nose mode (easier to tell what's erroneously being skipped, fore
  example)
- less redundant installs
- travis_retry coveralls install
- separate py27cov tox environment; default tox runs will not use coverage,
  which can take a long time; use tox -e py27cov to get coverage numbers
2014-10-11 21:29:19 -07:00
Fabrice Laporte
f122e2a966 add bs4 dependency
and reorder reps list alphabetically for readability
2014-10-08 14:43:55 +02:00
Fabrice L.
cf6a15df95 revert 0f5c2a4 2014-10-08 14:27:13 +02:00
Fabrice L.
0f5c2a41b2 tox: add bs4 dependency
bs4 is required by few test_lyrics.py tests
2014-10-08 13:34:05 +02:00
Thomas Scholtes
6d22c7489c Test build with setup.py
Since some builds use `python ./setup.py test` to test beets we want to make
sure it runs smoothly.
2014-04-25 12:56:01 +02:00
Thomas Scholtes
68595ee09d Import rar archives 2014-04-15 18:24:09 +02:00
Thomas Scholtes
c01fc542ed Support for initial_key with EchoNest 2014-04-11 21:03:11 +02:00
Thomas Scholtes
9c8b639644 {posargs} for tox 2014-04-11 15:10:59 +02:00
Thomas Scholtes
d164d514d9 Remove tox's system site packages 2014-04-09 18:11:18 +02:00
Thomas Scholtes
6eb497b21b Remove pathlib dependency 2014-04-07 18:33:12 +02:00
Thomas Scholtes
9d87a7fc02 Make convert --keep-new work again
Iincludes some more tests for the convert plugin. The test use the extended
TestHelper class and the new pathlib (see #621).
2014-04-07 18:07:43 +02:00
Yevgeny Bezman
2a6e5c7273 Merge branch 'replaygain-backends'
Conflicts:
	tox.ini
2014-04-06 08:45:35 +03:00
Thomas Scholtes
6286bc0b0f Include site-packages on travis and skip tests otherwise 2014-04-04 22:43:08 +02:00
Adrian Sampson
fba8949e2f tox: pass args through to nosetests
This way, you get parallel testing by passing --processes=N.

You can get even more parallelism using detox:

$ detox -- --processes=4
2014-04-03 20:25:04 -07:00
Thomas Scholtes
eaab0bcc6e Enable coverage with tox -e py27 2014-04-03 21:46:54 +02:00
Adrian Sampson
0c049f2e5c tox: restore pypy/py26 configs, sphinx -q (#643) 2014-04-02 20:47:04 -07:00
Thomas Scholtes
9fab6e7ca3 Use coverage only with py27 2014-04-03 01:52:21 +02:00
Thomas Scholtes
8488f665fc Add sphinx dependency to tox virtual environment 2014-04-03 01:41:18 +02:00
Thomas Scholtes
7927146f12 We need sphinx before installing the tox environment 2014-04-03 00:58:57 +02:00
Thomas Scholtes
2ff7735f89 Sphinx is required to build the package 2014-04-02 23:49:35 +02:00
Thomas Scholtes
bee80c4c49 Use tox to test on travis and add docs and flake8
Travis CI now also confirm that the docs build correctly and the flake8 runs
succesfully. Tox also has the advantage that it tests that beets installs
correctly.

Currently flake8 does not run succesfully so it is configured to not fail the
build on Travis.
2014-04-02 22:48:53 +02:00
Adrian Sampson
713faca533 hg-compatible tox config 2012-06-24 13:06:34 -07:00
Marc Abramowitz
39acbac9ce Add tox.ini for tox (http://tox.testrun.org/) 2012-06-24 00:41:10 -07:00