fix: versions, #398

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618 2024-05-02 08:27:35 +08:00
parent 1ca0e78558
commit 0ea97b8746
5 changed files with 2115 additions and 4 deletions

37
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Release and Build Docker Image
permissions:
contents: write
on:
push:
tags:
- "*"
jobs:
release-pypi:
name: Build and Release PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Build artifacts
run: |
pip install build
python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

1
.pdm-python Normal file
View File

@ -0,0 +1 @@
/home/yihong/use_now/bilingual_book_maker/.venv/bin/python

1951
pdm.lock generated Normal file

File diff suppressed because it is too large Load Diff

45
pyproject.toml Normal file
View File

@ -0,0 +1,45 @@
[project]
name = "bbook-maker"
dynamic = ["version"]
description = "The bilingual_book_maker is an AI translation tool that uses ChatGPT to assist users in creating multi-language versions of epub/txt files and books."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
authors = [
{ name = "yihong0618", email = "zouzou0208@gmail.com" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"anthropic",
"backoff",
"bs4",
"ebooklib",
"google-generativeai",
"langdetect",
"litellm",
"openai>=1.1.1",
"PyDeepLX",
"requests",
"rich",
"tiktoken",
"tqdm",
]
[project.scripts]
bbook_maker = "book_maker.cli:main"
[project.urls]
Homepage = "https://github.com/yihong0618/bilingual_book_maker"
[tool.pdm]
plugins = ["pdm-autoexport"]
[[tool.pdm.autoexport]]
filename = "requirements.txt"
without-hashes = true
[build-system]
requires = ["pdm-backend>=2.0.0"]
build-backend = "pdm.backend"

View File

@ -1,4 +1,81 @@
-e .
mkdocs
mkdocs-material
backoff
# This file is @generated by PDM.
# Please do not edit it manually.
aiohttp==3.9.5
aiosignal==1.3.1
annotated-types==0.6.0
anthropic==0.25.7
anyio==4.3.0
async-timeout==4.0.3; python_version < "3.11"
attrs==23.2.0
backoff==2.2.1
beautifulsoup4==4.12.3
brotli==1.1.0; platform_python_implementation == "CPython"
brotlicffi==1.1.0.0; platform_python_implementation != "CPython"
bs4==0.0.2
cachetools==5.3.3
certifi==2024.2.2
cffi==1.16.0; platform_python_implementation != "CPython"
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6; platform_system == "Windows"
distro==1.9.0
ebooklib==0.18
exceptiongroup==1.2.1; python_version < "3.11"
filelock==3.14.0
frozenlist==1.4.1
fsspec==2024.3.1
google-ai-generativelanguage==0.6.2
google-api-core==2.19.0
google-api-python-client==2.127.0
google-auth==2.29.0
google-auth-httplib2==0.2.0
google-generativeai==0.5.2
googleapis-common-protos==1.63.0
grpcio==1.63.0
grpcio-status==1.62.2
h11==0.14.0
httpcore==1.0.5
httplib2==0.22.0
httpx==0.27.0
huggingface-hub==0.22.2
idna==3.7
importlib-metadata==7.1.0
jinja2==3.1.3
langdetect==1.0.9
litellm==1.35.34
lxml==5.2.1
markdown-it-py==3.0.0
markupsafe==2.1.5
mdurl==0.1.2
multidict==6.0.5
openai==1.25.0
packaging==24.0
proto-plus==1.23.0
protobuf==4.25.3
pyasn1==0.6.0
pyasn1-modules==0.4.0
pycparser==2.22; platform_python_implementation != "CPython"
pydantic==2.7.1
pydantic-core==2.18.2
pydeeplx==1.0.7
pygments==2.17.2
pyparsing==3.1.2; python_version > "3.0"
python-dotenv==1.0.1
pyyaml==6.0.1
regex==2024.4.28
requests==2.31.0
rich==13.7.1
rsa==4.9
six==1.16.0
sniffio==1.3.1
socksio==1.0.0
soupsieve==2.5
tiktoken==0.6.0
tokenizers==0.19.1
tqdm==4.66.2
typing-extensions==4.11.0
uritemplate==4.1.1
urllib3==2.2.1
yarl==1.9.4
zipp==3.18.1