diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-02-25 20:51:20 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2020-02-25 20:53:29 -0800 |
commit | 4463d5f7cef8dbe8a3455603a438f0f20028f428 (patch) | |
tree | 62431bf3310e37651bbfbd31cff6338c7bc977c2 | |
parent | f8a8e9dcbdcf212f05e610957ba6ff55294049f0 (diff) | |
download | appdirs-4463d5f7cef8dbe8a3455603a438f0f20028f428.tar.gz |
Replace use of deprecated 'setup.py test'
Since setuptools v41.5.0 (27 Oct 2019), the 'test' command is formally
deprecated and should not be used. Now use unittest as the test entry
point.
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | Dockerfile | 4 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 7ca3c98..6becca7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ python: - "3.8" - "pypy3" -script: python setup.py test +script: python -m unittest discover @@ -6,8 +6,8 @@ RUN apt-get -y update && apt-get -y install python3-setuptools && \ WORKDIR /app ADD . /app -RUN python setup.py install && python setup.py test -RUN python3 setup.py install && python3 setup.py test +RUN python setup.py install && python -m unittest discover +RUN python3 setup.py install && python3 -m unittest RUN python -m appdirs RUN python3 -m appdirs @@ -2,4 +2,4 @@ envlist = py{27,py,35,36,37,38,py3} [testenv] -commands = python setup.py test +commands = {envpython} -m unittest discover |