Skip to content

Commit 1eae85f

Browse files
authored
require python >= 3.9 (#497)
* Update tests to require python >= 3.9 * PyJWT version update * setup update * Update workflow to meet minimum requirements
1 parent 3b545fa commit 1eae85f

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
- name: Install Python 3
1515
uses: actions/setup-python@v3
1616
with:
17-
python-version: 3.8
17+
python-version: 3.9
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
2121
pip install -r requirements.txt
2222
pip install python-dateutil backoff monotonic
2323
pip install --user .
24-
sudo pip install pylint==2.8.0 flake8 mock==3.0.5 python-dateutil aiohttp==3.9.1
24+
sudo pip install pylint==3.3.1 flake8 mock==3.0.5 python-dateutil aiohttp==3.9.1
2525
- name: Run tests
2626
run: python -m unittest discover -s segment
2727

@@ -41,17 +41,11 @@ jobs:
4141
# runs-on: ubuntu-latest
4242
# strategy:
4343
# matrix:
44-
# python: ['3.7', '3.8', '3.9', '3.10', '3.11']
44+
# python: ['3.9', '3.10', '3.11']
4545
# coverage: [false]
4646
# experimental: [false]
4747
# include:
4848
# # Run code coverage.
49-
# - python: '3.7'
50-
# coverage: true
51-
# experimental: false
52-
# - python: '3.8'
53-
# coverage: true
54-
# experimental: false
5549
# - python: '3.9'
5650
# coverage: true
5751
# experimental: false

.github/workflows/tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22-
- name: Run with setup-python 3.8
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: '3.8'
26-
- name: Setup required modules
27-
run: python -m pip install -r requirements.txt
28-
- name: Run tests
29-
run: python -m unittest discover -s segment
30-
3122
- name: Run with setup-python 3.9
3223
uses: actions/setup-python@v5
3324
with:

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"requests~=2.7",
2424
"backoff~=2.1",
2525
"python-dateutil~=2.2",
26-
"PyJWT~=2.8"
26+
"PyJWT~=2.10.1"
2727
]
2828

2929
tests_require = [
3030
"mock==2.0.0",
31-
"pylint==2.8.0",
31+
"pylint==3.3.1",
3232
"flake8==3.7.9",
3333
]
3434

@@ -42,7 +42,7 @@
4242
maintainer_email='[email protected]',
4343
test_suite='segment.analytics.test.all',
4444
packages=['segment.analytics', 'segment.analytics.test'],
45-
python_requires='>=3.6.0',
45+
python_requires='>=3.9.0',
4646
license='MIT License',
4747
install_requires=install_requires,
4848
extras_require={
@@ -56,9 +56,6 @@
5656
"License :: OSI Approved :: MIT License",
5757
"Operating System :: OS Independent",
5858
"Programming Language :: Python",
59-
"Programming Language :: Python :: 3.6",
60-
"Programming Language :: Python :: 3.7",
61-
"Programming Language :: Python :: 3.8",
6259
"Programming Language :: Python :: 3.9",
6360
"Programming Language :: Python :: 3.10",
6461
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)