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