boundless-garage-48817
09/07/2021, 12:11 PMaverage-australia-85137
09/07/2021, 3:04 PMrapid-bird-79300
09/09/2021, 9:24 PMsource_files_git_info = await Get(
SourceFilesGitInfo,
SourceFilesGitInfoRequest(source_files),
)
as long as we have access to the git repo I assume this would be possibleastonishing-london-2419
09/15/2021, 7:25 PMcurved-television-6568
09/16/2021, 9:22 PMplugins
to register a published plugin, but my experience is that I also need to add it to backend_packages
. Bug or feature?curved-television-6568
09/28/2021, 8:11 AMfaint-businessperson-86903
10/03/2021, 1:33 AMgenerate_exe
. Is there a mechanism I am missing to get multiple executables with the same archive? Or maybe I can make an ExternalTool for each executable I need and rely on caching to not download the archive n times?curved-television-6568
10/07/2021, 11:26 AMfaint-businessperson-86903
10/16/2021, 5:44 AMastonishing-london-2419
10/16/2021, 9:09 PMpackage
rule that works with python_library
as target. What I did was create a target
class DagsDependencies(Dependencies):
"""Simple inheritance for dependencies."""
class Dags(Target):
"""DAG tasks generated by a library."""
alias = "dags"
core_fields = (*COMMON_TARGET_FIELDS, DagsDependencies)
and then
@dataclass(frozen=True)
class DagsFieldSet(PackageFieldSet):
required_fields = (DagsDependencies,)
output_path: OutputPathField
dependencies: DagsDependencies
@rule(level=<http://LogLevel.INFO|LogLevel.INFO>)
async def package_dags(field_set: DagsFieldSet) -> BuiltPackage:
output_filename = field_set.output_path.value_or_default(
field_set.address, file_ending="yaml"
)
???
however, what I want no is to access the sources in the dependencies
, ie, loop over the dependencies and get the source files of those that are python_library
. I have been trying and reading source code, and I couldn’t manage. Any hints?flat-zoo-31952
10/19/2021, 5:52 PMbitter-ability-32190
11/04/2021, 6:24 PMpants
to have a "strict constraints" mode and will likely need some friendly nudges by the Pants devs to navigate the codebase.
Ideally in "strict_constraints" mode, all of a Python source's dependencies must exist in the requirements_constraints
file. This ensures nobody adds a dependency to a script without also adding it to the constraints file. (Additionally, this will help in migrating to pants
as it's hard for me to see which modules aren't getting found automagically and require a module_mapping
entry).bitter-ability-32190
11/09/2021, 2:59 PMpants
main
branch, I'm seeing the following:
Bootstrapping pants_deps with requirements:
/home/joshuacannon/work/pants/3rdparty/python/requirements.txt
/home/joshuacannon/work/pants/build-support/pants_venv: line 33: /home/joshuacannon/.cache/pants/pants_dev_deps/Linux.x86_64.x86_64.py38.venv/bin/pip: No such file or directory
This isn't the first time it has happened too 🤔bitter-ability-32190
11/09/2021, 9:44 PMpants
? It being a Python app, I could try to see if I could use py-spy
, but wanted to ping y'all firstbitter-ability-32190
11/11/2021, 4:30 PMper_file_caching
option to each linter itself?
I'm thinking some linters are faster than others (pylint
traverses imports and does crazy inference, whereas black
does very little work).
The tipping point here would be something like pylint
is faster to read from the cache than run, but for black
the difference might be in the noisebitter-ability-32190
11/12/2021, 12:26 PMpants.backend.python.target_types_rules
into a helper method, but then Pants gets upset
Exception: pants.backend.python.target_types_rules:134:generate_targets_from_python_tests() returned a result value that did not satisfy its constraints: <coroutine object _generate_targets_helper at 0x7f84820224c0>
bitter-ability-32190
11/12/2021, 10:06 PMbusy-vase-39202
11/16/2021, 10:59 PMfaint-businessperson-86903
11/29/2021, 11:10 PMfaint-businessperson-86903
11/30/2021, 2:15 AMhundreds-father-404
12/13/2021, 7:46 PMcurved-television-6568
12/15/2021, 3:52 PMhundreds-father-404
12/21/2021, 9:04 PMbitter-ability-32190
12/22/2021, 3:11 PMresolving requirements.pex
could be 🤔incalculable-yacht-75851
12/28/2021, 12:12 AMbitter-ability-32190
12/29/2021, 2:02 AMdata/foo.json
I know is relative to some dir ./bar
(e.g. ./bar/data.foo.json
), if it's a valid resource I want it's address, otherwise no-op)curved-television-6568
12/29/2021, 7:41 AMpants_requirements
produce when running with a PANTS_SHA
version.. ? Currently I get: đź§µincalculable-yacht-75851
01/04/2022, 12:54 AM./pants help prettier
đź§µmodern-plastic-65037
01/04/2022, 10:41 AMexecute_codegen
function is not get called, although prepare
is called and isgentarget
returns True
. How can I debug this thing?modern-plastic-65037
01/04/2022, 10:46 AM