Drop support for Python 2

It's hard to maintain both versions, having unicode issues in py2, etc.
This commit is contained in:
Ivan Habunek 2017-12-12 11:36:08 +01:00
parent 38b6a475ca
commit 1b86cdd404
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
10 changed files with 2 additions and 21 deletions

View File

@ -1,7 +1,6 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"

View File

@ -1,3 +1,2 @@
requests>=2.13,<3.0
beautifulsoup4>=4.5.0,<5.0
future>=0.16

View File

@ -18,8 +18,6 @@ setup(
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
@ -30,7 +28,6 @@ setup(
install_requires=[
"requests>=2.13,<3.0",
"beautifulsoup4>=4.5.0,<5.0",
"future>=0.16",
],
entry_points={
'console_scripts': [

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from collections import namedtuple

View File

@ -4,7 +4,7 @@ import logging
import re
import requests
from future.moves.urllib.parse import urlparse, urlencode
from urllib.parse import urlparse, urlencode
from requests import Request, Session
from toot import CLIENT_NAME, CLIENT_WEBSITE

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import webbrowser

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import json
import requests
@ -9,7 +7,7 @@ import webbrowser
from bs4 import BeautifulSoup
from builtins import input
from datetime import datetime
from future.moves.itertools import zip_longest
from itertools import zip_longest
from getpass import getpass
from itertools import chain
from textwrap import TextWrapper, wrap

View File

@ -1,8 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import os
import sys
import logging

View File

@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import sys
import re
START_CODES = {
'red': '\033[31m',
'green': '\033[32m',

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import re