Ready for Python 3

This commit is contained in:
Juda Kaleta 2013-08-22 12:03:42 +02:00
parent 0479c3e563
commit 6df2442914
4 changed files with 12 additions and 7 deletions

View file

@ -1,6 +1,7 @@
language: python
python:
- "2.7"
- "3.3"
env:
- DJANGO_VERSION=1.4.5
- DJANGO_VERSION=1.5.1

View file

@ -1,6 +1,3 @@
Changes
*******
Release 0.3 (Aug. 20, 2013)
----------------------------

View file

@ -2,6 +2,6 @@ import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'embed_video.tests.django_settings'
from tests_fields import EmbedVideoFieldTestCase, EmbedVideoFormFieldTestCase
from tests_backend import EmbedVideoTestCase
from tests_tags import EmbedVideoNodeTestCase
from .tests_fields import EmbedVideoFieldTestCase, EmbedVideoFormFieldTestCase
from .tests_backend import EmbedVideoTestCase
from .tests_tags import EmbedVideoNodeTestCase

View file

@ -1,6 +1,7 @@
from setuptools import setup, find_packages
import os
import sys
def read(fname):
@ -9,6 +10,11 @@ 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(),
@ -26,5 +32,6 @@ setup(
],
keywords=['youtube', 'vimeo', 'video'],
test_suite='embed_video.tests.tests',
install_requires=['requests >= 1.2.3', ],
install_requires=['requests >= 1.2.3',],
**extra_kwargs
)