From 20841c0358a5be547167f9a86461860951b21a8a Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 21 Feb 2024 18:25:10 +0200 Subject: [PATCH] new file: projects/litecli.com/package.yml --- projects/litecli.com/package.yml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 projects/litecli.com/package.yml diff --git a/projects/litecli.com/package.yml b/projects/litecli.com/package.yml new file mode 100644 index 00000000..e1a35911 --- /dev/null +++ b/projects/litecli.com/package.yml @@ -0,0 +1,43 @@ +distributable: + url: https://github.com/dbcli/litecli/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: dbcli/litecli/tags + +dependencies: + pkgx.sh: ^1 + sqlite.org: ^3.45 + +build: + dependencies: + python.org: ~3.12 + script: + - bkpyvenv stage {{prefix}} {{version}} + - ${{prefix}}/venv/bin/pip install . + - bkpyvenv seal {{prefix}} litecli + +provides: + - bin/litecli + +test: + - run: cp $FIXTURE config + fixture: | + [main] + table_format = tsv + less_chatty = True + working-directory: .config/litecli + - run: cp $FIXTURE test.sql + fixture: | + CREATE TABLE IF NOT EXISTS package_manager ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(256) + ); + INSERT INTO + package_manager (name) + VALUES + ('PKGX'); + - sqlite3 test.db < test.sql + - litecli --version | grep {{version}} + - litecli --help | grep 'A SQLite terminal client with auto-completion and syntax highlighting.' + - litecli test.db -e "SELECT * FROM package_manager" | grep PKGX