-
-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from Wybxc/pyproject
feat: switch from setup.py to pyproject.toml
- Loading branch information
Showing
4 changed files
with
65 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build Python Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[project] | ||
name = "pdf2zh" | ||
version = "1.7.9" | ||
description = "Latex PDF Translator" | ||
authors = [{ name = "Byaidu", email = "[email protected]" }] | ||
license = "AGPL-3.0" | ||
readme = "README.md" | ||
requires-python = ">=3.8,<=3.12" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"charset-normalizer", | ||
"cryptography", | ||
"requests", | ||
"pymupdf", | ||
"tqdm", | ||
"tenacity", | ||
"doclayout-yolo", | ||
"numpy", | ||
"ollama", | ||
"deepl<1.19.1", | ||
"openai", | ||
"azure-ai-translation-text<=1.0.1", | ||
"gradio", | ||
"huggingface_hub", | ||
"torch", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/Byaidu/PDFMathTranslate" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project.scripts] | ||
pdf2zh = "pdf2zh.pdf2zh:main" |
This file was deleted.
Oops, something went wrong.