import sys from datetime import datetime sys.path.append( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))) import twix now = datetime.now() project = u'Twix' copyright = u'{0}, Christopher Reeves'.format(now.year) version = '{0}.{1}'.format(*twix.__VERSION__[:2]) release = twix.get_version() extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' exclude_patterns = ['_build'] pygments_style = 'sphinx' # Theme sys.path.append(os.path.abspath('_themes')) html_static_path = ['_static'] html_theme_path = ['_themes'] html_theme = 'flask' html_theme_options = { 'index_logo': 'twix.jpeg'
# For readthedocs.org we need sphinx-bootstrap-theme on_rtd = os.environ.get("READTHEDOCS", None) == "True" if on_rtd: install_requires = install_requires + ["sphinx-bootstrap-theme"] test_requires = ["mock==1.0.1", "tox==1.4.3", "nose==1.3", "coverage==3.6", "coveralls == 0.2"] if IS_PY26: test_requires = test_requires + ["unittest2"] dev_requires = test_requires + ["pdbpp==0.7", "ipython==0.13.2", "Sphinx==1.1.3", "flake8==2.0"] setup( name="twix", version=twix.get_version(), author="Christopher John Reeves", author_email="*****@*****.**", url="http://twix.readthedocs.org", description="Tmux window configuration, inspired by Tmuxinator", long_description=read("README.rst"), package_dir={"": "src"}, packages=find_packages("src"), scripts=["src/twix/bin/twix"], include_package_data=True, zip_safe=False, install_requires=install_requires, test_suite="runtests.runtests", extras_require={"test": test_requires, "develop": dev_requires}, classifiers=[ "Environment :: Console",