Skip to content

Commit

Permalink
release/tox.ini: no longer download packages.
Browse files Browse the repository at this point in the history
My tox cannot find Python 2.7 and I don't want to help it.
  • Loading branch information
mauritsvanrees committed Jul 30, 2024
1 parent be2d522 commit 5f0c1bc
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions release/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ envlist =
constraints2,
constraints38,
constraints,
downloads2,
downloads3,
gather,

[testenv]
Expand All @@ -27,32 +25,9 @@ depends = constraints2, constraints38
commands_pre =
commands = python combine-constraints.py {toxinidir}

[testenv:downloads2]
# Use pip to download all pinned packages.
basepython = python2.7
depends = constraints
commands_pre = pip install -U pip
commands =
# I tried first calling with --no-binary :all: to get source distributions
# and then with --only-binary :all: to get binary wheels.
# This fails at the first package that has no such distribution.
# Uninstalling wheel did not influence this.
pip download -r {toxinidir}/constraints2.txt --dest {toxinidir}/dist
# If you want to remove old dists (like a CMFPlone rc after you have done a final),
# do 'mv dist olddist', and use the next line in both downloads2 and downloads3:
# pip download -r {toxinidir}/constraints.txt --dest {toxinidir}/dist --no-index --find-links {toxinidir}/olddist

[testenv:downloads3]
basepython = python3.8
depends = constraints
commands_pre = pip install -U pip
commands =
pip download -r {toxinidir}/constraints38.txt --dest {toxinidir}/dist

[testenv:gather]
# Copy a few more files to the dist directory, for syncing with dist.plone.org.
basepython = python3.8
depends = downloads2, downloads3
allowlist_externals =
cp
mkdir
Expand Down

0 comments on commit 5f0c1bc

Please sign in to comment.