Skip to content

Commit ed03ccf

Browse files
committed
Cleanup setup.py
1 parent 86f7424 commit ed03ccf

File tree

1 file changed

+20
-28
lines changed
  • {{cookiecutter.github_project_name}}

1 file changed

+20
-28
lines changed

{{cookiecutter.github_project_name}}/setup.py

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
from __future__ import print_function
88
from glob import glob
99
from os.path import join as pjoin
10-
import sys
10+
1111

1212
from setupbase import (
1313
create_cmdclass, install_npm, ensure_targets,
1414
find_packages, combine_commands, ensure_python,
15-
get_version, setup, HERE
15+
get_version, HERE
1616
)
1717

18+
from setuptools import setup
19+
1820

1921
# The name of the project
2022
name = '{{ cookiecutter.python_package_name }}'
@@ -80,33 +82,23 @@
8082
'Programming Language :: Python :: 3.6',
8183
'Framework :: Jupyter',
8284
],
83-
)
84-
85-
86-
setuptools_args = dict(include_package_data=True)
87-
install_requires = setuptools_args['install_requires'] = [
88-
'ipywidgets>=7.0.0',
89-
]
90-
91-
extras_require = setuptools_args['extras_require'] = {
92-
'test': [
93-
'pytest',
94-
'pytest-cov',
95-
'nbval',
85+
include_package_data = True,
86+
install_requires = [
87+
'ipywidgets>=7.0.0',
9688
],
97-
'docs': [
98-
'sphinx',
99-
'recommonmark',
100-
'sphinx_rtd_theme'
101-
],
102-
}
103-
104-
if 'setuptools' in sys.modules:
105-
setup_args.update(setuptools_args)
106-
107-
setup_args.pop('scripts', None)
108-
109-
setup_args.update(setuptools_args)
89+
extras_require = {
90+
'test': [
91+
'pytest',
92+
'pytest-cov',
93+
'nbval',
94+
],
95+
'examples': [
96+
# Any requirements for the examples to run
97+
],
98+
},
99+
entry_points = {
100+
},
101+
)
110102

111103
if __name__ == '__main__':
112104
setup(**setup_args)

0 commit comments

Comments
 (0)