1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

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 language: python
python: python:
- "2.7"
- "3.3" - "3.3"
- "3.4" - "3.4"
- "3.5" - "3.5"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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