diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 45 |
1 files changed, 25 insertions, 20 deletions
@@ -41,27 +41,28 @@ 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>=2.0', + 'docutils>=0.11', + 'snowballstemmer>=1.1', + 'babel', +] +extras_require = { + # Environment Marker works for wheel 0.24 or later + ':sys_platform=="win32"': [ + 'colorama', + ], +} + +# for sdist installation with pip-1.5.6 +if sys.platform == 'win32': + requires.append('colorama') # Provide a "compile_catalog" command that also creates the translated # JavaScript files if Babel is available. @@ -180,12 +181,16 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', + 'Framework :: Sphinx', + 'Framework :: Sphinx :: Extension', + 'Framework :: Sphinx :: Theme', 'Topic :: Documentation', + 'Topic :: Documentation :: Sphinx', 'Topic :: Text Processing', 'Topic :: Utilities', ], platforms='any', - packages=find_packages(exclude=['custom_fixers', 'test']), + packages=find_packages(exclude=['test']), include_package_data=True, entry_points={ 'console_scripts': [ @@ -199,6 +204,6 @@ setup( ], }, install_requires=requires, + extras_require=extras_require, cmdclass=cmdclass, - **extra ) |