Skip to content

Commit

Permalink
Update tox and CI.
Browse files Browse the repository at this point in the history
We used to optionally support requests and CacheControl extras and we
tested some of the combinations in CI. This is all handled by / bundled
with pip now, so kill.
  • Loading branch information
jsirois committed Nov 8, 2019
1 parent 8fb219a commit 155d5ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 56 deletions.
24 changes: 4 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,6 @@ matrix:
name: TOXENV=py27-subprocess
script: tox -v -e py27-subprocess

- <<: *x-linux-27-shard
name: TOXENV=py27-requests
script: tox -v -e py27-requests

- <<: *x-linux-27-shard
name: TOXENV=py27-requests-cachecontrol
script: tox -v -e py27-requests-cachecontrol

- <<: *x-linux-shard
name: TOXENV=py35
env:
Expand All @@ -159,14 +151,6 @@ matrix:
name: TOXENV=py37
script: tox -v -e py37

- <<: *x-linux-37-shard
name: TOXENV=py37-requests
script: tox -v -e py37-requests

- <<: *x-linux-37-shard
name: TOXENV=py37-requests-cachecontrol
script: tox -v -e py37-requests-cachecontrol

- <<: *x-linux-pypy-shard
name: TOXENV=pypy
script: tox -v -e pypy
Expand All @@ -184,12 +168,12 @@ matrix:
script: tox -v -e pypy-integration

- <<: *x-osx-27-shard
name: TOXENV=py27-requests
script: tox -v -e py27-requests
name: TOXENV=py27
script: tox -v -e py27

- <<: *x-osx-37-shard
name: TOXENV=py37-requests
script: tox -v -e py37-requests
name: TOXENV=py37
script: tox -v -e py37

- <<: *x-osx-27-shard
name: TOXENV=py27-integration
Expand Down
47 changes: 11 additions & 36 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
skip_missing_interpreters = True
minversion = 1.8
envlist =
py{py,27,37}-requests,style,isort-check,integration-tests
py{py,27,37},style,isort-check,integration-tests

[testenv]
commands =
Expand All @@ -15,11 +15,6 @@ deps =
list-tests: mock==2.0.0
py27: mock==2.0.0
pypy: mock==2.0.0
run: requests
requests: requests
requests: responses
cachecontrol: CacheControl
cachecontrol: lockfile
coverage: coverage==4.5.1
subprocess: subprocess32
passenv =
Expand Down Expand Up @@ -62,28 +57,16 @@ commands = python scripts/list_tests.py
[testenv:py27-coverage]
commands = {[integration]commands}

[testenv:py27-requests-cachecontrol-coverage]
commands = {[integration]commands}

[testenv:py35-coverage]
commands = {[integration]commands}

[testenv:py35-requests-cachecontrol-coverage]
commands = {[integration]commands}

[testenv:py36-coverage]
commands = {[integration]commands}

[testenv:py36-requests-cachecontrol-coverage]
commands = {[integration]commands}

[testenv:py37-coverage]
commands = {[integration]commands}

[testenv:py37-requests-cachecontrol-coverage]
commands = {[integration]commands}

[testenv:pypy-requests-cachecontrol-coverage]
[testenv:pypy-coverage]
commands = {[integration]commands}

[testenv:py27-coverage-simple]
Expand All @@ -104,10 +87,10 @@ deps =
commands =
# meta
tox -e py27-coverage
tox -e py27-subprocess-requests-cachecontrol-coverage
tox -e py36-requests-cachecontrol-coverage
tox -e py36-coverage
tox -e pypy-subprocess-requests-cachecontrol-coverage
tox -e py27-subprocess-coverage
tox -e py37-coverage
tox -e pypy-coverage
tox -e pypy-subprocess-coverage
python scripts/combine_coverage.py
coverage report
coverage html
Expand Down Expand Up @@ -142,8 +125,8 @@ commands = {[testenv:isort-run]commands} -c
[testenv:vendor]
deps =
ansicolors==1.1.8
pip==18.1
redbaron==0.8
pip==19.3.1
redbaron==0.9.2
{[testenv:isort-run]deps}
commands =
python -m pex.vendor
Expand Down Expand Up @@ -181,26 +164,18 @@ commands =
--cache-dir {envtmpdir}/buildcache \
--interpreter-constraint=">=3.4,<4" \
--interpreter-constraint="==2.7.*" \
--no-compile \
--no-use-system-time \
--python-shebang="/usr/bin/env python" \
-o dist/pex \
-c pex \
requests .
.

# Would love if you didn't have to enumerate environments here :-\
[testenv:py27]
[testenv:py27-requests]
[testenv:py27-requests-cachecontrol]
[testenv:py27-subprocess]
[testenv:py35]
[testenv:py35-requests]
[testenv:py35-requests-cachecontrol]
[testenv:py36]
[testenv:py36-requests]
[testenv:py36-requests-cachecontrol]
[testenv:py37]
[testenv:py37-requests]
[testenv:py37-requests-cachecontrol]
[testenv:pypy]
[testenv:pypy-requests]
[testenv:pypy-requests-cachecontrol]
[testenv:pypy-subprocess]

0 comments on commit 155d5ab

Please sign in to comment.