From db7c31551f58e76d21e72cb4ab4864c23e9506ff Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Sun, 29 Oct 2023 16:44:27 +0100 Subject: [PATCH] Upgrade Python Version (3.12) (#44) --- .github/workflows/pull-request.yaml | 6 +++--- requirements.txt | 17 +++++++++++------ src/airdrop/encode.py | 1 - 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 3f65402..2cc94a7 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -7,11 +7,11 @@ jobs: python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Setup Python 3.10 + - uses: actions/checkout@v4 + - name: Setup Python 3.12 uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: '3.12' - name: Install Requirements run: pip install -r requirements.txt diff --git a/requirements.txt b/requirements.txt index 484271b..059172b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,10 +3,15 @@ python-dotenv==1.0.0 requests==2.31.0 safe-cli==0.7.1 safe-eth-py==5.8.0 -web3==6.10.0 +web3==6.11.1 # Dev Deps. -types-requests==2.31.0.6 -pytest==7.4.2 -pylint==2.17.6 -mypy==1.5.1 -black==23.9.1 +types-requests==2.31.0.10 +pytest==7.4.3 +pylint==3.0.2 +mypy==1.6.1 +black==23.10.1 + +# Python 3.12 stuffs. +aiohttp>=3.9.0b0 +setuptools==68.2.2 +types-setuptools==68.2.0.0 diff --git a/src/airdrop/encode.py b/src/airdrop/encode.py index fcba3c1..6b654d5 100644 --- a/src/airdrop/encode.py +++ b/src/airdrop/encode.py @@ -1,5 +1,4 @@ """Boilerplate code for encoding interactions with Airdrop Contract""" -from __future__ import annotations from enum import Enum