def test_get_version(self): """ Ensures the get_version function returns a dot separated expression of the VERSION. """ expected = '.'.join([str(i) for i in VERSION]) actual = get_version() self.assertEqual(expected, actual)
# The master toctree document. master_doc = 'index' # General information about the project. project = u'RaspberryPy' copyright = u'2011, Nicholas Tollervey' # 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 = '.'.join([str(i) for i in VERSION[:2]]) #'0.1' # The full version, including alpha/beta/rc tags. release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build']
# The master toctree document. master_doc = 'index' # General information about the project. project = u'RaspberryPy' copyright = u'2011, Nicholas Tollervey' # 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 = '.'.join([str(i) for i in VERSION[:2]])#'0.1' # The full version, including alpha/beta/rc tags. release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build']
#!/usr/bin/env python from distutils.core import setup from rpy.version import get_version setup( name='RaspberryPy', version=get_version(), description='A Pythonic environment for learning Python on the RaspberryPi'\ ' device.', long_description=open('README').read(), author='Nicholas Tollervey', author_email='*****@*****.**', url='http://packages.python.org/RaspberryPy/', packages=['rpy'], scripts=['bin/rpy'], license='MIT', )