diff --git a/WINDOWS_INSTALL.bat b/WINDOWS_INSTALL.bat index 93118c4..190f30e 100644 --- a/WINDOWS_INSTALL.bat +++ b/WINDOWS_INSTALL.bat @@ -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 diff --git a/demo/README.md b/demo/README.md index 2a858ca..28bb3fe 100644 --- a/demo/README.md +++ b/demo/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ccb44cb..32c0563 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" } \ No newline at end of file +[tool.hatch.build.targets.wheel] +packages = ["abogen"] + +[tool.hatch.version] +path = "abogen/VERSION" +pattern = "^(?P.+)$" \ No newline at end of file