Skip to content

Commit d920763

Browse files
authored
Merge pull request #20 from jacebrowning/require-3.8
Require at least Python 3.8
2 parents 34423d9 + 11f8b69 commit d920763

File tree

7 files changed

+134
-46
lines changed

7 files changed

+134
-46
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
dist: xenial
1+
dist: focal
22

33
language: python
44
python:
5-
- 3.6
6-
- 3.7
7-
- 3.8
5+
- "3.8"
6+
- "3.9"
7+
- "3.10.0"
88

99
cache:
1010
pip: true
@@ -16,8 +16,7 @@ env:
1616
- RANDOM_SEED=0
1717

1818
before_install:
19-
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
20-
- source $HOME/.poetry/env
19+
- curl -sSL https://install.python-poetry.org | python3 -
2120
- make doctor
2221

2322
install:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.0 (2022-09-18)
2+
3+
- Dropped support for Python 3.6 and 3.7.
4+
15
# 2.3 (2022-01-20)
26

37
- Updated the representation of `expect.anything` to simplify diffs.

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $(DEPENDENCIES): poetry.lock
4747

4848
ifndef CI
4949
poetry.lock: pyproject.toml
50-
poetry lock
50+
poetry lock --no-update
5151
@ touch $@
5252
endif
5353

@@ -124,8 +124,7 @@ $(MKDOCS_INDEX): docs/requirements.txt mkdocs.yml docs/*.md
124124
poetry run mkdocs build --clean --strict
125125

126126
docs/requirements.txt: poetry.lock
127-
@ poetry export --dev --without-hashes | grep mkdocs >> $@
128-
@ poetry export --dev --without-hashes | grep pygments >> $@
127+
poetry export --dev --without-hashes --output $@
129128

130129
.PHONY: uml
131130
uml: install docs/*.png

docs/requirements.txt

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,71 @@
1-
mkdocs==1.2.3; python_version >= "3.6"
2-
pygments==2.11.2; python_version >= "3.5"
3-
mkdocs==1.2.3; python_version >= "3.6"
4-
pygments==2.11.2; python_version >= "3.5"
1+
altgraph==0.17.2 ; python_version >= "3.8" and python_version < "4.0"
2+
appdirs==1.4.4 ; python_version >= "3.8" and python_version < "4.0"
3+
astroid==2.9.0 ; python_version >= "3.8" and python_version < "4.0"
4+
atomicwrites==1.4.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
5+
attrs==21.4.0 ; python_version >= "3.8" and python_version < "4.0"
6+
black==19.10b0 ; python_version >= "3.8" and python_version < "4.0"
7+
certifi==2021.10.8 ; python_version >= "3.8" and python_version < "4.0"
8+
charset-normalizer==2.0.10 ; python_version >= "3.8" and python_version < "4.0"
9+
click==8.0.3 ; python_version >= "3.8" and python_version < "4.0"
10+
colorama==0.3.9 ; python_version >= "3.8" and python_version < "4.0"
11+
coverage==6.2 ; python_version >= "3.8" and python_version < "4.0"
12+
coverage[toml]==6.2 ; python_version >= "3.8" and python_version < "4.0"
13+
coveragespace==3.1.1 ; python_version >= "3.8" and python_version < "4.0"
14+
docopt==0.6.2 ; python_version >= "3.8" and python_version < "4.0"
15+
freezegun==1.1.0 ; python_version >= "3.8" and python_version < "4.0"
16+
future==0.18.2 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
17+
ghp-import==2.0.2 ; python_version >= "3.8" and python_version < "4.0"
18+
idna==3.3 ; python_version >= "3.8" and python_version < "4.0"
19+
importlib-metadata==4.8.3 ; python_version >= "3.8" and python_version < "4.0"
20+
iniconfig==1.1.1 ; python_version >= "3.8" and python_version < "4.0"
21+
isort==4.3.21 ; python_version >= "3.8" and python_version < "4.0"
22+
jinja2==3.0.3 ; python_version >= "3.8" and python_version < "4.0"
23+
lazy-object-proxy==1.7.1 ; python_version >= "3.8" and python_version < "4.0"
24+
macfsevents==0.8.1 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "darwin"
25+
macholib==1.15.2 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "darwin"
26+
markdown==3.3.6 ; python_version >= "3.8" and python_version < "4.0"
27+
markupsafe==2.0.1 ; python_version >= "3.8" and python_version < "4.0"
28+
mccabe==0.6.1 ; python_version >= "3.8" and python_version < "4.0"
29+
mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "4.0"
30+
minilog==2.0.1 ; python_version >= "3.8" and python_version < "4.0"
31+
mkdocs==1.2.3 ; python_version >= "3.8" and python_version < "4.0"
32+
mypy-extensions==0.4.3 ; python_version >= "3.8" and python_version < "4.0"
33+
mypy==0.931 ; python_version >= "3.8" and python_version < "4.0"
34+
nose==1.3.7 ; python_version >= "3.8" and python_version < "4.0"
35+
packaging==21.3 ; python_version >= "3.8" and python_version < "4.0"
36+
pathspec==0.9.0 ; python_version >= "3.8" and python_version < "4.0"
37+
pefile==2021.9.3 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
38+
platformdirs==2.4.0 ; python_version >= "3.8" and python_version < "4.0"
39+
pluggy==1.0.0 ; python_version >= "3.8" and python_version < "4.0"
40+
py==1.11.0 ; python_version >= "3.8" and python_version < "4.0"
41+
pydocstyle==6.1.1 ; python_version >= "3.8" and python_version < "4.0"
42+
pygments==2.11.2 ; python_version >= "3.8" and python_version < "4.0"
43+
pyinstaller-hooks-contrib==2021.5 ; python_version >= "3.8" and python_version < "4.0"
44+
pyinstaller==4.5.1 ; python_version >= "3.8" and python_version < "4.0"
45+
pylint==2.12.0 ; python_version >= "3.8" and python_version < "4.0"
46+
pync==2.0.3 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "darwin"
47+
pyparsing==3.0.6 ; python_version >= "3.8" and python_version < "4.0"
48+
pytest-cov==3.0.0 ; python_version >= "3.8" and python_version < "4.0"
49+
pytest-describe==1.0.0 ; python_version >= "3.8" and python_version < "4.0"
50+
pytest-random==0.02 ; python_version >= "3.8" and python_version < "4.0"
51+
pytest==6.2.5 ; python_version >= "3.8" and python_version < "4.0"
52+
python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "4.0"
53+
python-termstyle==0.1.10 ; python_version >= "3.8" and python_version < "4.0"
54+
pywin32-ctypes==0.2.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
55+
pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0"
56+
pyyaml==6.0 ; python_version >= "3.8" and python_version < "4.0"
57+
regex==2021.11.10 ; python_version >= "3.8" and python_version < "4.0"
58+
requests==2.27.1 ; python_version >= "3.8" and python_version < "4.0"
59+
setuptools==65.3.0 ; python_version >= "3.8" and python_version < "4.0"
60+
six==1.16.0 ; python_version >= "3.8" and python_version < "4.0"
61+
sniffer==0.4.1 ; python_version >= "3.8" and python_version < "4.0"
62+
snowballstemmer==2.2.0 ; python_version >= "3.8" and python_version < "4.0"
63+
toml==0.10.2 ; python_version >= "3.8" and python_version < "4.0"
64+
tomli==1.2.3 ; python_version >= "3.8" and python_version < "4.0"
65+
typed-ast==1.5.1 ; python_version >= "3.8" and python_version < "4.0"
66+
types-setuptools==57.4.7 ; python_version >= "3.8" and python_version < "4.0"
67+
typing-extensions==4.0.1 ; python_version >= "3.8" and python_version < "4.0"
68+
urllib3==1.26.8 ; python_version >= "3.8" and python_version < "4"
69+
watchdog==2.1.6 ; python_version >= "3.8" and python_version < "4.0"
70+
wrapt==1.13.3 ; python_version >= "3.8" and python_version < "4.0"
71+
zipp==3.6.0 ; python_version >= "3.8" and python_version < "4.0"

expecter/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
import pprint
1111
import sys
1212
from collections import OrderedDict
13-
14-
import pytest
15-
from pkg_resources import DistributionNotFound, get_distribution
13+
from importlib.metadata import PackageNotFoundError, version
1614

1715

1816
try:
19-
__version__ = get_distribution('pytest-expecter').version
20-
except DistributionNotFound:
17+
__version__ = version('pytest-expecter')
18+
except PackageNotFoundError:
2119
__version__ = '(local)'
2220

2321

poetry.lock

Lines changed: 44 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "pytest-expecter"
4-
version = "2.3"
4+
version = "3.0"
55
description = "Better testing with expecter and pytest."
66

77
license = "BSD"
@@ -23,9 +23,9 @@ classifiers = [
2323
"License :: OSI Approved :: BSD License",
2424
"Operating System :: OS Independent",
2525
"Programming Language :: Python",
26-
"Programming Language :: Python :: 3.6",
27-
"Programming Language :: Python :: 3.7",
2826
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
2929
"Topic :: Software Development :: Testing",
3030
]
3131

@@ -35,7 +35,7 @@ packages = [
3535

3636
[tool.poetry.dependencies]
3737

38-
python = "^3.6"
38+
python = "^3.8"
3939

4040
[tool.poetry.dev-dependencies]
4141

@@ -62,6 +62,7 @@ coveragespace = "^3.1.1"
6262
# Documentation
6363
mkdocs = "^1.2.3"
6464
pygments = "*"
65+
jinja2 = "~3.0.3"
6566

6667
# Tooling
6768
pyinstaller = "*"

0 commit comments

Comments
 (0)