Esempio n. 1
0
    def test_get_version(self):
        """
        Test the version-info reporting.

        """
        versions = [
            {
                'version': (1, 0, 0, 'alpha', 0),
                'expected': "1.0 pre-alpha"
            },
            {
                'version': (1, 0, 1, 'alpha', 1),
                'expected': "1.0.1 alpha 1"
            },
            {
                'version': (1, 1, 0, 'beta', 2),
                'expected': "1.1 beta 2"
            },
            {
                'version': (1, 2, 1, 'rc', 3),
                'expected': "1.2.1 rc 3"
            },
            {
                'version': (1, 3, 0, 'final', 0),
                'expected': "1.3"
            },
            {
                'version': (1, 4, 1, 'beta', 0),
                'expected': "1.4.1 beta"
            },
        ]

        for version_dict in versions:
            compress.VERSION = version_dict['version']
            self.assertEqual(compress.get_version(), version_dict['expected'])
Esempio n. 2
0
from setuptools import setup, find_packages
from compress import get_version
setup(
    name='django-compress',
    version=get_version(),
    description='django-compress provides an automated system for compressing CSS and JavaScript files',
    author='Andreas Pelme',
    author_email='Andreas Pelme <*****@*****.**>',
    url='http://code.google.com/p/django-compress/',
    packages=find_packages(exclude=['test_project']),
    zip_safe=False,
    include_package_data=True,
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)