Commit graph

65 commits

Author SHA1 Message Date
temrix
88aea76fcb
Add requests_oauthlib to test deps. 2019-09-19 22:35:40 +02:00
Adrian Sampson
23da057ceb tox: Don't use Python 3.8 by default
3.8.0 final is not released yet. This default set is meant to be a
reasonable list for quick iteration during development.
2019-05-09 14:22:48 -04:00
Jack Wilsdon
8df213e9b6
Support Python 3.8 (fixes #3201) 2019-03-31 18:26:22 +01:00
Jack Wilsdon
2564db9055
Lock pep8-naming to 0.7.x 2019-01-31 00:16:11 +00:00
FichteFoll
d0ed5cbb9a
Actually run tests on Python 3.7 2018-09-13 23:42:42 +02:00
Adrian Sampson
66ed015ea0 Add Python 3.7 to Tox and Travis 2018-07-22 12:35:40 -04:00
Jack Wilsdon
ac06be1a5a Add flake8 check for blind excepts
Add flake8 check for blind excepts using flake8-blind-except (B901).
2017-04-29 00:03:45 +02:00
Adrian Sampson
c21f456f03 tox: Use Python 3.6 in default tests
Just typing `tox` should use the most relevant Python versions.
2017-01-20 20:53:05 -08:00
Adrian Sampson
c70a9bb873 Enable Python 3 tests by default in Tox config
Now that we're supporting it, I plan to run the Python 3 tests as part of
my normal coding workflow.
2016-11-26 17:32:49 -05:00
Diego Moreda
1148acaaf1 discogs: revise position regexp, add tests, tox
Revise the regular expression used for extracting information from a
discogs position, making the subtrack_index only be matched if one of
the other groups is matched as well. Split the definition into several
lines in order to try to document it a bit more clearly.
Add unit tests for position parsing and non standard positions.
Fix the underscore on tox dependency.
2016-10-10 17:42:27 +02:00
Diego Moreda
e7f2a111e4 discogs: add test dependencies, fix spelling 2016-10-09 17:57:36 +02:00
Johnny Robeson
bdb2de69bb add python 3.6 to tox.ini 2016-09-16 23:29:29 -04:00
Johnny Robeson
08cd22834b add flake8-coding to our tox config
Now we can enforce that all py files have the coding magic comment with
utf-8.
2016-08-07 04:09:58 -04:00
Adrian Sampson
6a71e4bad4 tox: Add a py35-flake8 environment
This is not on by default, but it's still useful to have around.
2016-07-25 14:58:49 -04:00
Johnny Robeson
b5d22ec7b8 don't install pathlib on py 2.7
Fixes #2105
2016-07-05 22:29:45 -04:00
Johnny Robeson
b564683d59 use -m nose for tests on python 2.x too 2016-07-04 03:00:28 -04:00
Johnny Robeson
e434074bf0 reorganize tox.ini so we can pass -bb to our 3.x tests
It's done this way so the tests don't run twice on py 3.x tests

Thanks to @jackwilsdon for the tip!
2016-07-04 02:57:00 -04:00
Johnny Robeson
2617536294 Remove support for Python 3.3
It doesn't seem like Python 3.3 is worth supporting anymore. I'm not
sure if any popular(ish) distro supports Python 3.3, only 3.2 or >=3.4
2016-06-30 07:15:40 -04:00
Johnny Robeson
5208cfcaed Revert "add six as a new dependency for beets" for now
It will return after the next bugfix release
This reverts commit 705557a5d2.
2016-06-20 00:16:18 -04:00
Johnny Robeson
705557a5d2 add six as a new dependency for beets 2016-06-19 22:55:31 -04:00
Johnny Robeson
ed4ce6214b remove pyechonest from tox config 2016-06-11 03:11:34 -04:00
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