happy-kitchen-89482
06/18/2022, 2:41 PMbright-book-6256
06/18/2022, 3:44 PMbright-book-6256
06/18/2022, 3:46 PMhappy-kitchen-89482
06/18/2022, 6:38 PMhappy-kitchen-89482
06/18/2022, 6:39 PMhappy-kitchen-89482
06/18/2022, 6:40 PMbright-book-6256
06/18/2022, 6:41 PMproud-dentist-22844
06/18/2022, 9:33 PMregex-lint
. That gave me a way to re-implement the current Makefile's (ugly) dependency linting while I wait for visibility
to be available. 😄wide-midnight-78598
06/19/2022, 2:27 AMswift_sources(name="mylib", sources=[...])
target, and my check
goal gets the addresses: helloswift/myfile1.swift:mylib
and helloswift/myfile2.swift:mylib
- is there a request that will allow me to get all the other files in that target from those addresses?
My current attempt feels yuckyish. Take all my addresses (from one or more swift_sources
targets), get a single address per unique target_name
, use `WrappedTarget`s and then using a tgt.get(SourceField)
- feels like there must be a request somewhere which will take in a set of addresses and return unique targets (I originally thought this would be handled by CoarsenedTarget
)proud-dentist-22844
06/19/2022, 7:05 AMpython_distribution
in the StackStorm repo... 😰
I've got the targets setup, a plugin to configure setup.py kwargs, and macros to reduce a bit more of the boilerplate. So far so good.
But, I'm struggling with dependencies
for the `python_distribution`s. In the old/manual setup.py (that I want to avoid because of so much copy paste, including copies of dist_utils
functions... ick), it just used packages=find_packages(exclude["setuptools", "tests"]),
to get the single package in that directory. Do people often have to add dependencies to all of the sub directories? I keep getting NoOwnerError: No python_distribution target found to own
<some file or other that changes every time>.
Is there a way to force pants to build incomplete wheels? I want to see what it has so far, but it seems I have to have all of the inter-dependent packages configured first.curved-television-6568
06/19/2022, 7:10 AMproud-dentist-22844
06/19/2022, 7:29 AMcurved-television-6568
06/19/2022, 7:46 AM“”"Find the exported target that owns the given target (and therefore exports it).
The owner of T (i.e., the exported target in whose artifact T’s code is published) is:
1. An exported target that depends on T (or is T itself).
2. Is T’s closest filesystem ancestor among those satisfying 1.
If there are multiple such exported targets at the same degree of ancestry, the ownership
is ambiguous and an error is raised. If there is no exported target that depends on T
and is its ancestor, then there is no owner and an error is raised.
“”"
curved-television-6568
06/19/2022, 7:48 AMcurved-television-6568
06/19/2022, 7:49 AMproud-dentist-22844
06/19/2022, 7:57 AMproud-dentist-22844
06/19/2022, 7:59 AMcurved-television-6568
06/19/2022, 7:59 AMdamp-ocean-50925
06/19/2022, 9:48 AMdependency inference
docs but im still not quite sure i understand how to work with it..
I am referring to 3rd party dependencies, how are they being managed? should i manage a requirements.txt
file manually? or perhaps should i manage the contents of BUILD files manually?
What im trying to solve is the dependencies hell in our monorepo, i have never worked with other build tools like pants before and i feel like im missing something in the dependencies fronthappy-kitchen-89482
06/19/2022, 4:17 PMhappy-kitchen-89482
06/19/2022, 4:17 PMproud-dentist-22844
06/20/2022, 3:56 AMhappy-kitchen-89482
06/20/2022, 9:01 AMhappy-kitchen-89482
06/20/2022, 9:02 AMglamorous-helicopter-68480
06/20/2022, 10:14 AMNo valid Python interpreter found. For `pants_version = "2.11.0"`, Pants requires Python 3.7, 3.8, or 3.9 to run. Please check that a valid interpreter is installed and on your $PATH.
When will Python 3.10 be supported?cool-printer-74432
06/20/2022, 5:06 PMbazel run :myapp
to run the target named myapp
in the current directory's BUILD
file. It doesn't seem like that's possible with pants? I've only been able to successfully refer to targets with a fully-qualified name.proud-dentist-22844
06/20/2022, 8:39 PMscripts
for a python_distribution
?
https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-scripts-keyword-argument
(scripts is not the same thing as entry_points as it can include bash scripts, or unimportable kebab-case python scripts)
edit: moved from #plugins because this wasn't a plugin-development-related questionbitter-ability-32190
06/20/2022, 9:09 PMfoo
but for registry B we want to use ibm-foo
bitter-ability-32190
06/20/2022, 9:10 PMbuild_args.ARG_NAME
hmmmmcurved-television-6568
06/20/2022, 9:24 PM