mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed extracting requirements from 'tests_require' (PY-7525)
This commit is contained in:
@@ -30,7 +30,9 @@ import java.util.List;
|
||||
* @author vlan
|
||||
*/
|
||||
public class PyPackageUtil {
|
||||
public static final String[] SETUP_PY_REQUIRES_KWARGS_NAMES = new String[] {"requires", "install_requires", "setup_requires"};
|
||||
public static final String[] SETUP_PY_REQUIRES_KWARGS_NAMES = new String[] {
|
||||
"requires", "install_requires", "setup_requires", "tests_require"
|
||||
};
|
||||
|
||||
private PyPackageUtil() {
|
||||
}
|
||||
|
||||
+6
-1
@@ -1,5 +1,9 @@
|
||||
from distutils.core import setup
|
||||
|
||||
tests_require = [
|
||||
'nose'
|
||||
]
|
||||
|
||||
setup(name='foo',
|
||||
version=0.1,
|
||||
requires=[
|
||||
@@ -8,5 +12,6 @@ setup(name='foo',
|
||||
install_requires=[
|
||||
'pip',
|
||||
'Django==1.3.1',
|
||||
])
|
||||
],
|
||||
tests_require=tests_require)
|
||||
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
<warning descr="Package requirements 'Markdown', 'Django==1.3.1' are not satisfied">print("Hello, World!")
|
||||
<warning descr="Package requirements 'Markdown', 'Django==1.3.1', 'nose' are not satisfied">print("Hello, World!")
|
||||
</warning>
|
||||
Reference in New Issue
Block a user