proud-jackal-16497
03/26/2021, 4:00 PMproud-jackal-16497
03/26/2021, 4:00 PM[cache]
resolver = 'rest'
read_from = ['<http://localhost:8080>']
write_to = ['<http://localhost:8080>']
I have tried everything I can think of but I cannot seem to get Pants to make requests to a remote cache or fail when passing invalid cache locations...proud-jackal-16497
03/26/2021, 4:01 PMhappy-kitchen-89482
03/27/2021, 9:45 PMhappy-kitchen-89482
03/27/2021, 9:45 PMuser
03/27/2021, 9:46 PMflat-zoo-31952
03/27/2021, 10:52 PMproud-dentist-22844
03/28/2021, 5:15 AMhappy-kitchen-89482
03/28/2021, 5:27 AMhappy-kitchen-89482
03/28/2021, 5:28 AMhappy-kitchen-89482
03/28/2021, 5:31 AM./pants lint
pants will emit the various linters' error messages to stderrhappy-kitchen-89482
03/28/2021, 5:31 AMhappy-kitchen-89482
03/28/2021, 5:32 AMhappy-kitchen-89482
03/28/2021, 5:33 AM./pants lint
proud-dentist-22844
03/28/2021, 5:34 AMproud-dentist-22844
03/28/2021, 5:39 AMproud-dentist-22844
03/28/2021, 5:45 AMuser
03/29/2021, 5:42 PMhttps://pbs.twimg.com/media/Exl30I1WYAEzOoP.png▾
curved-television-6568
03/29/2021, 5:58 PMlint
goal.. but it doesn’t, regardless of if I run it with --no-mypy-skip
or with --mypy-skip
.. Is this a doc bug?user
03/29/2021, 9:59 PMhappy-kitchen-89482
03/29/2021, 10:19 PMbusy-vase-39202
03/29/2021, 11:39 PMechoing-farmer-15630
03/30/2021, 4:11 PMPANTS_CONFIG_FILES
to use a dedicated CI toml file when running from CI (to disable the dynamic ui among others) but this seems duplicative, and the name ...FILES
seems to imply that we can use multiples. Does this "or" the files together or some such, ie can we PANTS_CONFIG_FILES=<http://pants.ci|pants.ci>.toml,pants.toml
to not duplicate things, ie have pants.toml
but overwrite/supplement keys with <http://pants.ci|pants.ci>.toml
? If so, I assume order matters?happy-kitchen-89482
03/31/2021, 12:12 AMhappy-kitchen-89482
03/31/2021, 12:13 AMcurved-television-6568
03/31/2021, 12:08 PMpants.toml
:
[mypy]
config = "mypy.ini"
args = "--namespace-packages --explicit-package-bases"
and in mypy.ini
:
[mypy]
mypy_path = src:plugins
Any paths under which you have sources, but that aren’t part of the package name. So in this case, there are sources in src/<namespaceroot-pkgs>/…
and plugins/<other-pkgs>/…
To aid in debugging this, the -v
flag to mypy was really helpful, so you can inspect the output from mypy, on the form:
LOG: Found source: BuildSource(path='plugins/xx/flask/rest/routes/generic.py', module='xx.flask.rest.routes.generic', has_text=False, base_dir='/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionLIFk6M/plugins')
Here, the BuildSource(…, module=)
will show which module mypy thinks the source is in.
Relevant (and helpful) mypy docs: https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modulessalmon-barista-63163
03/31/2021, 3:41 PMERROR: No matching distribution found for <some dep>==x.x.x
That dependency clearly exists in pypi but it was updated in the last x minutes. It looks like pip is hanging on to its cache or not reaching out to pypi due to maybe the cache-control header being set too high. Anyone have a solution for this?
We have tried clearing the pip cache, pants caches, or just waiting. sometimes it works… others it does not. What am I missing here?echoing-farmer-15630
03/31/2021, 5:51 PMpants
executable only lists up to 3.8)? Not a dealbreaker at the moment, but our app is built with 3.9 and it would lightly simplify some infrastructure.echoing-manchester-70122
03/31/2021, 6:30 PM11:30:12 00:02 [run]
Traceback (most recent call last):
File "/Users/amckenna/code/python-commons/.pants.d/test/pytest-prep/CPython-3.8.2/dbace314d7260e4bab850ba0bdd823530b504bb3/.bootstrap/pex/pex.py", line 394, in execute
working_set = self._activate()
File "/Users/amckenna/code/python-commons/.pants.d/test/pytest-prep/CPython-3.8.2/dbace314d7260e4bab850ba0bdd823530b504bb3/.bootstrap/pex/pex.py", line 92, in _activate
for dist in env.activate():
File "/Users/amckenna/code/python-commons/.pants.d/test/pytest-prep/CPython-3.8.2/dbace314d7260e4bab850ba0bdd823530b504bb3/.bootstrap/pex/environment.py", line 239, in activate
self._working_set = self._activate()
File "/Users/amckenna/code/python-commons/.pants.d/test/pytest-prep/CPython-3.8.2/dbace314d7260e4bab850ba0bdd823530b504bb3/.bootstrap/pex/environment.py", line 408, in _activate
resolved = self._resolve(working_set, all_reqs)
File "/Users/amckenna/code/python-commons/.pants.d/test/pytest-prep/CPython-3.8.2/dbace314d7260e4bab850ba0bdd823530b504bb3/.bootstrap/pex/environment.py", line 290, in _resolve
distributions_by_key[distribution.as_requirement().key].append(distribution)
AttributeError: 'NoneType' object has no attribute 'as_requirement'
echoing-manchester-70122
03/31/2021, 6:36 PM