2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Make sure PIP is upgraded to latest version (#3402)

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver 2022-07-26 12:01:43 +10:00 committed by GitHub
parent cb540ebe90
commit a0813dd3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,7 @@ def install(c):
print("Installing required python packages from 'requirements.txt'") print("Installing required python packages from 'requirements.txt'")
# Install required Python packages with PIP # Install required Python packages with PIP
c.run('pip3 install --upgrade pip')
c.run('pip3 install -U -r requirements.txt') c.run('pip3 install -U -r requirements.txt')
@ -554,9 +555,9 @@ def test_translations(c):
# complie regex # complie regex
reg = re.compile( reg = re.compile(
r"[a-zA-Z0-9]{1}"+ # match any single letter and number r"[a-zA-Z0-9]{1}" + # match any single letter and number
r"(?![^{\(\<]*[}\)\>])"+ # that is not inside curly brackets, brackets or a tag r"(?![^{\(\<]*[}\)\>])" + # that is not inside curly brackets, brackets or a tag
r"(?<![^\%][^\(][)][a-z])"+ # that is not a specially formatted variable with singles r"(?<![^\%][^\(][)][a-z])" + # that is not a specially formatted variable with singles
r"(?![^\\][\n])" # that is not a newline r"(?![^\\][\n])" # that is not a newline
) )
last_string = '' last_string = ''