Support of Py3 without py2to3

This commit is contained in:
Juda Kaleta 2013-08-22 14:29:08 +02:00
parent 1040bb1a60
commit 40594146d1
4 changed files with 11 additions and 13 deletions

View file

@ -1,3 +0,0 @@
[run]
source = .
omit = build/*

View file

@ -9,7 +9,9 @@ install:
- pip install coveralls --use-mirrors
- pip install mock --use-mirrors
- pip install south --use-mirrors
- pip install nose
script:
- coverage run setup.py test
- python setup.py build
- nosetests --with-coverage --cover-package=embed_video --cover-tests --cover-erase
after_success:
- coveralls

View file

@ -1,5 +1,11 @@
import sys
import re
import urlparse
if sys.version_info >= (3, ):
import urllib.parse as urlparse
else:
import urlparse
import requests
import json

View file

@ -10,11 +10,6 @@ def read(fname):
README = read('README.rst')
CHANGES = read('CHANGES.rst')
extra_kwargs = {}
if sys.version_info >= (3,):
extra_kwargs = {'use_2to3': True}
setup(
name='django-embed-video',
packages=find_packages(),
@ -31,7 +26,5 @@ setup(
'Topic :: Internet :: WWW/HTTP',
],
keywords=['youtube', 'vimeo', 'video'],
test_suite='embed_video.tests.tests',
install_requires=['requests >= 1.2.3',],
**extra_kwargs
install_requires=['requests >= 1.2.3', ],
)