switched to hatchling

This commit is contained in:
Deniz Şafak
2025-04-26 19:36:52 +03:00
parent f247924927
commit 8ce1c0e586
3 changed files with 22 additions and 19 deletions
+5 -5
View File
@@ -218,11 +218,11 @@ if errorlevel 1 (
exit /b
)
:: Install setuptools, wheel, and poetry-core
echo Installing setuptools...
%PYTHON_CONSOLE_PATH% -m pip install setuptools wheel hatchling editables --no-warn-script-location
:: Install sphinx and hatchling
echo Installing sphinx and hatchling...
%PYTHON_CONSOLE_PATH% -m pip install --upgrade sphinx hatchling --no-warn-script-location
if errorlevel 1 (
echo Failed to install setuptools.
echo Failed to install hatchling.
pause
exit /b
)
@@ -231,7 +231,7 @@ if errorlevel 1 (
echo Checking and installing project dependencies...
if exist %PYPROJECT_FILE% (
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 (
echo Failed to install from pyproject.toml.
pause
+1 -1
View File
@@ -9,7 +9,7 @@ https://github.com/user-attachments/assets/9e4fc237-a3cd-46bd-b82c-c608336d6411
- A background image (bg.jpg)
- The subtitle file (.srt) **(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
# Windows
+16 -13
View File
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "abogen"
@@ -45,16 +45,19 @@ Issues = "https://github.com/denizsafak/abogen/issues"
[project.gui-scripts]
abogen = "abogen.main:main"
[tool.setuptools]
packages = ["abogen", "abogen.assets"]
[tool.setuptools.package-data]
abogen = [
"assets/*.ico",
"assets/*.gif",
"assets/*.png",
"VERSION"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/demo",
"/demo",
"/abogen/assets/create_shortcuts.bat",
"WINDOWS_INSTALL.bat",
]
[tool.setuptools.dynamic]
version = { file = "abogen/VERSION" }
[tool.hatch.build.targets.wheel]
packages = ["abogen"]
[tool.hatch.version]
path = "abogen/VERSION"
pattern = "^(?P<version>.+)$"