Mercurial > kallithea
changeset 8999:ff6c3e285166 stable
venv: limit pip version to stay below 24.1
Latest pip version pip fail:
WARNING: Ignoring version 5.0.5 of celery since it has invalid metadata:
Requested celery<5.1,>=5 from .../celery-5.0.5-py3-none-any.whl (from Kallithea==0.7.0) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
pytz (>dev)
~^
Please use pip<24.1 if you need to use this version.
We already use setuptools<67 for the same reason.
Pip will keep noting that a newer pip version is available. Resist the
temptation to upgrade.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 19 Jul 2024 19:19:10 +0200 |
parents | 36a36ebdf4bb |
children | a5d15a7511a9 |
files | Jenkinsfile docs/contributing.rst docs/installation.rst docs/installation_win.rst docs/installation_win_old.rst scripts/dbmigrate-test scripts/validate-commits scripts/validate-minimum-dependency-versions setup.py |
diffstat | 9 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Jenkinsfile Mon Dec 12 22:24:50 2022 +0100 +++ b/Jenkinsfile Fri Jul 19 19:19:10 2024 +0200 @@ -27,7 +27,7 @@ stage('virtual env') { def virtualenvscript = """$createvirtualenv $activatevirtualenv - python -m pip install --upgrade pip + python -m pip install --upgrade "pip<24.1" pip install --upgrade "setuptools<67" pip install --upgrade pylint pip install --upgrade pytest-cov
--- a/docs/contributing.rst Mon Dec 12 22:24:50 2022 +0100 +++ b/docs/contributing.rst Fri Jul 19 19:19:10 2024 +0200 @@ -33,7 +33,7 @@ cd kallithea python3 -m venv venv . venv/bin/activate - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" pip install --upgrade -e . -r dev_requirements.txt python-ldap python-pam kallithea-cli config-create my.ini kallithea-cli db-create -c my.ini --user=user --email=user@example.com --password=password --repos=/tmp
--- a/docs/installation.rst Mon Dec 12 22:24:50 2022 +0100 +++ b/docs/installation.rst Fri Jul 19 19:19:10 2024 +0200 @@ -55,7 +55,7 @@ cd kallithea python3 -m venv venv . venv/bin/activate - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" pip install --upgrade -e . python3 setup.py compile_catalog # for translation of the UI @@ -98,7 +98,7 @@ bash shell:: . /srv/kallithea/venv/bin/activate - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" .. note:: You can't use UNIX ``sudo`` to source the ``activate`` script; it will "activate" a shell that terminates immediately.
--- a/docs/installation_win.rst Mon Dec 12 22:24:50 2022 +0100 +++ b/docs/installation_win.rst Fri Jul 19 19:19:10 2024 +0200 @@ -104,7 +104,7 @@ cd C:\Kallithea\Env\Scripts activate - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar (depending of your folder structure). Then type::
--- a/docs/installation_win_old.rst Mon Dec 12 22:24:50 2022 +0100 +++ b/docs/installation_win_old.rst Fri Jul 19 19:19:10 2024 +0200 @@ -170,7 +170,7 @@ cd C:\Kallithea\Env\Scripts (or similar) activate - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar (depending of your folder structure). Then type::
--- a/scripts/dbmigrate-test Mon Dec 12 22:24:50 2022 +0100 +++ b/scripts/dbmigrate-test Fri Jul 19 19:19:10 2024 +0200 @@ -94,7 +94,7 @@ ( cd "$prefix" . "$prefix-env/bin/activate" - pip install --quiet --upgrade pip "setuptools<67" mercurial $EXTRA + pip install --quiet --upgrade "pip<24.1" "setuptools<67" mercurial $EXTRA pip install --quiet -e . ) }
--- a/scripts/validate-commits Mon Dec 12 22:24:50 2022 +0100 +++ b/scripts/validate-commits Fri Jul 19 19:19:10 2024 +0200 @@ -42,7 +42,7 @@ cleanup python3 -m venv "$venv" source "$venv/bin/activate" - pip install --upgrade pip "setuptools<67" + pip install --upgrade "pip<24.1" "setuptools<67" pip install -e . -r dev_requirements.txt python-ldap python-pam # run-all-cleanup
--- a/scripts/validate-minimum-dependency-versions Mon Dec 12 22:24:50 2022 +0100 +++ b/scripts/validate-minimum-dependency-versions Fri Jul 19 19:19:10 2024 +0200 @@ -30,7 +30,7 @@ python3 -m venv "$venv" source "$venv/bin/activate" -pip install --upgrade pip "setuptools<67" +pip install --upgrade "pip<24.1" "setuptools<67" pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2) # Treat any message on stderr as a problem, for the caller to interpret.