2023-02-17 00:34:09 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/pypa/pipenv/archive/refs/tags/v{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-03-08 04:08:47 +03:00
|
|
|
github: pypa/pipenv/releases/tags
|
2023-02-17 00:34:09 +03:00
|
|
|
strip: /^v/
|
|
|
|
|
|
|
|
dependencies:
|
2023-06-13 14:30:20 +03:00
|
|
|
python.org: ^3.7
|
|
|
|
pip.pypa.io: '*'
|
2023-02-17 00:34:09 +03:00
|
|
|
|
|
|
|
build:
|
2023-06-13 14:30:20 +03:00
|
|
|
dependencies:
|
|
|
|
crates.io/semverator: '*'
|
|
|
|
script:
|
|
|
|
- python-venv.sh {{prefix}}/bin/pipenv
|
|
|
|
|
|
|
|
# create symlinks for pipenv so it can auto install and use pythons it wants
|
|
|
|
- working-directory:
|
|
|
|
${{prefix}}/bin
|
|
|
|
run: |
|
|
|
|
v=3.6
|
|
|
|
while semverator lt $v {{deps.python.org.version.marketing}}; do
|
|
|
|
v=$(semverator bump $v minor | cut -d. -f1,2)
|
|
|
|
ln -s "../../../tea.xyz/v*/bin/tea" python$v
|
|
|
|
done
|
2023-02-17 00:34:09 +03:00
|
|
|
|
2023-03-08 04:08:47 +03:00
|
|
|
runtime:
|
2023-02-17 00:34:09 +03:00
|
|
|
env:
|
2023-03-08 04:08:47 +03:00
|
|
|
PIPENV_IGNORE_VIRTUALENVS: 1
|
|
|
|
|
|
|
|
test:
|
2023-08-20 00:09:51 +03:00
|
|
|
- pipenv --version | grep {{version}}
|
2023-06-13 14:30:20 +03:00
|
|
|
|
|
|
|
- run: |
|
|
|
|
pipenv --python 3.7
|
|
|
|
pipenv install pycowsay
|
|
|
|
pipenv run pycowsay "Hello World"
|
|
|
|
working-directory:
|
|
|
|
a
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
pipenv --python 3.10
|
|
|
|
pipenv install pycowsay
|
|
|
|
pipenv run pycowsay "Hello World"
|
|
|
|
working-directory:
|
|
|
|
b
|
2023-02-17 00:34:09 +03:00
|
|
|
|
|
|
|
provides:
|
2023-03-01 13:32:36 +03:00
|
|
|
- bin/pipenv
|
2023-06-13 14:30:20 +03:00
|
|
|
|
|
|
|
marker-files:
|
|
|
|
- Pipfile
|
|
|
|
- Pipfile.lock
|
|
|
|
# TODO python version can be obtained from the Pipfile
|