Changeset - ff6c3e285166
[Not reviewed]
stable
0 9 0
Mads Kiilerich (mads) - 20 months ago 2024-07-19 19:19:10
mads@kiilerich.com
Grafted from: b030d4b848b7
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.
9 files changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
Jenkinsfile
Show inline comments
 
@@ -27,7 +27,7 @@ node {
 
    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
docs/contributing.rst
Show inline comments
 
@@ -33,7 +33,7 @@ bash shell::
 
        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
docs/installation.rst
Show inline comments
 
@@ -55,7 +55,7 @@ repository, use the following commands i
 
        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 @@ An additional benefit of virtualenv is t
 
  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.
docs/installation_win.rst
Show inline comments
 
@@ -104,7 +104,7 @@ In a command prompt type (adapting paths
 

	
 
  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::
docs/installation_win_old.rst
Show inline comments
 
@@ -170,7 +170,7 @@ In that CMD (loaded with VS2008 PATHs) t
 

	
 
  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::
scripts/dbmigrate-test
Show inline comments
 
@@ -94,7 +94,7 @@ install_kallithea() {
 
    (
 
        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 .
 
    )
 
}
scripts/validate-commits
Show inline comments
 
@@ -42,7 +42,7 @@ for rev in $(hg log -r "$revset" -T '{no
 
    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
scripts/validate-minimum-dependency-versions
Show inline comments
 
@@ -30,7 +30,7 @@ sed 's/>=/==/p' dev_requirements.txt >> 
 

	
 
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.
setup.py
Show inline comments
 
@@ -72,7 +72,7 @@ requirements = [
 
    "paginate >= 0.5, < 0.6",
 
    "paginate_sqlalchemy >= 0.3.0, < 0.4",
 
    "bcrypt >= 3.1.0, < 3.2",
 
    "pip >= 20.0, < 999",
 
    "pip >= 20.0, < 24.1",
 
    "chardet >= 3",
 
]
 
if sys.version_info < (3, 8):
0 comments (0 inline, 0 general)