enough-analyst-54434
10/30/2018, 1:48 AMmysterious-farmer-45668
10/30/2018, 1:52 AMmysterious-farmer-45668
10/30/2018, 1:55 AMFlask-AppBuilder==1.11.1 ; python_version < '3.7'
to the requirements.txt file still gives me the same problemenough-analyst-54434
10/30/2018, 1:55 AMFlask-AppBuilder==1.11.1
then in the target depending on - say - 3rdparty/python:apache-airflow
, add a new fake dependency on 3rdparty/python:Flask-AppBuilder
enough-analyst-54434
10/30/2018, 1:56 AMenough-analyst-54434
10/30/2018, 1:56 AMmysterious-farmer-45668
10/30/2018, 1:56 AMenough-analyst-54434
10/30/2018, 1:57 AMmysterious-farmer-45668
10/30/2018, 1:57 AMadd a new fake dependency
enough-analyst-54434
10/30/2018, 1:58 AMpython_library(name='BillysApp', sources=..., dependencies=[..., '3rdparty/python/Flask-AppBuilder'])
enough-analyst-54434
10/30/2018, 1:58 AMenough-analyst-54434
10/30/2018, 1:59 AMenough-analyst-54434
10/30/2018, 1:59 AMpython_binary
- trick works for either.enough-analyst-54434
10/30/2018, 2:00 AMwide-energy-11069
10/30/2018, 7:08 PMnailgun
to subprocess
?wide-energy-11069
10/30/2018, 7:08 PM--<scope>-execution-strategy
witty-crayon-22786
10/30/2018, 7:10 PM[default]
sectionmysterious-farmer-45668
10/31/2018, 12:38 AMmysterious-farmer-45668
10/31/2018, 12:38 AM17:38:16 10:32 [pythonstyle]
pex: PEX.run invoking /usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/seolh001/projects/de-monorepo/.pants.d/lint/pythonstyle/checker/ef7eaf0d6de3756b36baf85a347314e80acd4eef/CPython-2.7.14 --root-dir=/Users/seolh001/projects/de-monorepo --severity=COMMENT @/var/folders/7y/9l6fcjcn6pj__cgcnk3ggdxwzs6css/T/tmpW9R944
Failed to execute PEX file, missing macosx_10_13_x86_64-cp-27-cp27m compatible dependencies for:
future
pantsbuild.pants.contrib.python.checks.checker
six
pycodestyle
pyflakes
FAILURE: 1 Python Style issues found. You may try `./pants fmt <targets>`
mysterious-farmer-45668
10/31/2018, 1:08 AMmysterious-farmer-45668
10/31/2018, 1:09 AM~/.cache/pants/python_cache
freezing-daybreak-16435
10/31/2018, 10:11 AMrequirements.txt
? An example can be seen here: https://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-source
I'm asking because we use Pants to build machine learning projects and some of the latest libraries are not available on PyPI yet, e.g.: https://github.com/deepmind/trfl/mysterious-farmer-45668
10/31/2018, 6:25 PMalert-addition-34873
11/01/2018, 1:06 PM--test-pytest-junit-xml-dir
option but doesn't seem to work. I run
./pants test --changed-parent=origin/master --changed-include-dependees=direct --test-pytest-junit-xml-dir=./tests-out/
I have output in console as expected and I can see xml files in .pants.d/test/
but the directory I provide to --test-pytest-junit-xml-dir
remains empty. I tried both absolute and relative paths, directory exists.alert-addition-34873
11/01/2018, 1:16 PMbusy-car-23170
11/01/2018, 7:46 PMwitty-crayon-22786
11/01/2018, 7:58 PMwitty-crayon-22786
11/01/2018, 7:58 PMenough-analyst-54434
11/01/2018, 8:40 PM$ ./pants test --test-pytest-junit-xml-dir=./tests-out/ tests/python/pants_test/util:memo
$ xmllint -format tests-out/TEST-tests.python.pants_test.util.memo.xml | head
<?xml version="1.0" encoding="utf-8"?>
<testsuite errors="0" failures="0" name="pytest" skips="0" tests="18" time="0.061">
<testcase classname="...tests.python.pants_test.util.test_memo" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants/util/memo.py" line="258" name="testable_memoized_property" time="0.000488042831421"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="92" name="test_cache_factory" time="0.000428915023804"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="136" name="test_clear" time="0.000380039215088"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="216" name="test_descriptor_application_invalid" time="0.000358104705811"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="280" name="test_descriptor_application_valid" time="0.000385046005249"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="114" name="test_forget" time="0.000392913818359"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="29" name="test_function_application_kwargs" time="0.000377893447876"/>
<testcase classname="...tests.python.pants_test.util.test_memo.MemoizeTest" file="pyprep/sources/15408d347b4dde741ac5a7c56a9e8f5fd927e173/pants_test/util/test_memo.py" line="43" name="test_function_application_mixed" time="0.000340938568115"/>
Happy to dig further and check against your Pants versions if you file an issue after confirming there aren't simply no tests running.brief-engineer-67497
11/02/2018, 11:16 AM