plain-sundown-25537
02/05/2020, 10:45 PMBUILD
file name pattern, can I want to take BUILD
and ignore BUILD.bzl
:Dbrash-airport-5260
02/06/2020, 8:37 AMcrooked-tent-69497
02/06/2020, 10:25 AMcrooked-tent-69497
02/06/2020, 10:28 AMsubprocess.Popen("./pants run")
depending on what options I use to set up coverage ./pants --coverage=
or ./pants — --cov=
I seem to get different errors. Mostly version mismatch on the coverage file, or Failed to setup subprocess coverage. ... Exception: ModuleNotFoundError("No module named 'coverage'",)
, but it works fine for a case without subprocesses.crooked-tent-69497
02/06/2020, 10:37 AMException: ModuleNotFoundError("No module named '__pants_backend_python_tasks_pytest_prep_coverage_plugin__'",)
happy-kitchen-89482
02/06/2020, 5:19 PMdry-analyst-73584
02/06/2020, 5:20 PMcrooked-tent-69497
02/06/2020, 5:25 PMpsutil.Popen('./pants run {target}', shell=True)
and
psutil.Popen([os.getcwd() + '/pants', 'run', '{target}'])
chilly-carpet-91912
02/06/2020, 6:27 PMcrooked-tent-69497
02/06/2020, 10:06 PMcrooked-tent-69497
02/06/2020, 10:07 PMhappy-kitchen-89482
02/06/2020, 10:07 PMhappy-kitchen-89482
02/06/2020, 10:08 PMhappy-kitchen-89482
02/06/2020, 10:08 PMcrooked-tent-69497
02/06/2020, 10:09 PMdamp-quill-59187
02/06/2020, 10:21 PMdamp-quill-59187
02/06/2020, 10:21 PMdamp-quill-59187
02/06/2020, 10:21 PMechoing-manchester-70122
02/06/2020, 11:16 PMechoing-manchester-70122
02/06/2020, 11:17 PMhappy-kitchen-89482
02/06/2020, 11:40 PMhappy-kitchen-89482
02/06/2020, 11:42 PMhappy-kitchen-89482
02/06/2020, 11:43 PMhundreds-father-404
02/06/2020, 11:56 PMplain-sundown-25537
02/07/2020, 6:09 AM[ipython]
version: ["ipython==5.8.0 ; python_version<'3'","ipython==7.11.1 ; python_version>='3'"]
melodic-optician-41260
02/07/2020, 12:29 PM-Ypartial-unification
globally in my build, but I can’t find any documentation on how to do so. Could you guys help me out?damp-quill-59187
02/07/2020, 5:38 PMpants_version: 1.24.0rc1
we're trying to run ./pants test
with a target that uses the google-auth library. There is a specific issue with the library which breaks on older versions of setuptools
. Running a pytest after upgrading our setuptools version to 45.1.0
passes fine. When running it through pants, pants enforces setuptools 40.6.3
. We tried to get around this by adding in plugins: ["setuptools_scm", "setuptools==45.1.0"]
to our pants.ini, but then we get this error.
Exception caught: (pkg_resources.VersionConflict)
...
Exception message: (setuptools 40.6.3 (/root/.cache/pants/setup/bootstrap-Linux-x86_64/pants.dSeKhP/install/lib/python3.7/site-packages), Requirement.parse('setuptools==45.1.0'))
Is there a way that we can upgrade the version pants uses for setuptools on our end? And if not, is it possible to submit a PR to the pants repo which upgrades the version of setuptools pants uses behind the scenes?damp-quill-59187
02/07/2020, 5:41 PMdamp-quill-59187
02/07/2020, 6:01 PM[pex-builder-wrapper]
setuptools_version: 45.1.0
adding this to our pants.ini:
[pytest]
version: pytest>=5.2.4
pytest_plugins: +["setuptools_version==45.1.0"]
Trying both. & manually forcing a pip install of the newer setuptools versionhappy-kitchen-89482
02/07/2020, 6:27 PM