Merge pull request #1244 from Pennyw0rth/mpgn-patch-1

Add new option to toml file to exclude package is old enough
This commit is contained in:
mpgn authored and GitHub committed 2026-07-31 09:44:18 +02:00
commit d24af22385
5 files changed
+2345 -48

No files matched your search

+10 -14
View File
@@ -14,20 +14,16 @@ jobs:
github.event_name == 'push' || github.event.review.state == 'APPROVED' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: 3.13
cache: poetry
cache-dependency-path: poetry.lock
- name: Install dependencies with dev group
run: |
poetry install --with dev
enable-cache: true
- name: Set up Python
run: uv python install 3.13
- name: Install project with dev group
run: uv sync --dev
- name: Run ruff
run: |
poetry run ruff --version
poetry run ruff check . --preview
uv run ruff --version
uv run ruff check . --preview
+18 -27
View File
@@ -16,33 +16,24 @@ jobs:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
poetry --version
poetry env info
- name: NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: poetry.lock
- name: Install with pipx
run: |
pipx install . --python python${{ matrix.python-version }}
- name: Install libraries with dev group
run: |
poetry install --with dev
enable-cache: true
- name: NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
run: uv python install ${{ matrix.python-version }}
- name: Install project
run: uv sync --python ${{ matrix.python-version }}
- name: Load every protocol and module
run: |
poetry run netexec winrm 127.0.0.1
poetry run netexec vnc 127.0.0.1
poetry run netexec smb 127.0.0.1
poetry run netexec ldap 127.0.0.1
poetry run netexec wmi 127.0.0.1
poetry run netexec rdp 127.0.0.1
poetry run netexec mssql 127.0.0.1
poetry run netexec ssh 127.0.0.1
poetry run netexec ftp 127.0.0.1
poetry run netexec smb 127.0.0.1 -L
uv run netexec winrm 127.0.0.1
uv run netexec vnc 127.0.0.1
uv run netexec smb 127.0.0.1
uv run netexec ldap 127.0.0.1
uv run netexec wmi 127.0.0.1
uv run netexec rdp 127.0.0.1
uv run netexec mssql 127.0.0.1
uv run netexec ssh 127.0.0.1
uv run netexec ftp 127.0.0.1
uv run netexec smb 127.0.0.1 -L
Generated
+2 -2
View File
@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.4.1 and should not be changed by hand.
[[package]]
name = "aardwolf"
@@ -2990,4 +2990,4 @@ test = ["pytest", "pytest-cov"]
[metadata]
lock-version = "2.1"
python-versions = ">=3.10,<4.0"
content-hash = "25f60e7259f7357057bcd2bb0bcc33475123c141864172753791300d45a04698"
content-hash = "06b6bb8d03df489bbccc835c0650c83407c4d5d7961e171df7a5144386d8ea56"
+14 -5
View File
@@ -83,11 +83,20 @@ format = "{base}+{distance}.{commit}"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry.group.dev.dependencies]
flake8 = "*"
shiv = "*"
pytest = "^7.2.2"
ruff = "*"
# uv and poetry native dev group (PEP 735)
[dependency-groups]
dev = [
"flake8",
"shiv",
"pytest>=7.2.2,<8",
"ruff",
]
# Supply-chain hardening: uv will ignore package artifacts uploaded to indexes
# within the last day, giving maintainers and scanners time to detect and remove
# malicious or compromised releases before they are selected during resolution.
[tool.uv]
exclude-newer = "1 day"
[tool.ruff]
target-version = "py310"
Generated
+2301
View File
File diff suppressed because it is too large. Load diff