Skip to content

Commit 1e58753

Browse files
authored
Merge pull request #1103 from sigmavirus24/removal/py3.6
Removes Python 3.6
2 parents 6e9f03d + 61773fc commit 1e58753

File tree

9 files changed

+27
-60
lines changed

9 files changed

+27
-60
lines changed

.flake8

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

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,33 @@ jobs:
99
strategy:
1010
matrix:
1111
python:
12-
- { VERSION: "3.6", TOXENV: "py36", ALLOW_FAILURE: false }
1312
- { VERSION: "3.7", TOXENV: "py37", ALLOW_FAILURE: false }
1413
- { VERSION: "3.8", TOXENV: "py38",ALLOW_FAILURE: false }
1514
- { VERSION: "3.9", TOXENV: "py39",ALLOW_FAILURE: false }
1615
- { VERSION: "3.10", TOXENV: "py310",ALLOW_FAILURE: false }
17-
- { VERSION: "3.9", TOXENV: "flake8,doclint,docs,commitlint", ALLOW_FAILURE: false }
18-
- { VERSION: "3.9", TOXENV: "docstrings", ALLOW_FAILURE: true}
19-
- { VERSION: "pypy3", TOXENV: "pypy", ALLOW_FAILURE: false }
16+
- { VERSION: "3.10", TOXENV: "flake8,doclint,docs,commitlint", ALLOW_FAILURE: false }
17+
- { VERSION: "3.10", TOXENV: "docstrings", ALLOW_FAILURE: true}
18+
- { VERSION: "pypy3.9", TOXENV: "pypy", ALLOW_FAILURE: false }
2019

2120
steps:
2221
- name: Check out the repository
23-
uses: actions/[email protected]
22+
uses: actions/checkout@v3
23+
2424
- name: Setup Python
25-
uses: actions/setup-python@v2.2.1
25+
uses: actions/setup-python@v4.2.0
2626
with:
2727
python-version: ${{ matrix.PYTHON.VERSION }}
28+
2829
- name: Upgrade pip
2930
run: |
3031
pip install --constraint=.github/workflows/constraints.txt pip
3132
pip --version
33+
3234
- name: Install Tox
3335
run: |
3436
pip install --constraint=.github/workflows/constraints.txt tox
3537
tox --version
38+
3639
- name: Run Tox
3740
run: tox
3841
env:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
rev: v3.8.2
1818
hooks:
1919
- id: reorder-python-imports
20-
args: [--application-directories, '.:src', --py36-plus]
20+
args: [--application-directories, '.:src', --py37-plus]
2121
- repo: https://github.com/psf/black
2222
rev: 22.6.0
2323
hooks:
@@ -26,7 +26,7 @@ repos:
2626
rev: v2.37.3
2727
hooks:
2828
- id: pyupgrade
29-
args: [--py36-plus]
29+
args: [--py37-plus]
3030
#- repo: https://github.com/pre-commit/mirrors-mypy
3131
# rev: v0.910
3232
# hooks:
@@ -40,4 +40,4 @@ repos:
4040
rev: v2.0.0
4141
hooks:
4242
- id: setup-cfg-fmt
43-
args: [--min-py3-version, '3.6']
43+
args: [--min-py3-version, '3.7']

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
github3.py is a comprehensive, actively developed, and extraordinarily stable
55
wrapper around the GitHub API (v3).
66

7-
Note: This library currently works with Python 3.6+ or pypy3. For older versions, please use version 1.3.0.
7+
Note: This library currently works with Python 3.7+ or pypy3. For older versions, please use version 1.3.0.
88

99
Installation
1010
------------

appveyor.yml

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

docs/source/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ The tests are generally run using tox. Tox can be installed like so
123123
124124
We test against PyPy3 and the following versions of Python:
125125

126-
- 3.6
127-
128126
- 3.7
129127

130128
- 3.8

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 78
3-
target-version = ['py36']
3+
target-version = ['py37']
44
safe = true
55
exclude = '''
66
(

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ install_requires =
3636
python-dateutil>=2.6.0
3737
requests>=2.18
3838
uritemplate>=3.0.0
39-
typing-extensions>=3.10.0.2;python_version < "3.7"
40-
python_requires = >=3.6
39+
python_requires = >=3.7
4140
package_dir =
4241
=src
4342

tox.ini

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
2-
envlist = py{36,37,38,39,py3},black,flake8,doclint,commitlint,docstrings
3-
minversion = 3.1.3
2+
envlist = py{37,38,39,310,py39},black,flake8,doclint,commitlint,docstrings
3+
minversion = 3.4.0
44

55
[testenv]
6-
passenv = GH_* APPVEYOR*
6+
passenv = GH_*
77
pip_pre = False
88
deps =
99
requests{env:REQUESTS_VERSION:>=2.0}
@@ -17,12 +17,12 @@ commands = pytest {posargs}
1717
[testenv:flake8]
1818
skip_install = true
1919
deps =
20-
flake8 >= 3.8.4
20+
flake8 >= 5.0.0
2121
commands = flake8 {posargs} src/github3/ tests/unit/ tests/integration/
2222

2323
[testenv:build]
2424
skip_install = true
25-
basepython = python3.9
25+
basepython = python3.10
2626
deps =
2727
build
2828
commands =
@@ -33,18 +33,18 @@ pip_pre = true
3333
skip_install = true
3434
basepython = python3
3535
deps =
36-
black >= 21.9b0
36+
black >= 22.6.0
3737
commands = black src/github3/ tests/
3838

3939
[testenv:notebooks]
40-
basepython = python3.6
40+
basepython = python3.10
4141
deps =
4242
ipython[notebook]
4343
commands = python tests/nbtest.py
4444

45-
[testenv:py39-docstrings]
45+
[testenv:py310-docstrings]
4646
deps =
47-
flake8 >= 3.8.4
47+
flake8 >= 5.0.0
4848
commands = flake8 {posargs} src/github3/ tests/unit/ tests/integration/
4949

5050
[testenv:venv]
@@ -86,7 +86,7 @@ commands =
8686
rst-lint AUTHORS.rst CONTRIBUTING.rst README.rst
8787
; {toxinidir}/docs/bin/lint
8888

89-
[testenv:py39-commitlint]
89+
[testenv:py310-commitlint]
9090
deps =
9191
gitlint >= 0.8.1
9292
commands =
@@ -110,4 +110,5 @@ norecursedirs = *.egg .git .* _*
110110
ignore-path-errors = docs/source/release-notes/1.0.0.rst;D001
111111

112112
[flake8]
113-
extend-ignore = E203
113+
extend-ignore = E203,W503
114+
max-line-length = 80

0 commit comments

Comments
 (0)