Skip to content

Conversation

@lucy90
Copy link

@lucy90 lucy90 commented Jul 30, 2025

Update cryptography (45.0.5), requests (2.32.4) and Flask (3.1.1) dependencies

@felixatmaltego felixatmaltego self-assigned this Oct 30, 2025
@lucy90 lucy90 closed this Oct 30, 2025
@lucy90 lucy90 reopened this Oct 30, 2025
Copy link
Collaborator

@felixatmaltego felixatmaltego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pipeline is failing

@andor-pierdelacabeza
Copy link

@lucy90 , @felixatmaltego : Python 3.8 support for Flask was dropped on v3.1.0, and also Python 3.8 has been EOL for more than a year.

You should upgrade Python to at least 3.10 for this to work, although I'd upgrade to a version that at least is on bugfix status, like 3.13 or 3.14. Also, the requirements.txt in tests/ should be updated. See the Python version status site for reference.

Even upgrading syrupy to 5.0.0 and pytest to 9.0.1, just after updating syrupy snapshots to the new version, the tests seem to pass with just a small warning that's easy to fix:

❯ ../.venv/bin/pytest --snapshot-update
=========================== test session starts ============================
platform darwin -- Python 3.13.5, pytest-9.0.1, pluggy-1.6.0
rootdir: /Users/alvaro/Documents/personal/repos/maltego-trx
plugins: mock-3.15.1, syrupy-5.0.0
collected 31 items

test_decorator_registry.py ........                                  [ 25%]
test_mtz.py .......                                                  [ 48%]
test_property_mapping.py .                                           [ 51%]
test_xml.py ...............                                          [100%]

============================= warnings summary =============================
tests/test_decorator_registry.py::test_write_local_mtz_emit_global_settings_warning
tests/test_decorator_registry.py::test_write_local_mtz_emit_settings_warning
  /Users/alvaro/Documents/personal/repos/maltego-trx/maltego_trx/mtz.py:7: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    timestamp = timestamp or datetime.datetime.utcnow()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
------------------------- snapshot report summary --------------------------
30 snapshots updated.
====================== 31 passed, 2 warnings in 0.08s ======================

If you want me to do a PR for this, just let me know.

@felixatmaltego felixatmaltego merged commit 52b1530 into MaltegoTech:master Nov 28, 2025
1 of 9 checks passed
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.

4 participants