# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'Flask-Administration' copyright = u'2012, Bradford Toney' # 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 = __version__() # The full version, including alpha/beta/rc tags. release = __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.
version_file = os.path.join(file_base, "flask_administration/VERSION") if not os.path.exists(version_file): with open(version_file, 'w') as f: f.write('1') version = '' with open(version_file, 'r') as f: version = int(f.read()) + 1 with open(version_file, 'w+') as f: f.truncate(0) f.write(str(version)) #version_increment() setup( author='Bradford Toney', name='Flask-Administration', scripts=['scripts/flask_admin_manage'], version=__version__(), packages=['flask_administration'], include_package_data=True, zip_safe=False, platforms='any', classifiers = [ 'License :: OSI Approved :: GNU General Public License (GPL)', 'Development Status :: 3 - Alpha', 'Topic :: Software Development :: Libraries :: Python Modules', 'Programming Language :: Python'], )