diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2dacb0..5aff2da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7] + python-version: [3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2 @@ -20,21 +20,13 @@ jobs: - name: Install pipenv uses: dschep/install-pipenv-action@v1 - name: Install dependencies - uses: VaultVulp/action-pipenv@v2.0.1 - with: - command: install --dev + run: pipenv install --dev --python ${{ matrix.python-version }} - name: Run linter - uses: VaultVulp/action-pipenv@v2.0.1 - with: - command: run lint - - name: Run type checker - uses: VaultVulp/action-pipenv@v2.0.1 - with: - command: run type + run: pipenv run lint + - name: Run type + run: pipenv run type - name: Run tests - uses: VaultVulp/action-pipenv@v2.0.1 - with: - command: run test --cov=evasdk --cov-branch --cov-report=xml + run: pipenv run test --cov=evasdk --cov-branch --cov-report=xml - name: Upload to codecov uses: codecov/codecov-action@v1.0.7 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 51139a3..15ed7e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install dependencies @@ -27,7 +27,7 @@ jobs: sed -i 's/%VERSION%/'$VERSION'/' evasdk/version.py python setup.py sdist bdist_wheel - name: Publish a Python distribution to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@v1.3.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} diff --git a/Pipfile b/Pipfile index 7b0cee8..1d4fe1a 100644 --- a/Pipfile +++ b/Pipfile @@ -7,6 +7,7 @@ name = "pypi" requests = "*" websockets = "*" zeroconf = "==0.27.1" +dataclasses = "*" [dev-packages] flake8 = "*" diff --git a/README.md b/README.md index b784211..5d661fa 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ __* This SDK is currently in beta__ __Requires Python 3, not compatible with Python 2__ +We support Python `3.6` and later. + ### Pip Make sure you have Python3 and pip installed, then run the following command: diff --git a/setup.py b/setup.py index 00a2372..f046ecd 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ 'requests', 'websockets', 'zeroconf', + 'dataclasses', ], classifiers=[ "Programming Language :: Python :: 3",