Skip to content

Commit 18526a6

Browse files
Merge pull request #9 from asdfdotdev/development
Add v0.5.0 - Adds support for Python 3.13, 3.12, 3.11 - Remove support for Python 3.8, 3.7 - Update dependencies - Update workflows
2 parents 2f85188 + 290bab8 commit 18526a6

7 files changed

Lines changed: 24 additions & 66 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/code-styles.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ jobs:
1616
runs-on: ${{ matrix.operating-system }}
1717
strategy:
1818
matrix:
19-
python-version: [ '3.10' ]
20-
operating-system: [ ubuntu-20.04 ]
19+
python-version: [ '3.13' ]
20+
operating-system: [ ubuntu-22.04 ]
2121

2222
steps:
2323
- name: Setup Python
24-
uses: actions/setup-python@v2
24+
# Commit hash for v5.5.0: https://github.com/actions/setup-python/releases/tag/v5.5.0
25+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
2526
with:
2627
python-version: ${{ matrix.python-version }}
2728
architecture: x64
2829

2930
- name: Checkout fail2slack
30-
uses: actions/checkout@v2
31+
# Commit hash for v3.5.3: https://github.com/actions/checkout/releases/tag/v4.2.2
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3133

3234
- name: Install Requirements
3335
run: |

.github/workflows/unittest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ jobs:
1616
runs-on: ${{ matrix.operating-system }}
1717
strategy:
1818
matrix:
19-
python-version: [ '3.10', '3.9', '3.8', '3.7' ]
20-
operating-system: [ ubuntu-20.04 ]
19+
python-version: [ '3.13', '3.12', '3.11', '3.10', '3.9' ]
20+
operating-system: [ ubuntu-22.04 ]
2121

2222
steps:
2323
- name: Setup Python
24-
uses: actions/setup-python@v2
24+
# Commit hash for v5.5.0: https://github.com/actions/setup-python/releases/tag/v5.5.0
25+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
2526
with:
2627
python-version: ${{ matrix.python-version }}
2728
architecture: x64
2829

2930
- name: Checkout fail2slack
30-
uses: actions/checkout@v2
31+
# Commit hash for v3.5.3: https://github.com/actions/checkout/releases/tag/v4.2.2
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3133

3234
- name: Install Requirements
3335
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center"><img src="https://raw.githubusercontent.com/asdfdotdev/fail2slack/development/.github/images/logo.png" width="400"></p>
22

3-
![Unit Tests](https://github.com/asdfdotdev/fail2slack/workflows/Unit%20Tests/badge.svg) [![codecov](https://codecov.io/gh/asdfdotdev/fail2slack/branch/development/graph/badge.svg)](https://codecov.io/gh/asdfdotdev/fail2slack) [![downloads](https://img.shields.io/pypi/dm/fail2slack)](https://pypi.org/project/fail2slack)
3+
![Unit Tests](https://github.com/asdfdotdev/fail2slack/workflows/Unit%20Tests/badge.svg) [![downloads](https://img.shields.io/pypi/dm/fail2slack)](https://pypi.org/project/fail2slack)
44

55
fail2slack lets you send fail2ban jail status updates to Slack with ease.
66

@@ -10,7 +10,7 @@ fail2slack lets you send fail2ban jail status updates to Slack with ease.
1010

1111
fail2slack is developed for and tested with recent versions of Python, including:
1212

13-
- 3.7, 3.7.7, 3.8, 3.9, 3.10
13+
- 3.9, 3.10, 3.11, 3.12, 3.13
1414

1515
[Browse our build history at GitHub.](https://github.com/asdfdotdev/fail2slack/actions)
1616

fail2slack/delivery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def slack_output(message, self):
6767
response = requests.post(
6868
self.webhook_url,
6969
data=json.dumps({'text': message}),
70-
headers={'Content-Type': 'application/json'}
70+
headers={'Content-Type': 'application/json'},
71+
timeout=120
7172
)
7273

7374
if response.status_code != 200:

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
argparse==1.4.0
2-
requests==2.27.1
3-
validators==0.18.2
2+
requests==2.32.3
3+
validators==0.34.0

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='fail2slack',
11-
version='0.4.0',
11+
version='0.5.0',
1212
description='Send fail2ban jail status updates to Slack.',
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
@@ -20,17 +20,18 @@
2020
url='https://github.com/asdfdotdev/fail2slack',
2121
classifiers=[
2222
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
23-
"Programming Language :: Python :: 3.7",
24-
"Programming Language :: Python :: 3.8",
2523
"Programming Language :: Python :: 3.9",
2624
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
"Topic :: Security",
2829
"Topic :: System",
2930
"Topic :: Utilities",
3031
],
3132
install_requires=[
3233
'argparse==1.4.0',
33-
'requests==2.27.1',
34-
'validators==0.18.2',
34+
'requests==2.32.3',
35+
'validators==0.34.0',
3536
],
3637
)

0 commit comments

Comments
 (0)