Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVOPS-13192 - Latest python version (3.12.5) does not allow quotes in requirements.txt #22

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

olivia-sysdig
Copy link
Contributor

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:

$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)

Valid in python 3.12.4:

$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)

…n requirements.txt

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
@olivia-sysdig olivia-sysdig requested a review from a team as a code owner August 7, 2024 23:31
@olivia-sysdig olivia-sysdig merged commit 5c7f990 into main Aug 7, 2024
3 checks passed
@olivia-sysdig olivia-sysdig deleted the devops-13192 branch August 7, 2024 23:36
olivia-sysdig added a commit that referenced this pull request Aug 7, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
olivia-sysdig added a commit that referenced this pull request Aug 8, 2024
…n requirements.txt (#22)

This PR fixes the requirements.txt to build with the latest Python, which for some reason introduced new constraints for requirements.txt:

Not valid in python 3.12.5:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:814d347fb3ca3efe6bc5351b47468713fc02ba9e51cb6a3fe9bb76ca600107ae bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.5
ERROR: Invalid requirement: 'Jinja2 >= "3.0.3"': Expected end or semicolon (after name and no valid version specifier)
    Jinja2 >= "3.0.3"
           ^ (from line 1 of requirements.txt)
```

Valid in python 3.12.4:
```
$ docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" docker.io/library/python:3-slim@sha256:a3e58f9399353be051735f09be0316bfdeab571a5c6a24fd78b92df85bcb2d85 bash -c "python --version; pip install -r requirements.txt --target=/test"
Python 3.12.4
Collecting Jinja2>="3.0.3" (from -r requirements.txt (line 1))
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting pyaml>="20.4.0" (from -r requirements.txt (line 2))
  Downloading pyaml-24.7.0-py3-none-any.whl.metadata (11 kB)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants