Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 11 additions & 113 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Test EasyRpc Core Functionality
on: ['pull_request']
jobs:
test_easyrpc_core_38:
test_easyrpc_core:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -25,115 +25,13 @@ jobs:
- name: Test EasyRpc Core Functionality
run: |
pytest tests/test_core.py
test_easyrpc_cluster_1_38:
needs: test_easyrpc_core_38
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
test_easyrpc_cluster_1:
needs: test_easyrpc_core
strategy:
matrix:
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest requests pytest-asyncio
- name: Test EasyRpc Cluster Functionality - 1
run: |
pytest tests/test_clustering_1.py
test_easyrpc_cluster_2_38:
needs: test_easyrpc_cluster_1_38
python-version: [3.11.14, 3.12.12, 3.13.12]
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest requests pytest-asyncio
- name: Test EasyRpc Cluster Functionality - 2
run: |
pytest tests/test_clustering_2.py
test_easyrpc_cluster_3_38:
needs: test_easyrpc_cluster_2_38
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest requests pytest-asyncio
- name: Test EasyRpc Cluster Functionality - 3
run: |
pytest tests/test_clustering_3.py
test_easyrpc_core_39:
needs: test_easyrpc_cluster_3_38
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest requests pytest-asyncio
- name: Test EasyRpc Core Functionality
run: |
pytest tests/test_core.py
test_easyrpc_cluster_1_39:
needs: test_easyrpc_core_39
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -150,15 +48,15 @@ jobs:
- name: Test EasyRpc Cluster Functionality - 1
run: |
pytest tests/test_clustering_1.py
test_easyrpc_cluster_2_39:
needs: test_easyrpc_cluster_1_39
test_easyrpc_cluster_2:
needs: test_easyrpc_cluster_1
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -175,15 +73,15 @@ jobs:
- name: Test EasyRpc Cluster Functionality - 2
run: |
pytest tests/test_clustering_2.py
test_easyrpc_cluster_3_39:
needs: test_easyrpc_cluster_2_39
test_easyrpc_cluster_3:
needs: test_easyrpc_cluster_2
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ jobs:
package:
name: Package easyrpc for PyPI
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Install Packaging dependencies
run: |
pip install wheel twine
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -36,7 +36,7 @@ jobs:
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -61,7 +61,7 @@ jobs:
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -86,7 +86,7 @@ jobs:
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11.14, 3.12.12, 3.13.12]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ Easily share functions between hosts, processes, containers without the complexi
## Quick Start

```bash
$ virtualenv -p python3.7 easy-rpc-env
$ uv init --python ">=3.11"

$ source easy-rpc-env/bin/activate

(easy-rpc-env)$ pip install easyrpc
$ uv add easyrpc
```

## Basic Usage:
Expand Down
6 changes: 2 additions & 4 deletions docs/quick_start.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## Installation
```bash
$ virtualenv -p python3.7 easy-rpc-env
$ uv init --python >=3.11

$ source easy-rpc-env/bin/activate

(easy-rpc-env)$ pip install easyrpc
$ uv add easyrpc
```
2 changes: 1 addition & 1 deletion easyrpc/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, uuid, time, json, base64, jwt, string, random
import jwt

def encode(secret, log=None, **kw):
try:
Expand Down
2 changes: 1 addition & 1 deletion easyrpc/generator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Optional
from easyrpc.register import Generator, AsyncGenerator
from easyrpc.register import AsyncGenerator

class RpcGenerator:
def __init__(self, generator):
Expand Down
3 changes: 1 addition & 2 deletions easyrpc/origin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from easyrpc.register import (
get_origin_register,
get_signature_as_dict
get_origin_register
)


Expand Down
1 change: 0 additions & 1 deletion easyrpc/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pickle
import logging
import asyncio
from traceback import format_exc
from concurrent.futures._base import CancelledError

from aiohttp import ClientSession, WSMessage, WSMsgType
Expand Down
Loading