Skip to content

Drop Python2 support #28

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions fastpurge/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@

import requests

try:
from time import monotonic
except ImportError: # pragma: no cover
from monotonic import monotonic
from time import monotonic

from six import string_types
from six.moves.urllib.parse import urljoin
from urllib.parse import urljoin

from akamai.edgegrid import EdgeGridAuth
from akamai.edgegrid.edgerc import EdgeRc
Expand Down Expand Up @@ -345,7 +341,7 @@ def get_auth_dict(value):
if value is None:
value = os.path.expanduser('~/.edgerc')

if not isinstance(value, string_types):
if not isinstance(value, str):
raise TypeError("Invalid 'auth' argument")

if not os.path.exists(value):
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
requests
more-executors>=2.7.0
six
monotonic; python_version < '3.3'
edgegrid-python
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ def get_requirements():
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=get_requirements(),
python_requires='>=2.6',
python_requires='>=3.6',
project_urls={
'Documentation':
'https://release-engineering.github.io/python-fastpurge/',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py39,py310,py311,static,docs
envlist = py39,py310,py311,static,docs

[testenv]
deps=-rtest-requirements.txt
Expand Down