Skip to content

Commit 656dc13

Browse files
Drop Python 3.6 (#663)
1 parent 3cda960 commit 656dc13

File tree

5 files changed

+53
-9
lines changed

5 files changed

+53
-9
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[flake8]
22
enable-extensions = G
3+
exclude = demo/,tests/,examples/
34
max-doc-length = 88
45
max-line-length = 88
56
select = A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,B901,B902,B903,B950

.github/workflows/ci.yaml

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,47 @@ name: CI
33
on: [pull_request, push]
44

55
jobs:
6+
lint:
7+
name: Linter
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 5
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.9
17+
- name: Cache PyPI
18+
uses: actions/cache@v2
19+
with:
20+
key: pip-lint-${{ hashFiles('requirements-dev.txt') }}
21+
path: ~/.cache/pip
22+
restore-keys: |
23+
pip-lint-
24+
- name: Install dependencies
25+
uses: py-actions/py-dependency-install@v2
26+
with:
27+
path: requirements-dev.txt
28+
- name: Install itself
29+
run: pip install .
30+
- name: Mypy
31+
run: mypy
32+
- name: Flake8
33+
run: flake8
34+
- name: Prepare twine checker
35+
run: |
36+
pip install -U twine wheel
37+
python setup.py sdist bdist_wheel
38+
- name: Run twine checker
39+
run: twine check dist/*
40+
641
test:
742
name: Tests
843
runs-on: ubuntu-latest
944
strategy:
1045
matrix:
11-
python-version: [3.6, 3.7, 3.8, 3.9]
46+
python-version: [3.7, 3.8, 3.9]
1247

1348
steps:
1449
- name: Checkout
@@ -21,9 +56,6 @@ jobs:
2156
run: |
2257
pip install --upgrade pip
2358
pip install -r requirements-dev.txt
24-
- name: Run linters
25-
run: |
26-
make mypy
2759
- name: Run tests
2860
run: |
2961
make cov
@@ -34,6 +66,19 @@ jobs:
3466
file: ./coverage.xml
3567
flags: unit
3668

69+
check: # This job does nothing and is only used for the branch protection
70+
if: always()
71+
72+
needs: [lint, test]
73+
74+
runs-on: ubuntu-latest
75+
76+
steps:
77+
- name: Decide whether the needed jobs succeeded or failed
78+
uses: re-actors/alls-green@release/v1
79+
with:
80+
jobs: ${{ toJSON(needs) }}
81+
3782
deploy:
3883
name: Deploy
3984
environment: release

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
rev: '21.10b0'
3333
hooks:
3434
- id: black
35-
language_version: python3 # Should be a command that runs python3.6+
35+
language_version: python3
3636
- repo: https://github.com/pre-commit/pre-commit-hooks
3737
rev: 'v4.0.1'
3838
hooks:

docs/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ Continuous Integration.
119119
Dependencies
120120
------------
121121

122-
- Python 3.5.3+
123122
- :term:`cryptography` for
124123
:class:`~aiohttp_session.cookie_storage.EncryptedCookieStorage`
125124
- :term:`aioredis` for
126-
:class:`~aiohttp_session.redis_storage.RedisStorage`.
125+
:class:`~aiohttp_session.redis_storage.RedisStorage`
127126

128127

129128
Third party extensions

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def read(f):
3939
"Intended Audience :: Developers",
4040
"Programming Language :: Python",
4141
"Programming Language :: Python :: 3",
42-
"Programming Language :: Python :: 3.6",
4342
"Programming Language :: Python :: 3.7",
4443
"Programming Language :: Python :: 3.8",
4544
"Programming Language :: Python :: 3.9",
@@ -53,7 +52,7 @@ def read(f):
5352
url="https://github.com/aio-libs/aiohttp_session/",
5453
license="Apache 2",
5554
packages=["aiohttp_session"],
56-
python_requires=">=3.6",
55+
python_requires=">=3.7",
5756
install_requires=install_requires,
5857
include_package_data=True,
5958
extras_require=extras_require,

0 commit comments

Comments
 (0)