Skip to content

Commit fed182e

Browse files
committed
no longer support pypy2
1 parent 64837c9 commit fed182e

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

.circleci/config.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,26 @@ jobs:
2222
# keys:
2323
# - v1-dependencies-{{ .Environment.TOX_ENV }}-{{ checksum "requirements_dev.txt" }}
2424

25-
- run:
26-
name: install uv
27-
command: curl -LsSf https://astral.sh/uv/install.sh | sh
28-
2925
- run:
3026
name: install dependencies
3127
command: |
32-
export PATH="$HOME/.local/bin:$PATH"
33-
uv venv
34-
. .venv/bin/activate
28+
# pip install -U pip virtualenv --user
29+
if ! which virtualenv; then
30+
pip install 'virtualenv<=20.0.21' --user
31+
fi
32+
export PATH="~/.local/bin:$PATH"
33+
34+
virtualenv venv
35+
. venv/bin/activate
3536
36-
uv pip install coveralls 'tox<4.0.0'
37-
uv pip install setuptools
37+
pip install coveralls
38+
pip install 'tox<4.0.0'
3839
3940
if [[ $RUN_CHECK == 1 ]]; then
40-
uv pip install -r requirements_dev.txt
41+
pip install -U -r requirements_dev.txt
4142
fi
4243
if [[ $(echo $TOX_ENV | grep pypy3) ]]; then
43-
uv pip install setuptools==60.10.0
44+
pip install setuptools==60.10.0
4445
fi
4546
4647
if [[ $(python -c "import sys; print(sys.stdin.encoding)" |grep None) ]]; then
@@ -55,21 +56,20 @@ jobs:
5556
- run:
5657
name: run tests
5758
command: |
58-
export PATH="$HOME/.local/bin:$PATH"
59-
. .venv/bin/activate
59+
. venv/bin/activate
6060
6161
if [[ $RUN_CHECK == 1 ]]; then
62-
uv run pre-commit run --all-files
63-
uv run mypy pypinyin
62+
pre-commit run --all-files
63+
mypy pypinyin
6464
fi
6565
6666
6767
tox -e $TOX_ENV
6868
69-
uv tool install .
70-
uv tool run pypinyin hello
71-
echo hello | uv tool run pypinyin
72-
uv tool run pypinyin < setup.cfg
69+
python setup.py install
70+
pypinyin hello
71+
echo hello | pypinyin
72+
pypinyin < setup.cfg
7373
7474
# coveralls
7575
@@ -163,4 +163,3 @@ workflows:
163163
- python3.5
164164
- python3.4
165165
- python2.7
166-
- pypy2

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* GitHub: https://github.com/mozillazg/python-pinyin
1313
* License: MIT license
1414
* PyPI: https://pypi.org/project/pypinyin
15-
* Python version: 2.7, pypy, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
15+
* Python version: 2.7, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
1616

1717
.. contents::
1818

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* GitHub: https://github.com/mozillazg/python-pinyin
1818
* License: MIT license
1919
* PyPI: https://pypi.org/project/pypinyin
20-
* Python version: 2.7, pypy, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9
20+
* Python version: 2.7, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
2121

2222

2323
特性

0 commit comments

Comments
 (0)