diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 1e327ae..568c286 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -7,16 +7,23 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.6 - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 with: - python-version: 3.6 + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install tox + - name: Running checks with Tox run: | tox diff --git a/README.md b/README.md index ce96e8d..fc59c5b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Requirements -Python >= 3.6 +Python >= 3.8 # What is netprobify? diff --git a/VERSION b/VERSION index ece61c6..f9cbc01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.6 \ No newline at end of file +1.0.7 \ No newline at end of file diff --git a/netprobify/protocol/tcpsyn.py b/netprobify/protocol/tcpsyn.py index 3f3583d..38b83e5 100644 --- a/netprobify/protocol/tcpsyn.py +++ b/netprobify/protocol/tcpsyn.py @@ -183,7 +183,6 @@ def generate_packets(self, all_groups, seq_gen, logging_level="WARNING"): self.packets.append(pkt) self.packets_rst.append(packets_rst) else: - pkt = ( af_ip_pkt / TCP(flags="S", seq=seq_id, dport=self.dst_port, sport=src_port) diff --git a/pylama.ini b/pylama.ini index f89b8a6..f6e9f51 100644 --- a/pylama.ini +++ b/pylama.ini @@ -1,7 +1,7 @@ [pylama] skip={toxworkdir}/*,build/*,dist/*,sdist/*,.tox/*,env/*,.env/*,venv/*,.venv/* ignore=E402,D100,D203,D213,D405,D407,D413 -linters=pycodestyle,pyflakes,pydocstyle +linters=pycodestyle,pyflakes [pylama:tests/*] linters=pycodestyle,pyflakes diff --git a/requirements/netprobify.txt b/requirements/netprobify.txt index 508dc32..937b715 100644 --- a/requirements/netprobify.txt +++ b/requirements/netprobify.txt @@ -4,8 +4,8 @@ flask-httpauth prometheus_client pykwalify PyYAML -requests==2.25.1 -setuptools==58.1.0 -scapy==2.4.5 +requests +setuptools +scapy==2.5.0 tornado waitress diff --git a/requirements/tests.txt b/requirements/tests.txt index 9d51fc8..af84c64 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -1,5 +1,4 @@ coverage -pydocstyle pykwalify pylama pytest