Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit a63c1e0

Browse files
authored
Merge pull request #79 from mgorny/st-inst
setup.py fixes
2 parents 8272e60 + 1c94919 commit a63c1e0

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

setup.py

100644100755
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import codecs
2-
try:
3-
from setuptools import setup, find_packages
4-
extra_setup = dict(
5-
install_requires=['requests', 'Jinja2>=2.9'],
6-
)
7-
except ImportError:
8-
from distutils.core import setup
9-
extra_setup = {}
2+
3+
from setuptools import setup, find_packages
104

115
setup(
126
name='readthedocs-sphinx-ext',
@@ -16,13 +10,13 @@
1610
url='http://github.com/readthedocs/readthedocs-sphinx-ext',
1711
license='MIT',
1812
description='Sphinx extension for Read the Docs overrides',
13+
install_requires=['requests', 'Jinja2>=2.9'],
1914
package_dir={'': '.'},
20-
packages=find_packages('.'),
15+
packages=find_packages('.', exclude=['tests']),
2116
long_description=codecs.open("README.rst", "r", "utf-8").read(),
2217
# trying to add files...
2318
include_package_data=True,
2419
package_data={
2520
'': ['_static/*.js', '_static/*.js_t', '_static/*.css', '_templates/*.tmpl'],
2621
},
27-
**extra_setup
2822
)

0 commit comments

Comments
 (0)