mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 05:40:26 +02:00
switched to hatchling
This commit is contained in:
+5
-5
@@ -218,11 +218,11 @@ if errorlevel 1 (
|
|||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Install setuptools, wheel, and poetry-core
|
:: Install sphinx and hatchling
|
||||||
echo Installing setuptools...
|
echo Installing sphinx and hatchling...
|
||||||
%PYTHON_CONSOLE_PATH% -m pip install setuptools wheel hatchling editables --no-warn-script-location
|
%PYTHON_CONSOLE_PATH% -m pip install --upgrade sphinx hatchling --no-warn-script-location
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failed to install setuptools.
|
echo Failed to install hatchling.
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
@@ -231,7 +231,7 @@ if errorlevel 1 (
|
|||||||
echo Checking and installing project dependencies...
|
echo Checking and installing project dependencies...
|
||||||
if exist %PYPROJECT_FILE% (
|
if exist %PYPROJECT_FILE% (
|
||||||
echo Installing project from pyproject.toml...
|
echo Installing project from pyproject.toml...
|
||||||
%PYTHON_CONSOLE_PATH% -m pip install -e . --no-warn-script-location
|
%PYTHON_CONSOLE_PATH% -m pip install . --no-warn-script-location
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failed to install from pyproject.toml.
|
echo Failed to install from pyproject.toml.
|
||||||
pause
|
pause
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ https://github.com/user-attachments/assets/9e4fc237-a3cd-46bd-b82c-c608336d6411
|
|||||||
- A background image (bg.jpg)
|
- A background image (bg.jpg)
|
||||||
- The subtitle file (.srt) **(created by Abogen)**
|
- The subtitle file (.srt) **(created by Abogen)**
|
||||||
- The audio recording (.wav) **(created by Abogen)**
|
- The audio recording (.wav) **(created by Abogen)**
|
||||||
- FFmpeg installed on your computer:
|
- [Python](https://www.python.org/downloads/) and FFmpeg installed on your computer:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Windows
|
# Windows
|
||||||
|
|||||||
+16
-13
@@ -1,6 +1,6 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=77.0"]
|
requires = ["hatchling"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "abogen"
|
name = "abogen"
|
||||||
@@ -45,16 +45,19 @@ Issues = "https://github.com/denizsafak/abogen/issues"
|
|||||||
[project.gui-scripts]
|
[project.gui-scripts]
|
||||||
abogen = "abogen.main:main"
|
abogen = "abogen.main:main"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.hatch.build.targets.sdist]
|
||||||
packages = ["abogen", "abogen.assets"]
|
exclude = [
|
||||||
|
"/.github",
|
||||||
[tool.setuptools.package-data]
|
"/demo",
|
||||||
abogen = [
|
"/demo",
|
||||||
"assets/*.ico",
|
"/abogen/assets/create_shortcuts.bat",
|
||||||
"assets/*.gif",
|
"WINDOWS_INSTALL.bat",
|
||||||
"assets/*.png",
|
|
||||||
"VERSION"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.hatch.build.targets.wheel]
|
||||||
version = { file = "abogen/VERSION" }
|
packages = ["abogen"]
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
path = "abogen/VERSION"
|
||||||
|
pattern = "^(?P<version>.+)$"
|
||||||
Reference in New Issue
Block a user