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 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
View File
@@ -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
+15 -12
View File
@@ -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",
"/demo",
"/demo",
"/abogen/assets/create_shortcuts.bat",
"WINDOWS_INSTALL.bat",
[tool.setuptools.package-data]
abogen = [
"assets/*.ico",
"assets/*.gif",
"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>.+)$"