Skip to content

Commit

Permalink
Merge pull request #412 from jdufresne/py35
Browse files Browse the repository at this point in the history
Remove support for end-of-life Python 3.5
  • Loading branch information
boxed committed Aug 25, 2021
2 parents ad82647 + 66513b4 commit eeffc27
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
@@ -1,6 +1,5 @@
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8
Expand Down
2 changes: 1 addition & 1 deletion freezegun/api.py
Expand Up @@ -117,7 +117,7 @@ def _get_module_attributes_hash(module):
module_dir = dir(module)
except (ImportError, TypeError):
module_dir = []
return '{}-{}'.format(id(module), hash(frozenset(module_dir)))
return f'{id(module)}-{hash(frozenset(module_dir))}'


def _get_cached_module_attributes(module):
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Expand Up @@ -10,7 +10,6 @@ license = Apache 2.0
classifiers =
License :: OSI Approved :: Apache Software License
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 All @@ -19,7 +18,7 @@ classifiers =

[options]
packages = freezegun
python_requires = >=3.5
python_requires = >=3.6
install_requires =
python-dateutil >= 2.7
include_package_data = true
2 changes: 1 addition & 1 deletion tests/test_warnings.py
Expand Up @@ -33,7 +33,7 @@ class ModuleWithWarning:
def attribute_that_emits_a_warning(self):
# Use unique warning messages to avoid messages being only reported once
self.__class__.counter += 1
warnings.warn('this is test warning #{counter}'.format(counter=self.__class__.counter))
warnings.warn(f'this is test warning #{self.__class__.counter}')
self.warning_triggered = True


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py35, py36, py37, py38, pypy3, py{38}-mypy
envlist = py36, py37, py38, pypy3, py{38}-mypy

[testenv]
commands = pytest --cov {posargs}
Expand Down

0 comments on commit eeffc27

Please sign in to comment.