pantry/projects/virtualenv.pypa.io/package.yml

33 lines
889 B
YAML
Raw Normal View History

distributable:
2023-04-04 01:41:59 +03:00
url: https://github.com/pypa/virtualenv/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
versions:
github: pypa/virtualenv/releases/tags # reads github *releases* but uses the tags of those releases
strip: /^v/
dependencies:
2023-10-03 18:23:56 +03:00
python.org: '>=3.7<3.12'
build:
2023-03-01 13:32:36 +03:00
python-venv.sh {{prefix}}/bin/virtualenv
test:
script: |
# verify version
echo "$(virtualenv --version)" | grep "^virtualenv {{version}}"
# create venv in venv_dir
virtualenv venv_dir
WANT=$(venv_dir/bin/python -c 'import sys; print(sys.prefix)')
source venv_dir/bin/activate
test $WANT=$VIRTUAL_ENV # verify that venv activates successfully
pip install pycowsay # install a package inside the venv
deactivate # exit venv
venv_dir/bin/pycowsay "All tests pass!" # verify that pycowsay was installed inside the venv
provides:
- bin/virtualenv