Browse Source

try python version env spec (#1484)

* try python version env spec

* Test it out on pull request

* test env change

* test env change 2

* test env change 3

* test env change 4

* address circular import

* test

* test

* test

* test

* test

* undoing test

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
Anirudh Suresh 1 năm trước cách đây
mục cha
commit
67132c0572

+ 6 - 1
.github/workflows/pypi-express-relay-utils.yml

@@ -5,15 +5,20 @@ on:
     tags:
       - "python-v*"
 
+env:
+  PYTHON_VERSION: "3.11"
+
 jobs:
   deploy:
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
       - uses: actions/setup-python@v2
+        with:
+          python-version: ${{ env.PYTHON_VERSION }}
       - name: Install dependencies
         run: |
-          python3.11 -m pip install --upgrade poetry
+          python3 -m pip install --upgrade poetry
           poetry install
         working-directory: "express_relay/sdk/python/express_relay"
       - name: Build and publish

+ 1 - 1
express_relay/sdk/python/express_relay/client.py

@@ -9,7 +9,7 @@ import httpx
 import websockets
 from websockets.client import WebSocketClientProtocol
 from eth_account.account import Account
-from express_relay.types import (
+from express_relay.express_relay_types import (
     Opportunity,
     BidStatusUpdate,
     ClientMessage,

+ 0 - 0
express_relay/sdk/python/express_relay/types.py → express_relay/sdk/python/express_relay/express_relay_types.py


+ 1 - 1
express_relay/sdk/python/express_relay/searcher/examples/simple_searcher.py

@@ -3,7 +3,7 @@ import asyncio
 import logging
 from eth_account.account import Account
 from express_relay.client import ExpressRelayClient, sign_bid
-from express_relay.types import (
+from express_relay.express_relay_types import (
     Opportunity,
     OpportunityBid,
     Bytes32,

+ 1 - 1
express_relay/sdk/python/pyproject.toml

@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "express-relay"
-version = "0.4.0"
+version = "0.4.1"
 description = "Utilities for searchers and protocols to interact with the Express Relay protocol."
 authors = ["dourolabs"]
 license = "Proprietary"