Skip to content

Commit 1791106

Browse files
Merge pull request #75 from lucy90/python-version-update
Update dependencies and remove deprecated python versions from tests
2 parents cb2f40a + c87f631 commit 1791106

12 files changed

Lines changed: 24 additions & 19 deletions

File tree

.github/workflows/pythonx-boot-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Runs with Python3.8 - Python3.10'
1+
name: 'Runs with Python3.10 - Python3.14'
22

33
on:
44
pull_request:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ '3.8.x', '3.9.x', '3.10.x' ]
15+
python-version: [ '3.10.x', '3.11.x', '3.12.x', '3.13.x', '3.14.x' ]
1616

1717
steps:
1818
- uses: actions/checkout@v2

.github/workflows/pythonx-pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'PyTest with Python3.8 - Python3.10'
1+
name: 'PyTest with Python3.10 - Python3.14'
22

33
on:
44
pull_request:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ '3.8.x', '3.9.x', '3.10.x' ]
15+
python-version: [ '3.10.x', '3.11.x', '3.12.x', '3.13.x', '3.14.x' ]
1616

1717
steps:
1818
- uses: actions/checkout@v2

.github/workflows/sonatype-jack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [ '3.8.x', '3.9.x', '3.10.x' ]
17+
python-version: [ '3.10.x', '3.11.x', '3.12.x', '3.13.x', '3.14.x' ]
1818

1919
steps:
2020
- uses: actions/checkout@v2

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[![Sonatype Jake](https://github.com/paterva/maltego-trx/actions/workflows/sonatype-jack.yml/badge.svg)](https://github.com/paterva/maltego-trx/actions/workflows/sonatype-jack.yml)
66

77
## Release Notes
8+
__1.7.0__: Update Python versions and remove support for Python 3.9 and lower
9+
Update cryptography (45.0.5), requests (2.32.4) and Flask (3.1.1) dependencies
810

911
__1.6.2__: Update cryptography (42.0.0) and Flask (3.0.0) dependencies
1012

@@ -26,8 +28,8 @@ __1.4.2__: Fixed python3.6 incompatibility
2628

2729
## Getting Started
2830

29-
_Note: Support for Python 2 has been officially discontinued as of July 2021. Please use Python 3.8 or higher to use
30-
up-to-date versions of Maltego TRX._
31+
_Note: Support for Python 2 has been officially discontinued as of July 2021. Also, support for python versions lower than 3.9 have been removed.
32+
Please use Python 3.10 or higher to use up-to-date versions of Maltego TRX._
3133

3234
To install the trx library run the following command:
3335

maltego_trx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.6.2"
1+
VERSION = "1.7.0"

maltego_trx/mtz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def create_last_sync_timestamp(timestamp: datetime.datetime = None) -> str:
7-
timestamp = timestamp or datetime.datetime.utcnow()
7+
timestamp = timestamp or datetime.datetime.now(datetime.timezone.utc)
88
return timestamp.strftime("%Y-%m-%d %H:%M:%S UTC")
99

1010

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
flask>=3.0.0
2-
cryptography>=41.0.7
3-
requests>=2.31.0
1+
flask>=3.1.1
2+
cryptography>=45.0.5
3+
requests>=2.32.4

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='maltego-trx',
9-
python_requires='>=3.8.0',
9+
python_requires='>=3.10.0',
1010
version=VERSION,
1111
description='Python library used to develop Maltego transforms',
1212
long_description=long_description,
@@ -16,9 +16,9 @@
1616
author_email='support@maltego.com',
1717
license='MIT',
1818
install_requires=[
19-
'flask>=3.0.0',
20-
'cryptography>=41.0.0',
21-
'requests>=2.31.0'
19+
'flask>=3.1.1',
20+
'cryptography>=45.0.5',
21+
'requests>=2.32.4'
2222
],
2323
packages=[
2424
'maltego_trx',

tests/__snapshots__/test_decorator_registry.ambr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# serializer version: 1
12
# name: test_write_local_mtz
23
list([
34
tuple(

tests/__snapshots__/test_mtz.ambr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# serializer version: 1
12
# name: test_create_local_server_xml
23
'<MaltegoServer description="Local transforms hosted on this machine" enabled="true" name="Local" url="http://localhost"><LastSync>2022-08-10 07:52:45 UTC</LastSync><Protocol version="0.0"></Protocol><Authentication type="none"></Authentication><Transforms><Transform name="to_lower"></Transform><Transform name="to_upper"></Transform><Transform name="to_title"></Transform></Transforms><Seeds></Seeds></MaltegoServer>'
34
# ---

0 commit comments

Comments
 (0)