Skip to content

Commit

Permalink
Drop Python 3.5 testing requirement
Browse files Browse the repository at this point in the history
On travis we can no longer verify 3.5 support.
  • Loading branch information
offbyone committed Aug 29, 2020
1 parent c13e4c4 commit ae3666d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ dist: xenial

matrix:
include:
- python: 3.5
env:
- TOX_ENV=py35
- python: 3.6
env:
- TOX_ENV=py36
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ def read(fname):
# On Python 3, we can't "from hamcrest import __version__" (get ImportError),
# so we extract the variable assignment and execute it ourselves.
fh = open("src/hamcrest/__init__.py")

# this will be overridden
__version__ = None
try:
for line in fh:
if re.match("__version__.*", line):
exec(line)

finally:
if fh:
fh.close()

assert __version__ is not None

params = dict(
name="PyHamcrest",
version=__version__, # flake8:noqa
Expand Down Expand Up @@ -52,7 +58,6 @@ def read(fname):
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Expand Down

0 comments on commit ae3666d

Please sign in to comment.