@@ -73,42 +73,43 @@ def run(cls):
7373                raise  SystemExit ('Missing/unordered pinned dependencies in tox.ini.' )
7474
7575
76- setup (
77-     author = '@Robpol86' ,
78- 79-     classifiers = [
80-         'Development Status :: 5 - Production/Stable' ,
81-         'Environment :: Console' ,
82-         'Framework :: Sphinx :: Extension' ,
83-         'Intended Audience :: Developers' ,
84-         'License :: OSI Approved :: MIT License' ,
85-         'Operating System :: MacOS' ,
86-         'Operating System :: POSIX :: Linux' ,
87-         'Operating System :: POSIX' ,
88-         'Programming Language :: Python :: 2.7' ,
89-         'Programming Language :: Python :: 3.3' ,
90-         'Programming Language :: Python :: 3.4' ,
91-         'Programming Language :: Python :: 3.5' ,
92-         'Programming Language :: Python :: Implementation :: PyPy' ,
93-         'Topic :: Documentation :: Sphinx' ,
94-         'Topic :: Software Development :: Documentation' ,
95-     ],
96-     cmdclass = dict (check_version = CheckVersion ),
97-     description = 'Sphinx extension that allows building versioned docs for self-hosting.' ,
98-     entry_points = {'console_scripts' : ['sphinx-versioning = sphinxcontrib.versioning.__main__:cli' ]},
99-     install_requires = INSTALL_REQUIRES ,
100-     keywords = 'sphinx versioning versions version branches tags' ,
101-     license = LICENSE ,
102-     long_description = readme (),
103-     name = NAME ,
104-     package_data = {'' : [
105-         os .path .join ('_static' , 'banner.css' ),
106-         os .path .join ('_templates' , 'banner.html' ),
107-         os .path .join ('_templates' , 'layout.html' ),
108-         os .path .join ('_templates' , 'versions.html' ),
109-     ]},
110-     packages = ['sphinxcontrib' , os .path .join ('sphinxcontrib' , 'versioning' )],
111-     url = 'https://github.com/Robpol86/'  +  NAME ,
112-     version = VERSION ,
113-     zip_safe = False ,
114- )
76+ if  __name__  ==  '__main__' :
77+     setup (
78+         author = '@Robpol86' ,
79+ 80+         classifiers = [
81+             'Development Status :: 5 - Production/Stable' ,
82+             'Environment :: Console' ,
83+             'Framework :: Sphinx :: Extension' ,
84+             'Intended Audience :: Developers' ,
85+             'License :: OSI Approved :: MIT License' ,
86+             'Operating System :: MacOS' ,
87+             'Operating System :: POSIX :: Linux' ,
88+             'Operating System :: POSIX' ,
89+             'Programming Language :: Python :: 2.7' ,
90+             'Programming Language :: Python :: 3.3' ,
91+             'Programming Language :: Python :: 3.4' ,
92+             'Programming Language :: Python :: 3.5' ,
93+             'Programming Language :: Python :: Implementation :: PyPy' ,
94+             'Topic :: Documentation :: Sphinx' ,
95+             'Topic :: Software Development :: Documentation' ,
96+         ],
97+         cmdclass = dict (check_version = CheckVersion ),
98+         description = 'Sphinx extension that allows building versioned docs for self-hosting.' ,
99+         entry_points = {'console_scripts' : ['sphinx-versioning = sphinxcontrib.versioning.__main__:cli' ]},
100+         install_requires = INSTALL_REQUIRES ,
101+         keywords = 'sphinx versioning versions version branches tags' ,
102+         license = LICENSE ,
103+         long_description = readme (),
104+         name = NAME ,
105+         package_data = {'' : [
106+             os .path .join ('_static' , 'banner.css' ),
107+             os .path .join ('_templates' , 'banner.html' ),
108+             os .path .join ('_templates' , 'layout.html' ),
109+             os .path .join ('_templates' , 'versions.html' ),
110+         ]},
111+         packages = ['sphinxcontrib' , os .path .join ('sphinxcontrib' , 'versioning' )],
112+         url = 'https://github.com/Robpol86/'  +  NAME ,
113+         version = VERSION ,
114+         zip_safe = False ,
115+     )
0 commit comments