fresh-cat-9082707/21/2021, 2:08 PM
directory along with
files containing tests.
happy-kitchen-8948207/21/2021, 8:44 PM
quaint-gold-4000007/22/2021, 9:31 AM
for all packages that specify package A as a path dependency so that their poetry.lock is updated. I learned about Pants in a comment on an issue about monorepos on the Poetry issue tracker. I was hoping Pants would be able to solve the problem above. Does it? It's not clear to me what "Poetry support" in Pants encompasses. From, early experiments with Pants 2.6 it doesn't seem that Pants considers the Poetry lock files. I'm hoping someone can shed some light on this here. Thanks! 🙏
quaint-gold-4000007/22/2021, 2:30 PM
proud-dentist-2284407/22/2021, 4:08 PM
target. If there are multiple source roots that each contain a
package, for example, maybe we could do something like
. Or even, add another arg to
so that anything in that target that imports something from
would use the
as the dependency. And any files that do not depend on
would not get a hard-coded dependency on it (as with
). Basically, an extra knob to tune dependency inference without requiring hard-coded dependencies.
user07/22/2021, 5:37 PM
user07/22/2021, 10:47 PM
user07/22/2021, 10:47 PM
user07/23/2021, 12:40 AM
user07/23/2021, 3:20 AM
curved-television-656807/23/2021, 11:58 AM
, does it not matter if it is a hyphen or underscore between system and arch? https://www.pantsbuild.org/v2.7/docs/reference-pex_binary#codeplatformscode The examples shown use both..
Platforms should be in the format defined by Pex (https://pex.readthedocs.io/en/latest/buildingpex.html#platform), i.e. PLATFORM-IMPL-PYVER-ABI (e.g. “linux_x86_64-cp-27-cp27mu”, “macosx_10.12_x86_64-cp-36-cp36m”):
PLATFORM: the host platform, e.g. “linux-x86_64”, “macosx-10.12-x86_64".
user07/23/2021, 12:37 PM
proud-dentist-2284407/23/2021, 4:43 PM
(and friends: https://www.pantsbuild.org/docs/reference-all-goals) For instance there are a bunch of scripts here: https://github.com/pantsbuild/pants/tree/main/build-support/bin And other projects will have their own set of ad-hoc tasks that need to be done (regen constraints, or build a venv for external tooling, or version bumping, or ...) With a
, these tasks get added as additional custom make targets. We could use pants plugins to add more goals, but a pants-plugin feels like overkill for some of these tasks that are not meant to ever pass through remote caching & execution. But I really want
to be the single point of entry for developer tasks. So, what if there was a lighter weight way to extend pants? Maybe an
pants-plugin (or call it a
plugin?) that allowed for running tasks written for http://www.pyinvoke.org/ ? Essentially, a way to have a collection of plain (or nearly plain) python scripts that pants can run locally? Maybe the plugin would be able to dynamically create
for all of the available scripts so that it's a bit more structured than
, but still extremely flexible.
user07/25/2021, 3:28 PM
quaint-gold-4000007/26/2021, 1:13 PM
... ResolveError: No owning targets could be found for the file `dir/package-a/tests/conftest.py`. Please check that there is a BUILD file in the parent directory dir/package-a/tests with a target whose `sources` field includes the file. See <https://www.pantsbuild.org/v2.6/docs/targets> for more information on target definitions.
user07/26/2021, 11:36 PM
Announcing Python Launcher for Unix v1.0.0! And thanks to Homebrew… https://twitter.com/i/web/status/1419800935639912458 Twitter
> brew install python-launcher > man py
quaint-gold-4000007/27/2021, 12:31 PM
fresh-cat-9082707/28/2021, 9:45 AM
goal mentions running an executable like this:
I am confused — if there is a file
$ ./pants run project/app.py
directory, one wouldn’t be able to run it with the command above.
clean-night-5258207/28/2021, 10:36 PM
user07/29/2021, 10:26 PM
powerful-florist-180707/29/2021, 11:53 PM
user07/30/2021, 1:38 AM
user07/30/2021, 1:45 AM
jolly-midnight-7275907/30/2021, 3:04 PM
for pytest runs. Is there a way to show skipped and failed by default? When I try
I only get failed. When I try
./pants test --output=failed a/tests/python:: -- -rs
I also get the "passed" output.
jolly-midnight-7275907/30/2021, 3:25 PM
work everywhere or is it just a
user07/30/2021, 11:23 PM
user08/02/2021, 10:17 PM