diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c5f4865..81ca277 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -6,13 +6,13 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - poetry-version: ["1.4.0"] + python-version: ["3.13"] + poetry-version: ["2.3.1"] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install poetry @@ -25,3 +25,5 @@ jobs: run: poetry run pytest tests - name: Run black run: poetry run black leakix/*.py tests/*.py example/*.py --check + - name: Security audit + run: poetry run pip-audit diff --git a/example/example_client.py b/example/example_client.py index 484671d..4dc48b9 100644 --- a/example/example_client.py +++ b/example/example_client.py @@ -5,7 +5,6 @@ from leakix.plugin import Plugin from datetime import datetime, timedelta - API_KEY = decouple.config("API_KEY") CLIENT = Client(api_key=API_KEY) diff --git a/leakix/client.py b/leakix/client.py index d9d259d..63b51c3 100644 --- a/leakix/client.py +++ b/leakix/client.py @@ -11,7 +11,6 @@ from leakix.field import * from leakix.domain import L9Subdomain - __VERSION__ = "0.1.9" diff --git a/pyproject.toml b/pyproject.toml index fbf0557..0d72f43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,18 +5,19 @@ description = "Official python client for LeakIX (https://leakix.net)" authors = ["Danny Willems "] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.13" requests = "*" l9format = "=1.3.1a3" fire = "^0.5.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] python-decouple = "*" pytest = "*" black = "*" mypy = "*" requests-mock = "*" pylint = "*" +pip-audit = "*" [build-system] requires = ["poetry-core>=1.0.0"]