[GLOBAL]pants_version: 1.8.0rc0pythonpath: ['%(buildroot)s/plugins']backend_packages: +['pycharm', 'concourse', 'pants.backend.docgen', 'cython']plugins: ['pantsbuild.pants.contrib.node==%(pants_version)s'][python-setup]interpreter_constraints: CPython>=3.6.1[pytest]requirements: pytest==3.0.6timeout_requirements: pytest-timeout==1.2.0cov_requirements: pytest-cov==2.4.0[test.pytest]fast: false[cache]read_from: ['/tmp/pantscache']write_to: ['/tmp/pantscache']
python_library(name='impl',sources=rglobs('*.py', exclude=[rglobs('tests/*.py')]),dependencies=['3rdparty:requests','3rdparty:pendulum',],)python_binary(name='tf-variable-updater',source='main.py',dependencies=[':impl'],)python_tests(name="test",sources=globs('tests/*.py'),dependencies=[':impl'],)
$ ./pants test tools/tf-variable-updater:14:47:12 00:00 [main](To run a reporting server: ./pants server)14:47:12 00:00 [setup]14:47:12 00:00 [parse]Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> jvm-platform-validate -> pyprep -> resolve -> compile -> resources -> test14:47:12 00:00 [bootstrap]14:47:12 00:00 [substitute-aliased-targets]14:47:12 00:00 [jar-dependency-management]14:47:12 00:00 [bootstrap-jvm-tools]14:47:12 00:00 [provide-tools-jar]14:47:12 00:00 [imports]14:47:13 00:01 [ivy-imports]14:47:13 00:01 [unpack-jars]14:47:13 00:01 [unpack-jars]14:47:13 00:01 [deferred-sources]14:47:13 00:01 [deferred-sources]14:47:13 00:01 [gen]14:47:13 00:01 [antlr-java]14:47:13 00:01 [antlr-py]14:47:13 00:01 [jaxb]14:47:13 00:01 [protoc]14:47:13 00:01 [ragel]14:47:13 00:01 [thrift-java]14:47:13 00:01 [thrift-py]14:47:13 00:01 [wire]14:47:13 00:01 [jvm-platform-validate]14:47:13 00:01 [jvm-platform-validate]14:47:13 00:01 [pyprep]14:47:13 00:01 [interpreter]14:47:13 00:01 [build-local-dists]14:47:13 00:01 [requirements]14:47:13 00:01 [sources]14:47:13 00:01 [cache]No cached artifacts for 4 targets.Invalidated 4 targets.Waiting for background workers to finish.14:47:13 00:01 [complete]FAILUREException caught: (<class 'pex.compiler.CompilationFailure'>)Exception message: encountered NonZeroExit("received exit code 1 during execution of `['/usr/bin/python2.7', '/tmp/tmp_VVqtO']` while trying to execute `['/usr/bin/python2.7', '/tmp/tmp_VVqtO']`",) during bytecode compilation.stderr was:Encountered 5 errors compiling 59 files:copy-env-versions.py: File "copy-env-versions.py", line 13"ops-test": f"{TERRAFORM_BASE_PATH}/ops-test/variables.tf",^SyntaxError: invalid syntaxtests/test_hclupdater.py: File "tests/test_hclupdater.py", line 21HCL_STRING = f"""{STANZA1}{STANZA2}"""^SyntaxError: invalid syntaxmain.py: File "main.py", line 94logging.info(f"Updating services: {', '.join(sorted(services))}")^SyntaxError: invalid syntaxhclupdater.py: File "hclupdater.py", line 42logger.info(f"Reading {self.filename}")^SyntaxError: invalid syntaxversion_fetcher.py: File "version_fetcher.py", line 30repository = f"gemini/{service}"^SyntaxError: invalid syntax
fyi I tried this while debugging it and it returns nothing: ./pants python-setup --helpIsn't that how to get help on a config option? If so maybe add some help for python-setup and put the answer in there?
Exception caught: (<class 'pants.base.exceptions.TargetDefinitionException'>)Exception message: Invalid target CompileCython(address not yet set): Expected 'sources' to be a glob, an address or a list, but was <class 'pants.engine.legacy.structs.RGlobs'>