Commit 2557150b by Florian Apolloner

Prepare for 0.10a1 and fixed an order dependent test.

parent ce666a0d
include LICENSE
include CHANGELOG.txt
include AUTHORS include AUTHORS
include CHANGELOG.txt
include LICENSE
include README.rst include README.rst
recursive-include docs *.txt recursive-include docs *
recursive-include taggit/locale * recursive-include taggit/locale *
recursive-include tests *
from setuptools import setup, find_packages from setuptools import setup, find_packages
from taggit import VERSION
f = open('README.rst') f = open('README.rst')
readme = f.read() readme = f.read()
...@@ -9,21 +7,21 @@ f.close() ...@@ -9,21 +7,21 @@ f.close()
setup( setup(
name='django-taggit', name='django-taggit',
version=".".join(map(str, VERSION)), version='0.10a1',
description='django-taggit is a reusable Django application for simple tagging.', description='django-taggit is a reusable Django application for simple tagging.',
long_description=readme, long_description=readme,
author='Alex Gaynor', author='Alex Gaynor',
author_email='alex.gaynor@gmail.com', author_email='alex.gaynor@gmail.com',
url='http://github.com/alex/django-taggit/tree/master', url='http://github.com/alex/django-taggit/tree/master',
packages=find_packages(), packages=find_packages(),
zip_safe=False,
package_data = { package_data = {
'taggit': [ 'taggit': [
'locale/*/LC_MESSAGES/*', 'locale/*/LC_MESSAGES/*',
], ],
}, },
license='BSD',
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment', 'Environment :: Web Environment',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', 'License :: OSI Approved :: BSD License',
...@@ -32,4 +30,6 @@ setup( ...@@ -32,4 +30,6 @@ setup(
'Framework :: Django', 'Framework :: Django',
], ],
test_suite='taggit.tests.runtests.runtests', test_suite='taggit.tests.runtests.runtests',
include_package_data=True,
zip_safe=False,
) )
VERSION = (0, 10, 0, 'alpha', 0) VERSION = (0, 10, 0, 'alpha', 1)
...@@ -229,8 +229,8 @@ class TaggableManagerTestCase(BaseTaggingTestCase): ...@@ -229,8 +229,8 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
guava = self.food_model.objects.create(name="guava") guava = self.food_model.objects.create(name="guava")
self.assertEqual( self.assertEqual(
map(lambda o: o.pk, self.food_model.objects.exclude(tags__name__in=["red"])), sorted(map(lambda o: o.pk, self.food_model.objects.exclude(tags__name__in=["red"]))),
[pear.pk, guava.pk], sorted([pear.pk, guava.pk]),
) )
def test_similarity_by_tag(self): def test_similarity_by_tag(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment