Update Debian build

This commit is contained in:
Veronica Berglyd Olsen
2025-10-19 00:19:47 +02:00
parent e21d944461
commit 41c58a52e3
5 changed files with 21 additions and 20 deletions
+3 -3
View File
@@ -49,9 +49,9 @@ __license__ = "GPLv3"
__author__ = "Veronica Berglyd Olsen"
__maintainer__ = "Veronica Berglyd Olsen"
__email__ = "code@vkbo.net"
__version__ = "2.8a2"
__hexversion__ = "0x020800a2"
__date__ = "2025-07-16"
__version__ = "2.8a3"
__hexversion__ = "0x020800a3"
__date__ = "2025-10-18"
__status__ = "Stable"
__domain__ = "novelwriter.io"
+4 -2
View File
@@ -29,10 +29,12 @@ dynamic = ["version"]
[dependency-groups]
dev = [
{ include-group = "build" },
{ include-group = "docs" },
{ include-group = "test" },
{ include-group = "lint" },
]
build = ["build", "setuptools>=77.0.3"]
docs = [
"docutils>=0.17.1",
"pygments>=2.7",
@@ -59,8 +61,8 @@ novelwriter = "novelwriter:main"
[tool.setuptools.dynamic]
version = { attr = "novelwriter.__init__.__version__" }
[tool.setuptools]
packages = ["novelwriter"]
[tool.setuptools.packages.find]
include = ["novelwriter*"]
[tool.isort]
py_version = "310"
+2
View File
@@ -4,6 +4,8 @@ Section: text
Priority: optional
Build-Depends:
dh-python,
pybuild-plugin-pyproject,
python3-build,
python3-setuptools,
python3-all,
debhelper (>= 9),
+4 -12
View File
@@ -1,8 +1,6 @@
#!/bin/bash
set -e
ENVPATH=/tmp/nwBuild
if [ ! -f pkgutils.py ]; then
echo "Must be called from the root folder of the source"
exit 1
@@ -12,18 +10,12 @@ echo ""
echo " Building Dependencies"
echo "================================================================================"
echo ""
if [ ! -d $ENVPATH ]; then
python3 -m venv $ENVPATH
fi
source $ENVPATH/bin/activate
pip3 install -r requirements.txt -r docs/requirements.txt
python3 pkgutils.py build-assets
python3 pkgutils.py icons optional
deactivate
uv run pkgutils.py build-assets
uv run pkgutils.py icons optional
echo ""
echo " Building Linux Packages"
echo "================================================================================"
echo ""
python3 pkgutils.py build-deb --sign
python3 pkgutils.py build-ubuntu --sign
uv run pkgutils.py build-deb --sign
uv run pkgutils.py build-ubuntu --sign
+8 -3
View File
@@ -92,14 +92,19 @@ def copySourceCode(dst: Path) -> None:
def copyPackageFiles(dst: Path, oldLicense: bool = False) -> None:
"""Copy files needed for packaging."""
copyFiles = ["LICENSE.md", "setup/LICENSE-Apache-2.0.txt", "CREDITS.md", "pyproject.toml"]
copyFiles = [
ROOT_DIR / "LICENSE.md",
SETUP_DIR / "LICENSE-Apache-2.0.txt",
ROOT_DIR / "CREDITS.md",
ROOT_DIR / "pyproject.toml",
]
for copyFile in copyFiles:
shutil.copyfile(copyFile, dst / copyFile)
shutil.copyfile(copyFile, dst / copyFile.name)
print("Copied:", copyFile, flush=True)
writeFile(dst / "MANIFEST.in", (
"include LICENSE.md\n"
"include setup/LICENSE-Apache-2.0.txt\n"
"include LICENSE-Apache-2.0.txt\n"
"include CREDITS.md\n"
"recursive-include novelwriter/assets *\n"
))