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 -r requirements/devel.txt
appdirs
setuptools
six
wheel
twine
sphinx
requests
pytest
pytest-xdist
pytest-timeout
numpy
pillow
pathlib2

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