Skip to content

Commit

Permalink
Set 'typing' package to be installed only on Python 2.7. This fixes t…
Browse files Browse the repository at this point in the history
…he import issue raised

Python 3.7, on using the 'typing 3.6'.
  • Loading branch information
awais786 committed May 4, 2020
1 parent aab7541 commit 5f40d89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ python:
- "pypy"
- "pypy3.5-7.0" # Need 7.0+ due to a bug in earlier versions that broke our tests.

matrix:
include:
- name: "Type checking"
python: "3.7"
env: TOXENV=typecheck
- name: "Lint"
python: "3.7"
env: TOXENV=lint

# Temporary bandaid for https://github.com/PyFilesystem/pyfilesystem2/issues/342
allow_failures:
- python: pypy
- python: pypy3.5-7.0

before_install:
- pip install -U tox tox-travis
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py27,py34,py35,py36,py37,py38}{,-scandir},pypy,typecheck,lint
envlist = {py27,py34,py35,py36,py37}{,-scandir},pypy,typecheck,lint
sitepackages = False
skip_missing_interpreters=True

Expand Down

0 comments on commit 5f40d89

Please sign in to comment.