Moving GUI requirements to a new requirements file. RE:#BITBUCKET-3714
This commit is contained in:
parent
b6c95b1d10
commit
3b2fac4d83
|
@ -4,3 +4,4 @@ include HISTORY.rst
|
|||
include LICENSE.txt
|
||||
include requirements.txt
|
||||
include requirements-dev.txt
|
||||
include requirements-gui.txt
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
# requirements-gui.txt
|
||||
# --------------------
|
||||
# This file records the packages and requirements needed in order for the
|
||||
# InVEST GUI to work as expected.
|
||||
|
||||
qtpy>1.3
|
||||
qtawesome
|
||||
faulthandler
|
|
@ -6,5 +6,6 @@
|
|||
:: ``make jenkins`` target on Windows.
|
||||
make env
|
||||
env\Scripts\python.exe -m pip install --upgrade .
|
||||
env\Scripts\python.exe install -r requirements-gui.txt
|
||||
make PYTHON=env\Scripts\python.exe windows_installer sampledata userguide python_packages
|
||||
env\scripts\python.exe scripts\jenkins_push_artifacts.py
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
# ``make jenkins`` target on a mac.
|
||||
|
||||
make env
|
||||
env/bin/python.exe -m pip install --upgrade .
|
||||
env/bin/python -m pip install --upgrade .
|
||||
env/bin/python -m pip install -r requirements-gui.txt
|
||||
make PYTHON=env/bin/python mac_installer userguide
|
||||
env/bin/python setup.py bdist_wheel
|
||||
env/bin/python scripts/jenkins_push_artifacts.py
|
||||
|
||||
|
||||
|
|
4
setup.py
4
setup.py
|
@ -17,6 +17,8 @@ import numpy
|
|||
# contents.
|
||||
_REQUIREMENTS = [req for req in open('requirements.txt').readlines()
|
||||
if not req.startswith(('#', 'hg+')) and len(req) > 0]
|
||||
_GUI_REQUIREMENTS = [req for req in open('requirements-gui.txt').readlines()
|
||||
if not req.startswith(('#', 'hg+')) and len(req) > 0]
|
||||
README = open('README_PYTHON.rst').read().format(
|
||||
requirements='\n'.join([' ' + r for r in _REQUIREMENTS]))
|
||||
|
||||
|
@ -120,7 +122,7 @@ setup(
|
|||
],
|
||||
},
|
||||
extras_require={
|
||||
'ui': ('qtpy>1.3', 'qtawesome', 'faulthandler'),
|
||||
'ui': _GUI_REQUIREMENTS,
|
||||
},
|
||||
package_data={
|
||||
'natcap.invest.reporting': [
|
||||
|
|
Loading…
Reference in New Issue