Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for end-of-life Python 3.5 #412

Merged
merged 1 commit into from Aug 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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