Skip to content

Commit d86c88b

Browse files
committed
fix ci
1 parent 2105645 commit d86c88b

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

.circleci/config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
. .venv/bin/activate
3535
3636
uv pip install coveralls 'tox<4.0.0'
37+
uv pip install setuptools distutils
3738
3839
if [[ $RUN_CHECK == 1 ]]; then
3940
uv pip install -r requirements_dev.txt
@@ -58,17 +59,17 @@ jobs:
5859
. .venv/bin/activate
5960
6061
if [[ $RUN_CHECK == 1 ]]; then
61-
pre-commit run --all-files
62-
mypy pypinyin
62+
uv run pre-commit run --all-files
63+
uv run mypy pypinyin
6364
fi
6465
6566
6667
tox -e $TOX_ENV
6768
68-
uv pip install .
69-
pypinyin hello
70-
echo hello | pypinyin
71-
pypinyin < setup.cfg
69+
uv tool install .
70+
uv tool run pypinyin hello
71+
echo hello | uv tool run pypinyin
72+
uv tool run pypinyin < setup.cfg
7273
7374
# coveralls
7475

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ hook-dirs = "pypinyin.__pyinstaller:get_hook_dirs"
5555
[dependency-groups]
5656
dev = [
5757
"argparse",
58-
"bumpversion",
5958
"mypy; python_version >= '3.5'",
6059
"pre-commit",
6160
"pygments>=2.7.4; python_version >= '3.5'",
@@ -64,7 +63,10 @@ dev = [
6463
"pytest-random-order",
6564
"setuptools",
6665
"sphinx>=3.0.4; python_version >= '3.5'",
67-
"tox",
66+
"tox"
67+
]
68+
release = [
69+
"bumpversion",
6870
"twine",
6971
"wheel>=0.21"
7072
]

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ pytest-random-order
99
setuptools
1010
Sphinx>=3.0.4
1111
tox
12-
twine
12+
#twine
1313
wheel>=0.21

0 commit comments

Comments
 (0)