mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Small fixes to setup.py
Ensure `setup.py build` and `setup.py test` work on a clean repo
This commit is contained in:
parent
ddf840cb72
commit
d4466432ea
4
setup.py
4
setup.py
@ -19,6 +19,7 @@ class WebpackBuildCommand(setuptools.command.build_py.build_py):
|
||||
|
||||
def run(self):
|
||||
if not 'CI' in os.environ:
|
||||
subprocess.run(['npm', 'install'], check=True)
|
||||
subprocess.run(['node_modules/.bin/webpack', '--config', 'webpack.prod.js'], check=True)
|
||||
setuptools.command.build_py.build_py.run(self)
|
||||
|
||||
@ -116,6 +117,9 @@ setup(
|
||||
install_requires=[
|
||||
'sphinx'
|
||||
],
|
||||
tests_require=[
|
||||
'pytest',
|
||||
],
|
||||
extras_require={
|
||||
'dev': [
|
||||
'transifex-client',
|
||||
|
Loading…
Reference in New Issue
Block a user