##// END OF EJS Templates
venv: limit pip version to stay below 24.1...
Mads Kiilerich -
r8777:ff6c3e28 stable
parent child Browse files
Show More
@@ -27,7 +27,7 b' node {'
27 stage('virtual env') {
27 stage('virtual env') {
28 def virtualenvscript = """$createvirtualenv
28 def virtualenvscript = """$createvirtualenv
29 $activatevirtualenv
29 $activatevirtualenv
30 python -m pip install --upgrade pip
30 python -m pip install --upgrade "pip<24.1"
31 pip install --upgrade "setuptools<67"
31 pip install --upgrade "setuptools<67"
32 pip install --upgrade pylint
32 pip install --upgrade pylint
33 pip install --upgrade pytest-cov
33 pip install --upgrade pytest-cov
@@ -33,7 +33,7 b' bash shell::'
33 cd kallithea
33 cd kallithea
34 python3 -m venv venv
34 python3 -m venv venv
35 . venv/bin/activate
35 . venv/bin/activate
36 pip install --upgrade pip "setuptools<67"
36 pip install --upgrade "pip<24.1" "setuptools<67"
37 pip install --upgrade -e . -r dev_requirements.txt python-ldap python-pam
37 pip install --upgrade -e . -r dev_requirements.txt python-ldap python-pam
38 kallithea-cli config-create my.ini
38 kallithea-cli config-create my.ini
39 kallithea-cli db-create -c my.ini --user=user --email=user@example.com --password=password --repos=/tmp
39 kallithea-cli db-create -c my.ini --user=user --email=user@example.com --password=password --repos=/tmp
@@ -55,7 +55,7 b' repository, use the following commands i'
55 cd kallithea
55 cd kallithea
56 python3 -m venv venv
56 python3 -m venv venv
57 . venv/bin/activate
57 . venv/bin/activate
58 pip install --upgrade pip "setuptools<67"
58 pip install --upgrade "pip<24.1" "setuptools<67"
59 pip install --upgrade -e .
59 pip install --upgrade -e .
60 python3 setup.py compile_catalog # for translation of the UI
60 python3 setup.py compile_catalog # for translation of the UI
61
61
@@ -98,7 +98,7 b' An additional benefit of virtualenv is t'
98 bash shell::
98 bash shell::
99
99
100 . /srv/kallithea/venv/bin/activate
100 . /srv/kallithea/venv/bin/activate
101 pip install --upgrade pip "setuptools<67"
101 pip install --upgrade "pip<24.1" "setuptools<67"
102
102
103 .. note:: You can't use UNIX ``sudo`` to source the ``activate`` script; it
103 .. note:: You can't use UNIX ``sudo`` to source the ``activate`` script; it
104 will "activate" a shell that terminates immediately.
104 will "activate" a shell that terminates immediately.
@@ -104,7 +104,7 b' In a command prompt type (adapting paths'
104
104
105 cd C:\Kallithea\Env\Scripts
105 cd C:\Kallithea\Env\Scripts
106 activate
106 activate
107 pip install --upgrade pip "setuptools<67"
107 pip install --upgrade "pip<24.1" "setuptools<67"
108
108
109 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
109 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
110 (depending of your folder structure). Then type::
110 (depending of your folder structure). Then type::
@@ -170,7 +170,7 b' In that CMD (loaded with VS2008 PATHs) t'
170
170
171 cd C:\Kallithea\Env\Scripts (or similar)
171 cd C:\Kallithea\Env\Scripts (or similar)
172 activate
172 activate
173 pip install --upgrade pip "setuptools<67"
173 pip install --upgrade "pip<24.1" "setuptools<67"
174
174
175 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
175 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
176 (depending of your folder structure). Then type::
176 (depending of your folder structure). Then type::
@@ -94,7 +94,7 b' install_kallithea() {'
94 (
94 (
95 cd "$prefix"
95 cd "$prefix"
96 . "$prefix-env/bin/activate"
96 . "$prefix-env/bin/activate"
97 pip install --quiet --upgrade pip "setuptools<67" mercurial $EXTRA
97 pip install --quiet --upgrade "pip<24.1" "setuptools<67" mercurial $EXTRA
98 pip install --quiet -e .
98 pip install --quiet -e .
99 )
99 )
100 }
100 }
@@ -42,7 +42,7 b' for rev in $(hg log -r "$revset" -T \'{no'
42 cleanup
42 cleanup
43 python3 -m venv "$venv"
43 python3 -m venv "$venv"
44 source "$venv/bin/activate"
44 source "$venv/bin/activate"
45 pip install --upgrade pip "setuptools<67"
45 pip install --upgrade "pip<24.1" "setuptools<67"
46 pip install -e . -r dev_requirements.txt python-ldap python-pam
46 pip install -e . -r dev_requirements.txt python-ldap python-pam
47
47
48 # run-all-cleanup
48 # run-all-cleanup
@@ -30,7 +30,7 b" sed 's/>=/==/p' dev_requirements.txt >> "
30
30
31 python3 -m venv "$venv"
31 python3 -m venv "$venv"
32 source "$venv/bin/activate"
32 source "$venv/bin/activate"
33 pip install --upgrade pip "setuptools<67"
33 pip install --upgrade "pip<24.1" "setuptools<67"
34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2)
34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2)
35
35
36 # Treat any message on stderr as a problem, for the caller to interpret.
36 # Treat any message on stderr as a problem, for the caller to interpret.
@@ -72,7 +72,7 b' requirements = ['
72 "paginate >= 0.5, < 0.6",
72 "paginate >= 0.5, < 0.6",
73 "paginate_sqlalchemy >= 0.3.0, < 0.4",
73 "paginate_sqlalchemy >= 0.3.0, < 0.4",
74 "bcrypt >= 3.1.0, < 3.2",
74 "bcrypt >= 3.1.0, < 3.2",
75 "pip >= 20.0, < 999",
75 "pip >= 20.0, < 24.1",
76 "chardet >= 3",
76 "chardet >= 3",
77 ]
77 ]
78 if sys.version_info < (3, 8):
78 if sys.version_info < (3, 8):
General Comments 0
You need to be logged in to leave comments. Login now