Skip to content

Commit ec8664c

Browse files
committed
Drop support for Python 3.5, 3.4, and 2.7
This prepares us nicely for a 4.0 release
1 parent adf141e commit ec8664c

File tree

16 files changed

+667
-603
lines changed

16 files changed

+667
-603
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- { VERSION: "3.6", TOXENV: "py36", ALLOW_FAILURE: false }
1313
- { VERSION: "3.7", TOXENV: "py37", ALLOW_FAILURE: false }
1414
- { VERSION: "3.8", TOXENV: "py38", ALLOW_FAILURE: false }
15-
- { VERSION: "3.9", TOXENV: "py39,pep8",ALLOW_FAILURE: false }
16-
- { VERSION: "3.10", TOXENV: "py310", ALLOW_FAILURE: false }
15+
- { VERSION: "3.9", TOXENV: "py39",ALLOW_FAILURE: false }
16+
- { VERSION: "3.10", TOXENV: "py310i,pep8,pre-commit", ALLOW_FAILURE: false }
1717
- { VERSION: "pypy3", TOXENV: "pypy", ALLOW_FAILURE: false }
1818

1919
steps:

.pre-commit-config.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
exclude: ^tests/fixtures/
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.0.1
5+
hooks:
6+
- id: check-yaml
7+
- id: debug-statements
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- repo: https://github.com/asottile/reorder_python_imports
11+
rev: v2.6.0
12+
hooks:
13+
- id: reorder-python-imports
14+
args: [--application-directories, '.:src', --py36-plus]
15+
- repo: https://github.com/psf/black
16+
rev: 21.7b0
17+
hooks:
18+
- id: black
19+
args: [--line-length=79]
20+
- repo: https://github.com/asottile/pyupgrade
21+
rev: v2.23.3
22+
hooks:
23+
- id: pyupgrade
24+
args: [--py36-plus]
25+
- repo: https://github.com/pre-commit/mirrors-mypy
26+
rev: v0.910
27+
hooks:
28+
- id: mypy
29+
exclude: ^(docs/|example-plugin/)
30+
- repo: https://github.com/jorisroovers/gitlint
31+
rev: v0.16.0
32+
hooks:
33+
- id: gitlint

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog - uritemplate
22
=======================
33

4+
4.0.0 - 2021-10-xx
5+
------------------
6+
7+
- Drop support for Python 2.7, 3.4, and 3.5
8+
- Better support number-like types as values for variables in a template
9+
410
3.0.1 - 2019-12-19
511
------------------
612

LICENSE.BSD

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
Redistribution and use in source and binary forms, with or without
2-
modification, are permitted provided that the following conditions are
1+
Redistribution and use in source and binary forms, with or without
2+
modification, are permitted provided that the following conditions are
33
met:
44

5-
1. Redistributions of source code must retain the above copyright
5+
1. Redistributions of source code must retain the above copyright
66
notice, this list of conditions and the following disclaimer.
7-
2. Redistributions in binary form must reproduce the above copyright
8-
notice, this list of conditions and the following disclaimer in the
7+
2. Redistributions in binary form must reproduce the above copyright
8+
notice, this list of conditions and the following disclaimer in the
99
documentation and/or other materials provided with the distribution.
10-
3. The name of the author may not be used to endorse or promote products
10+
3. The name of the author may not be used to endorse or promote products
1111
derived from this software without specific prior written permission.
1212

13-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14-
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16-
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21-
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22-
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
13+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2323
POSSIBILITY OF SUCH DAMAGE.

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Where it might be useful to have a class
3737
if response.status_code == 200:
3838
self.__dict__.update(response.json())
3939
40-
When the module containing this class is loaded, ``GitHubUser.url`` is
41-
evaluated and so the template is created once. It's often hard to notice in
42-
Python, but object creation can consume a great deal of time and so can the
43-
``re`` module which uritemplate relies on. Constructing the object once should
40+
When the module containing this class is loaded, ``GitHubUser.url`` is
41+
evaluated and so the template is created once. It's often hard to notice in
42+
Python, but object creation can consume a great deal of time and so can the
43+
``re`` module which uritemplate relies on. Constructing the object once should
4444
reduce the amount of time your code takes to run.
4545

4646
Installing

0 commit comments

Comments
 (0)