Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit f84a4d7

Browse files
authored
Merge pull request #45 from tamuhey/update_pyo3
Support pep585
2 parents f68aadf + 54ea587 commit f84a4d7

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
14+
python-version: [3.7, 3.8, 3.9]
1515
os: [macos-latest, windows-latest, ubuntu-latest]
1616
steps:
1717
- uses: actions/checkout@v1
@@ -80,7 +80,7 @@ jobs:
8080
runs-on: ${{ matrix.os }}
8181
strategy:
8282
matrix:
83-
python-version: [3.5, 3.6, 3.7, 3.8]
83+
python-version: [3.7, 3.8, 3.9]
8484
# ubuntu wheel is built in `manylinux_build.yml`
8585
os: [macos-latest, windows-latest]
8686

.github/workflows/manylinux_build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version:
13-
- 3.5
14-
- 3.6
1513
- 3.7
1614
- 3.8
1715
- 3.9

.github/workflows/test_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
14+
python-version: [3.7, 3.8, 3.9]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
steps:
1717
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/test_pypi_manylinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
container:
1515
- centos
1616
- manylinux
17-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
17+
python-version: [3.7, 3.8, 3.9]
1818
env:
1919
DOCKERFILE: dockerfiles/ci/${{ matrix.container }}/Dockerfile
2020
PYTHON: python${{ matrix.python-version }}

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ name = "tokenizations"
1515
crate-type = ["cdylib"]
1616

1717
[dependencies.pyo3]
18-
version = "^0.12.0"
18+
version = "^0.13.0"
1919
features = ["extension-module"]

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ authors = [ "Yohei Tamura <[email protected]>",]
1717
include = "tokenizations"
1818

1919
[tool.poetry.dependencies]
20-
python = ">=3.5"
20+
python = ">=3.7"
2121

2222
[tool.poetry.dev-dependencies]
2323
pytest = "^6.1.2"

python/tokenizations/__init__.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from typing import Optional, Sequence, List, Tuple
1+
from __future__ import annotations
2+
from typing import Optional, Sequence, Tuple
23

34
def get_alignments(
45
a: Sequence[str], b: Sequence[str]
5-
) -> Tuple[List[List[int]], List[List[int]]]: ...
6-
def get_charmap(a: str, b: str) -> Tuple[List[List[int]], List[List[int]]]: ...
6+
) -> Tuple[list[list[int]], list[list[int]]]: ...
7+
def get_charmap(a: str, b: str) -> Tuple[list[list[int]], list[list[int]]]: ...
78
def get_original_spans(
89
tokens: Sequence[str], original_text: str
9-
) -> List[Optional[Tuple[int, int]]]: ...
10+
) -> list[Optional[Tuple[int, int]]]: ...
1011

python/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
isolated_build = true
3-
envlist = py35, py36, py37, py38
3+
envlist = py37, py38, py39
44

55
[testenv]
66
whitelist_externals =
@@ -9,4 +9,4 @@ whitelist_externals =
99
commands =
1010
poetry install -v
1111
maturin develop
12-
poetry run pytest tests
12+
poetry run pytest tests

0 commit comments

Comments
 (0)