Skip to content

Commit

Permalink
Update mitmproxy+cryptography pipfile + pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
bretfourbe committed Oct 19, 2023
1 parent 4e9d43f commit 7b141dd
Show file tree
Hide file tree
Showing 7 changed files with 743 additions and 696 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install "pylint==2.11.1"
pip install "pylint-ignore==2021.1020"
pip install "pylint==2.12.2"
pip install "pylint-ignore==2022.1025"
- name: Pylint
run: |
pylint-ignore --rcfile=.pylintrc wapitiCore
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Introduction
============

All installation methods assume you already have a Python 3.9 or more recent on your system.
All installation methods assume you already have a Python 3.10 or more recent on your system.

Note that if you have all the requirements pre-installed on your system, it is not necessary to use the setup.py script
to use Wapiti : just extract the archive and launch the "wapiti" command line in the "bin" folder :
Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ humanize = "==4.4.0"
loguru = ">=0.5.3"
mako = ">=1.1.4"
markupsafe = "==2.1.1"
mitmproxy = "==9.0.0"
mitmproxy = ">=10.1.1"
pyasn1 = "==0.4.8"
pydantic = "==1.10.2"
pytest = ">=5.4.1"
Expand All @@ -37,4 +37,4 @@ typing-extensions = "==4.4.0"
yaswfp = ">=0.9.3"

[requires]
python_version = "3.9"
python_version = "3.10"
1,413 changes: 730 additions & 683 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ http://wapiti-scanner.github.io/

Requirements
============
In order to work correctly, Wapiti needs Python 3.x where x is >= 9 (3.9, 3.10)
In order to work correctly, Wapiti needs Python 3.x where x is >= 10 (3.10, 3.11)

All Python module dependencies will be installed automatically if you use the setup.py script or `pip install wapiti3`

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies = [
"loguru>=0.5.3",
"mako>=1.1.4",
"markupsafe==2.1.1",
"mitmproxy==9.0.0",
"mitmproxy>=10.1.1",
"pyasn1==0.4.8",
"six>=1.15.0",
"sqlalchemy>=1.4.26",
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/wapiti/Dockerfile.integration
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye-slim as build
FROM debian:bookworm-slim as build

ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8
Expand All @@ -15,9 +15,9 @@ RUN apt-get -y update &&\

COPY . .

RUN pip3 install . requests
RUN pip3 install . requests --break-system-packages

FROM debian:bullseye-slim
FROM debian:bookworm-slim

ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
Expand All @@ -31,7 +31,7 @@ RUN apt-get -y update &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
truncate -s 0 /var/log/*log

COPY --from=build /usr/local/lib/python3.9/dist-packages/ /usr/local/lib/python3.9/dist-packages/
COPY --from=build /usr/local/lib/python3.11/dist-packages/ /usr/local/lib/python3.11/dist-packages/
COPY --from=build /usr/local/bin/wapiti /usr/local/bin/wapiti-getcookie /usr/local/bin/

COPY ./tests/integration/wapiti/test.py /usr/local/bin/test.py
Expand Down

0 comments on commit 7b141dd

Please sign in to comment.