[deps] fix uv conflicts (#7686)

* fix #7678

* Update setup.py

* Update tests.yml

* Update publish.yml

* Update Makefile
This commit is contained in:
hoshi-hiyouga 2025-04-11 18:02:24 +08:00 committed by GitHub
parent 11bcafd06a
commit 60a84f664b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 10 deletions

View File

@ -28,14 +28,9 @@ jobs:
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: |
python -m build
make build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

View File

@ -73,6 +73,10 @@ jobs:
run: |
make license
- name: Check build
run: |
make build
- name: Test with pytest
run: |
make test

View File

@ -3,7 +3,7 @@
check_dirs := scripts src tests setup.py
build:
pip install build && python -m build
pip3 install build && python3 -m build
commit:
pre-commit install

View File

@ -61,7 +61,7 @@ known-third-party = [
"peft",
"torch",
"transformers",
"trl"
"trl",
]
[tool.ruff.lint.pydocstyle]
@ -87,5 +87,9 @@ conflicts = [
[
{ extra = "torch-npu" },
{ extra = "vllm" },
]
],
[
{ extra = "sglang" },
{ extra = "minicpm_v" },
],
]

View File

@ -74,7 +74,7 @@ extra_require = {
"modelscope": ["modelscope"],
"openmind": ["openmind"],
"swanlab": ["swanlab"],
"dev": ["pre-commit", "ruff", "pytest"],
"dev": ["pre-commit", "ruff", "pytest", "build"],
}