Skip to content

Commit

Permalink
Add Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Sep 20, 2024
1 parent 985a033 commit d7dfd41
Show file tree
Hide file tree
Showing 7 changed files with 241 additions and 190 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
steps:
- uses: actions/checkout@v4

Expand All @@ -28,13 +28,15 @@ jobs:
- run: brew install automake
if: matrix.os == 'macos-latest'

- run: poetry install
- run: poetry install --with test

- name: Run test
run: poetry run pytest -s --cov=ecies tests --cov-report xml

- run: ./scripts/ci.sh

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- run: poetry build
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Release Notes

## 0.4.1 ~ 0.4.2
## 0.4.1 ~ 0.4.3

- Bump dependencies
- Support Python 3.12
- Support Python 3.12, 3.13

## 0.4.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Other language versions:
- [Golang](https://github.com/ecies/go)
- [WASM](https://github.com/ecies/rs-wasm)

You can also check a FastAPI web backend demo [here](https://github.com/kigawas/eciespy-demo).
You can also check a FastAPI web backend demo [here](https://github.com/ecies/py-demo).

## Install

Expand Down
3 changes: 2 additions & 1 deletion ecies/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
r"""
_______ _______ _________ _______ _______ _______
( ____ \( ____ \\__ __/( ____ \( ____ \( ____ )|\ /|
| ( \/| ( \/ ) ( | ( \/| ( \/| ( )|( \ / )
Expand All @@ -9,6 +9,7 @@
(_______/(_______/\_______/(_______/\_______)|/ \_/
"""

import argparse
import sys

Expand Down
2 changes: 1 addition & 1 deletion ecies/utils/elliptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def generate_key() -> PrivateKey:
return PrivateKey(get_valid_secret())


def generate_eth_key() -> keys.PrivateKey:
def generate_eth_key():
"""
Generate a random `eth_keys.keys.PrivateKey`
Expand Down
400 changes: 226 additions & 174 deletions poetry.lock

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "eciespy"
packages = [
{include = "ecies"},
]
version = "0.4.2"
version = "0.4.3"
# docs
authors = ["Weiliang Li <to.be.impressive@gmail.com>"]
description = "Elliptic Curve Integrated Encryption Scheme for secp256k1 in Python"
Expand Down Expand Up @@ -37,16 +37,16 @@ python = "^3.8"

# 3rd party
coincurve = ">=13,<21"
eth-keys = "^0.5.1"
eth-keys = ">=0.4,<0.6"
pycryptodome = "^3.19.1"

[tool.poetry.group.dev.dependencies]
ipython = {version = "^8.20.0", python = "^3.10"}
mypy = "^1.10"
ruff = "^0.5.0"
mypy = "^1.11.2"
ruff = "^0.6.5"

[tool.poetry.group.test.dependencies]
pytest = "^8.1.0"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"

[tool.poetry.scripts]
Expand All @@ -56,9 +56,5 @@ eciespy = "ecies.__main__:main"
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[tool.isort]
multi_line_output = 3
profile = "black"

[tool.pytest.ini_options]
addopts = "--doctest-modules"

0 comments on commit d7dfd41

Please sign in to comment.