diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c2b76f6..7915efb 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -35,4 +35,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + pytest --ignore-glob="*api.py" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05410ab..dd3ae62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,11 +12,8 @@ stages: script: - pip install -r requirements.txt - pip install -r test-requirements.txt - - pytest --cov=lighter + - pytest --cov=lighter --ignore-glob *api.py -pytest-3.7: - extends: .pytest - image: python:3.7-alpine pytest-3.8: extends: .pytest image: python:3.8-alpine diff --git a/.travis.yml b/.travis.yml index b46c4df..35830c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - "3.8" - "3.9" - "3.10" diff --git a/pyproject.toml b/pyproject.toml index 4181365..34eb262 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ include = ["lighter/py.typed"] python = ["lighter"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" @@ -21,6 +21,8 @@ aiohttp = ">= 3.8.4" aiohttp-retry = ">= 2.8.3" pydantic = ">=2" typing-extensions = ">=4.7.1" +websockets = ">= 12.0.0" +eth-account = ">=0.13.4" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/requirements.txt b/requirements.txt index bbada26..b8ffd04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ pydantic >= 2 typing-extensions >= 4.7.1 aiohttp >= 3.0.0 aiohttp-retry >= 2.8.3 +websockets >= 12.0.0 diff --git a/setup.py b/setup.py index 3210aed..a7297d5 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,8 @@ "aiohttp-retry >= 2.8.3", "pydantic >= 2", "typing-extensions >= 4.7.1", + "websockets >= 12.0.0" + "eth-account >= 0.13.4" ] setup( diff --git a/test-requirements.txt b/test-requirements.txt index 8e6d8cb..057e6ec 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,3 +3,5 @@ pytest-cov>=2.8.1 pytest-randomly>=3.12.0 mypy>=1.4.1 types-python-dateutil>=2.8.19 +eth-account>=0.13.4 + diff --git a/tox.ini b/tox.ini index aca8c10..8941ca0 100644 --- a/tox.ini +++ b/tox.ini @@ -6,4 +6,4 @@ deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= - pytest --cov=lighter + pytest --cov=lighter --ignore-glob *api.py