Skip to content

Commit

Permalink
support python 3.7+ (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan authored Jul 19, 2022
1 parent 01f529d commit 11408ba
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ jobs:
test:
name: Run client tests
runs-on: ubuntu-latest
strategy:
matrix:
py_version: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.9.9'
python-version: ${{ matrix.py_version }}
- name: Cache packages
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-py-3.9-${{ hashFiles('requirements.txt') }}-${{ hashFiles('setup.py')
}}
key: ${{ runner.os }}-py-${{ matrix.py_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('setup.py') }}
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
Expand All @@ -44,6 +46,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage.xml
name: client-codecov
flags: py${{ matrix.py_version }}
release:
name: Release client
runs-on: ubuntu-latest
Expand All @@ -58,7 +61,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: 3.9.9
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install twine build
Expand Down
13 changes: 6 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ repos:
rev: v1.3.0
hooks:
- id: yesqa
- repo: https://github.com/sondrelg/pep585-upgrade
rev: v1.0
hooks:
- id: upgrade-type-hints
args:
- --futures=true
# - repo: https://github.com/sondrelg/pep585-upgrade
# rev: v1.0
# hooks:
# - id: upgrade-type-hints
# args:
# - --futures=true
- repo: https://github.com/Zac-HD/shed
rev: 0.10.1
hooks:
- id: shed
args:
- --refactor
- --py39-plus
types_or:
- python
- markdown
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ classifiers =

[options]
zip_safe = False
python_requires = >=3.9
# Required for Neu.ro SDK
python_requires = >=3.7
include_package_data = True
packages = find:
install_requires =
Expand Down
2 changes: 2 additions & 0 deletions tests/test_factories.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from dataclasses import replace
from datetime import datetime
from decimal import Decimal
Expand Down

0 comments on commit 11408ba

Please sign in to comment.