diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-09-02 00:11:32 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-09-02 00:11:32 +0900 |
commit | 7836fb5d58e6f1d29524ddb977b90e67935a7fb8 (patch) | |
tree | 87799d7776f08ab19579fe5d6e9048e4f33ce454 /setup.py | |
parent | 02e197b1722aee99bd1d7e48017ee2af35259a0f (diff) | |
parent | 5df2ddec52533c5dff908280abc9c34d119ca987 (diff) | |
download | sphinx-7836fb5d58e6f1d29524ddb977b90e67935a7fb8.tar.gz |
merge with stable
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 33 |
1 files changed, 13 insertions, 20 deletions
@@ -41,27 +41,21 @@ Among its features are the following: * Setuptools integration ''' -requires = ['Pygments>=1.2', 'docutils>=0.7'] - -if sys.version_info[:3] >= (3, 3, 0): - requires[1] = 'docutils>=0.10' - if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 3): - requires.append('Jinja2>=2.3,<2.7') -else: - requires.append('Jinja2>=2.3') - -if sys.version_info < (2, 5): - print('ERROR: Sphinx requires at least Python 2.5 to run.') + print('ERROR: Sphinx requires at least Python 2.6 or 3.3 to run.') sys.exit(1) -# tell distribute to use 2to3 with our own fixers -extra = {} -if sys.version_info >= (3, 0): - extra.update( - use_2to3=True, - use_2to3_fixers=['custom_fixers'] - ) +requires = [ + 'six>=1.4', + 'Jinja2>=2.3', + 'Pygments>=1.2', + 'docutils>=0.10', + 'snowballstemmer>=1.1', + 'babel', +] + +if sys.platform == 'win32': + requires.append('colorama') # Provide a "compile_catalog" command that also creates the translated # JavaScript files if Babel is available. @@ -185,7 +179,7 @@ setup( 'Topic :: Utilities', ], platforms='any', - packages=find_packages(exclude=['custom_fixers', 'test']), + packages=find_packages(exclude=['test']), include_package_data=True, entry_points={ 'console_scripts': [ @@ -200,5 +194,4 @@ setup( }, install_requires=requires, cmdclass=cmdclass, - **extra ) |