migrate(pipx, venv) (#6004)

* migrate(pipx, venv)

suggested by @felipecrs ([here](587441621e (commitcomment-141416453))) so we don't lock users of these packages out of newer pythons (now that 3.12 is reasonably well-supported).

* link to venv/lib

* venv is picky
This commit is contained in:
Jacob Heider 2024-04-26 19:40:41 -04:00 committed by GitHub
parent 0e87d56905
commit 9dde2d6f14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 7 deletions

View file

@ -6,13 +6,17 @@ versions:
github: pypa/pipx github: pypa/pipx
dependencies: dependencies:
python.org: '>=3<3.12' pkgx.sh: ^1
build: build:
python-venv.sh "{{prefix}}"/bin/pipx dependencies:
python.org: '>=3<3.12'
script:
- bkpyvenv stage '{{prefix}}' {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal '{{prefix}}' pipx
test: test: pipx run pycowsay moooo!
pipx run pycowsay moooo!
provides: provides:
- bin/pipx - bin/pipx

View file

@ -3,14 +3,24 @@ distributable:
strip-components: 1 strip-components: 1
versions: versions:
github: pypa/virtualenv/releases/tags # reads github *releases* but uses the tags of those releases github: pypa/virtualenv/releases/tags # reads github *releases* but uses the tags of those releases
strip: /^v/ strip: /^v/
dependencies: dependencies:
python.org: '>=3.7<3.12' pkgx.sh: ^1
libexpat.github.io: ^2
openssl.org: ^1.1
build: build:
python-venv.sh {{prefix}}/bin/virtualenv dependencies:
python.org: '>=3.7<3.12'
script:
- bkpyvenv stage '{{prefix}}' {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal '{{prefix}}' virtualenv
# needs this to find its libpython on linux
- run: cp '{{deps.python.org.prefix}}/lib/libpython'* .
working-directory: '{{prefix}}/lib'
test: test:
script: | script: |