Skip to content

Commit 7bdbcbf

Browse files
authored
Add Python 3.13 (#358)
1 parent 985a033 commit 7bdbcbf

File tree

7 files changed

+241
-190
lines changed

7 files changed

+241
-190
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
1717
steps:
1818
- uses: actions/checkout@v4
1919

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

31-
- run: poetry install
31+
- run: poetry install --with test
3232

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

3636
- run: ./scripts/ci.sh
3737

3838
- uses: codecov/codecov-action@v4
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
3941

4042
- run: poetry build

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Release Notes
22

3-
## 0.4.1 ~ 0.4.2
3+
## 0.4.1 ~ 0.4.3
44

55
- Bump dependencies
6-
- Support Python 3.12
6+
- Support Python 3.12, 3.13
77

88
## 0.4.0
99

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Other language versions:
1616
- [Golang](https://github.com/ecies/go)
1717
- [WASM](https://github.com/ecies/rs-wasm)
1818

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

2121
## Install
2222

ecies/__main__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
_______ _______ _________ _______ _______ _______
33
( ____ \( ____ \\__ __/( ____ \( ____ \( ____ )|\ /|
44
| ( \/| ( \/ ) ( | ( \/| ( \/| ( )|( \ / )
@@ -9,6 +9,7 @@
99
(_______/(_______/\_______/(_______/\_______)|/ \_/
1010
1111
"""
12+
1213
import argparse
1314
import sys
1415

ecies/utils/elliptic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def generate_key() -> PrivateKey:
2121
return PrivateKey(get_valid_secret())
2222

2323

24-
def generate_eth_key() -> keys.PrivateKey:
24+
def generate_eth_key():
2525
"""
2626
Generate a random `eth_keys.keys.PrivateKey`
2727

poetry.lock

+226-174
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+5-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "eciespy"
33
packages = [
44
{include = "ecies"},
55
]
6-
version = "0.4.2"
6+
version = "0.4.3"
77
# docs
88
authors = ["Weiliang Li <[email protected]>"]
99
description = "Elliptic Curve Integrated Encryption Scheme for secp256k1 in Python"
@@ -37,16 +37,16 @@ python = "^3.8"
3737

3838
# 3rd party
3939
coincurve = ">=13,<21"
40-
eth-keys = "^0.5.1"
40+
eth-keys = ">=0.4,<0.6"
4141
pycryptodome = "^3.19.1"
4242

4343
[tool.poetry.group.dev.dependencies]
4444
ipython = {version = "^8.20.0", python = "^3.10"}
45-
mypy = "^1.10"
46-
ruff = "^0.5.0"
45+
mypy = "^1.11.2"
46+
ruff = "^0.6.5"
4747

4848
[tool.poetry.group.test.dependencies]
49-
pytest = "^8.1.0"
49+
pytest = "^8.3.3"
5050
pytest-cov = "^5.0.0"
5151

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

59-
[tool.isort]
60-
multi_line_output = 3
61-
profile = "black"
62-
6359
[tool.pytest.ini_options]
6460
addopts = "--doctest-modules"

0 commit comments

Comments
 (0)