mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Support of Py3 without py2to3
This commit is contained in:
parent
1040bb1a60
commit
40594146d1
4 changed files with 11 additions and 13 deletions
|
|
@ -1,3 +0,0 @@
|
|||
[run]
|
||||
source = .
|
||||
omit = build/*
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
9
setup.py
9
setup.py
|
|
@ -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', ],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue