diff --git a/debian/control b/debian/control index 3de0faa..0119e2e 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Build-Depends: pybuild-plugin-pyproject, python3, python3-setuptools, + python3-setuptools-scm, Rules-Requires-Root: no Standards-Version: 4.7.2 Homepage: https://www.mycli.net @@ -22,8 +23,8 @@ Architecture: all Depends: python3-cli-helpers, python3-prompt-toolkit (>= 2.0), - python3-sqlglot, python3-pyfzf, + python3-sqlglot, python3-sqlparse (>= 0.4), python3-tabulate, ${misc:Depends}, diff --git a/debian/rules b/debian/rules index ddb44a6..4da2b22 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,8 @@ export PYBUILD_NAME=mycli +export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | rev | cut -d- -f2- | rev) + %: dh ${@} --buildsystem=pybuild