Skip to content

Commit

Permalink
fix: handle python-based imports in Vyper contracts (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Jul 2, 2024
1 parent a101d7a commit 7d6afeb
Show file tree
Hide file tree
Showing 12 changed files with 267 additions and 131 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # eventually add `windows-latest`
python-version: [3.9, "3.10", "3.11", "3.12"]

env:
GETH_VERSION: 1.12.0
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -84,23 +81,15 @@ jobs:
with:
go-version: '^1.20.1'

- name: Cache Geth
id: cache-geth
uses: actions/cache@v3
- name: Setup Go
uses: actions/setup-go@v5
with:
path: $HOME/.local/bin
key: ${{ runner.os }}-geth-${{ env.GETH_VERSION }}
go-version: '^1.20.7'

- name: Install Geth
if: steps.cache-geth.outputs.cache-hit != 'true'
run: |
mkdir -p $HOME/.local/bin
wget -O geth.tar.gz "https://github.com/ethereum/go-ethereum/archive/v$GETH_VERSION.tar.gz"
tar -zxvf geth.tar.gz
cd go-ethereum-$GETH_VERSION
make geth
cp ./build/bin/geth /usr/local/bin
geth version
uses: gacts/install-geth-tools@v1
with:
version: 1.14.5

- name: Install Dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ repos:
name: black

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: [types-setuptools, pydantic==1.10.4]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Ape compiler plugin around [VVM](https://github.com/vyperlang/vvm)

## Dependencies

- [python3](https://www.python.org/downloads) version 3.9 up to 3.12.
- [python3](https://www.python.org/downloads) version 3.10 up to 3.12.

## Installation

Expand Down
Loading

0 comments on commit 7d6afeb

Please sign in to comment.