From 30d86bea0feb26deabca831b4f1c16a6d2959254 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 11 Mar 2024 22:34:20 +0200 Subject: [PATCH] +kislyuk.github.io/argcomplete (#5524) * new file: projects/kislyuk.github.io/argcomplete/package.yml * use bkpyvenv for best relocatibility * correct PYTHONPATH --------- Co-authored-by: Jacob Heider --- .../kislyuk.github.io/argcomplete/package.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/kislyuk.github.io/argcomplete/package.yml diff --git a/projects/kislyuk.github.io/argcomplete/package.yml b/projects/kislyuk.github.io/argcomplete/package.yml new file mode 100644 index 00000000..9b2d53ab --- /dev/null +++ b/projects/kislyuk.github.io/argcomplete/package.yml @@ -0,0 +1,34 @@ +distributable: + # Make sure you're either building from a fully intact git repository or PyPI tarballs + url: git+https://github.com/kislyuk/argcomplete.git + ref: ${{version.tag}} + +versions: + github: kislyuk/argcomplete + +dependencies: + pkgx.sh: ^1 + +runtime: + env: + PYTHONPATH: ${{prefix}}/venv/lib/python3/site-packages:$PYTHONPATH + +build: + dependencies: + python.org: ~3.12 + script: + - bkpyvenv stage {{prefix}} {{version}} + - ${{prefix}}/venv/bin/pip install setuptools wheel + - ${{prefix}}/venv/bin/pip install . + - bkpyvenv seal {{prefix}} activate-global-python-argcomplete register-python-argcomplete python-argcomplete-check-easy-install-script + - run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}} + working-directory: ${{prefix}}/venv/lib + +provides: + - bin/activate-global-python-argcomplete + - bin/register-python-argcomplete + - bin/python-argcomplete-check-easy-install-script + +test: + - register-python-argcomplete foo | grep '_python_argcomplete foo' + - python -c 'import argcomplete;'