Skip to content

Commit af9e04e

Browse files
build: replace support of python '3.6' with python '3.13' (#111)
Co-authored-by: William Bergamin <[email protected]>
1 parent 9230af9 commit af9e04e

File tree

2 files changed

+36
-27
lines changed

2 files changed

+36
-27
lines changed

.github/workflows/ci-build.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,43 @@ name: CI Build
33

44
on:
55
push:
6-
branches: [ main, v2 ]
6+
branches:
7+
- main
8+
- v2
79
pull_request:
810

911
jobs:
1012
build:
11-
# Avoiding -latest due to https://github.com/actions/setup-python/issues/162
12-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1314
timeout-minutes: 5
1415
strategy:
1516
matrix:
16-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
17+
python-version:
18+
- "3.13"
19+
- "3.12"
20+
- "3.11"
21+
- "3.10"
22+
- "3.9"
23+
- "3.8"
24+
- "3.7"
1725
steps:
18-
- uses: actions/checkout@v4
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
- name: Install dependencies
24-
run: |
25-
pip install -U pip
26-
pip install -e .
27-
pip install -r requirements-dev.txt
28-
- name: Run all tests
29-
run: |
30-
python_version=`python -V`
31-
if [ ${python_version:7:3} == "3.12" ]; then
32-
pip install -U flake8
33-
flake8 slackeventsapi
34-
pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
35-
else
36-
pytest tests
37-
fi
26+
- uses: actions/checkout@v4
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install dependencies
32+
run: |
33+
pip install -U pip
34+
pip install -e .
35+
pip install -r requirements-dev.txt
36+
- name: Run all tests
37+
run: |
38+
python_version=`python -V`
39+
if [ ${python_version:7:3} == "3.12" ]; then
40+
pip install -U flake8
41+
flake8 slackeventsapi
42+
pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
43+
else
44+
pytest tests
45+
fi

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from setuptools import setup
21
import os
32
import re
43

4+
from setuptools import setup
5+
56
here = os.path.abspath(os.path.dirname(__file__))
67

78
# Read the version number from a source file.
@@ -30,7 +31,7 @@ def find_version(*file_paths):
3031
author_email='[email protected]',
3132
license='MIT',
3233
packages=['slackeventsapi'],
33-
python_requires=">=3.6",
34+
python_requires=">=3.7",
3435
long_description_content_type='text/x-rst',
3536
long_description=long_description,
3637
install_requires=[
@@ -45,12 +46,12 @@ def find_version(*file_paths):
4546
'Topic :: Office/Business',
4647
'License :: OSI Approved :: MIT License',
4748
'Programming Language :: Python',
48-
'Programming Language :: Python :: 3.6',
4949
'Programming Language :: Python :: 3.7',
5050
'Programming Language :: Python :: 3.8',
5151
'Programming Language :: Python :: 3.9',
5252
'Programming Language :: Python :: 3.10',
5353
'Programming Language :: Python :: 3.11',
5454
'Programming Language :: Python :: 3.12',
55+
'Programming Language :: Python :: 3.13',
5556
],
5657
zip_safe=False)

0 commit comments

Comments
 (0)