def test_load_version(self): # Just make sure it's there. self.assertTrue(len(load_version('VERSION')))
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup import rose setup( name='django-tastypie', version=rose.load_version('VERSION'), description='A flexible & capable API layer for Django.', author='Daniel Lindsley', author_email='*****@*****.**', url='http://github.com/toastdriven/django-tastypie/', long_description=open('README.rst', 'r').read(), packages=[ 'tastypie', 'tastypie.utils', 'tastypie.management', 'tastypie.management.commands', 'tastypie.migrations', 'tastypie.contrib', 'tastypie.contrib.gis', 'tastypie.contrib.contenttypes', ], package_data={ 'tastypie': ['templates/tastypie/*'],
import os import rose VERSION_FILE = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'VERSION') __author__ = 'Daniel Lindsley, Cody Soyland, Matt Croydon, Josh Bohde & Issac Kelly' __version__ = rose.build_version('your_package_name_here', rose.load_version(VERSION_FILE))
# The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8' # The master toctree document. master_doc = 'toc' # General information about the project. project = u'Tastypie' copyright = u'2010-2013, Daniel Lindsley, Cody Soyland, Matt Croydon, Josh Bohde & Issac Kelly' # TASTYPIE SPECIFIC import rose RELEASE_VERSION = rose.load_version('../VERSION') SHORT_VERSION = RELEASE_VERSION.split('-')[0] # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = SHORT_VERSION # The full version, including alpha/beta/rc tags. release = RELEASE_VERSION # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None