Build debian package for SQLCipher4

This commit is contained in:
Miguel Jacq 2025-12-21 12:58:42 +11:00
parent 2f68084bdd
commit d1aa5762bc
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
28 changed files with 285904 additions and 168 deletions

View file

@ -1,36 +1,50 @@
[project]
name = "sqlcipher3-wheels"
version = "0.5.6"
description = "DB-API 2.0 interface for SQLCipher 3.x"
readme = { content-type = "text/markdown", file = "README.md" }
[tool.poetry]
name = "bouquin-sqlcipher4"
version = "4.12.0"
description = "DB-API 2.0 interface for SQLCipher 4.x, for use with Bouquin"
authors = [
{ name = "Charles Leifer", email = "coleifer@gmail.com" },
{ name = "laggykiller", email = "chaudominic2@gmail.com" }
"Miguel Jacq <mig@mig5.net>",
"laggykiller <chaudominic2@gmail.com>",
"Charles Leifer <coleifer@gmail.com>",
]
license = { text = "zlib/libpng" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries :: Python Modules",
license = "MIT" # Poetry expects SPDX-ish strings; "MIT" is the usual one.
readme = "README.md"
# If your package dir is at repo root:
packages = [{ include = "sqlcipher4" }]
homepage = "https://git.mig5.net/mig5/bouquin-sqlcipher4"
repository = "https://git.mig5.net/mig5/bouquin-sqlcipher4"
# IMPORTANT: include native build outputs in wheel, and C sources/headers in sdist
include = [
{ path = "sqlcipher4/**/*.so", format = "wheel" },
{ path = "sqlcipher4/**/*.pyd", format = "wheel" },
{ path = "src/**/*.c", format = "sdist" },
{ path = "src/**/*.h", format = "sdist" },
{ path = "src/sqlcipher/sqlite3.c", format = "sdist" },
{ path = "src/sqlcipher/sqlite3.h", format = "sdist" },
]
[project.urls]
homepage = "https://github.com/laggykiller/sqlcipher3"
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
pytest = "^8"
pytest-cov = "^5"
[tool.poetry.build]
script = "scripts/build-extension.py"
[build-system]
requires = [
"conan>=2.0",
"setuptools>=45",
"lipomerge>=0.1.1",
"urllib3<2.0" # urllib3>=2.0 not work for building python3.7 wheels (https://github.com/urllib3/urllib3/issues/2168)
"poetry-core>=1.0.0",
"setuptools>=45",
"wheel",
"conan>=2.0",
"lipomerge>=0.1.1",
"urllib3<2.0",
]
build-backend = "setuptools.build_meta"
build-backend = "poetry.core.masonry.api"
[tool.setuptools]
packages = ["sqlcipher3"]