Enable Windows & OSX builds (#31)

* Enable Windows & OSX builds

* Add pypy for ubuntu

* Fix isort

* Disable PyPy

typed-ast building fails due to a missing header
ast27/Parser/tokenizer.c:17:10: fatal error: codecs.h: No such file or directory
This commit is contained in:
Teemu R 2020-03-18 00:40:06 +01:00 committed by GitHub
parent 00276e34b7
commit e9b0acaaa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 12 deletions

View File

@ -3,16 +3,23 @@ trigger:
pr: pr:
- master - master
pool:
vmImage: 'ubuntu-latest'
strategy: strategy:
matrix: matrix:
# Python36: Python 3.7 Ubuntu:
# python.version: '3.6'
Python37:
python.version: '3.7' python.version: '3.7'
# Python38: vmImage: 'ubuntu-latest'
# python.version: '3.8' # PyPy Ubuntu:
# python.version: pypy3
# vmImage: 'ubuntu-latest'
Python 3.7 Windows:
python.version: '3.7'
vmImage: 'windows-latest'
Python 3.7 OSX:
python.version: '3.7'
vmImage: 'macOS-latest'
pool:
vmImage: $(vmImage)
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0

View File

@ -2,8 +2,8 @@
import asyncio import asyncio
import json import json
import logging import logging
from pprint import pformat as pf
import re import re
from pprint import pformat as pf
import click import click

View File

@ -11,12 +11,12 @@ Stroetmann which is licensed under the Apache License, Version 2.0.
You may obtain a copy of the license at You may obtain a copy of the license at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
""" """
from collections import defaultdict
from datetime import datetime, timedelta
from enum import Enum
import functools import functools
import inspect import inspect
import logging import logging
from collections import defaultdict
from datetime import datetime, timedelta
from enum import Enum
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
from kasa.protocol import TPLinkSmartHomeProtocol from kasa.protocol import TPLinkSmartHomeProtocol

View File

@ -2,9 +2,9 @@
.. todo:: describe how this interfaces with single plugs. .. todo:: describe how this interfaces with single plugs.
""" """
from collections import defaultdict
import datetime import datetime
import logging import logging
from collections import defaultdict
from typing import Any, DefaultDict, Dict, List, Optional from typing import Any, DefaultDict, Dict, List, Optional
from kasa.smartdevice import ( from kasa.smartdevice import (