Split the requirements list into two lists, load install_requires list from one of them.

(cherry picked from commit 4b3f422806)
This commit is contained in:
Robin Dunn
2019-05-21 12:13:05 -07:00
parent c154549d08
commit d214e606db
4 changed files with 21 additions and 18 deletions

View File

@@ -1,14 +1 @@
# Phoenix build and test requirements
appdirs
setuptools
six
wheel
twine
sphinx
requests
pytest
pytest-xdist
pytest-timeout
numpy
pillow
pathlib2
-r requirements/devel.txt

12
requirements/devel.txt Normal file
View File

@@ -0,0 +1,12 @@
# Python packages needed for building and testing wxPython Phoenix
-r install.txt
appdirs
setuptools
wheel
twine
sphinx
requests
pytest
pytest-xdist
pytest-timeout
pathlib2

4
requirements/install.txt Normal file
View File

@@ -0,0 +1,4 @@
# Runtime dependencies needed when using wxPython Phoenix
numpy
pillow
six

View File

@@ -89,9 +89,9 @@ Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: User Interfaces
"""
DEPENDENCIES = [ 'six',
'Pillow',
]
INSTALL_REQUIRES = [line.strip()
for line in open('requirements/install.txt').readlines()
if not line.startswith('#')]
isWindows = sys.platform.startswith('win')
isDarwin = sys.platform == "darwin"
@@ -356,7 +356,7 @@ if __name__ == '__main__':
platforms = PLATFORMS,
classifiers = [c for c in CLASSIFIERS.split("\n") if c],
keywords = KEYWORDS,
install_requires = DEPENDENCIES,
install_requires = INSTALL_REQUIRES,
zip_safe = False,
use_2to3 = False,
include_package_data = True,