happy-kitchen-89482
06/15/2020, 6:50 PM./pants binary path/to/main.py
we know what you mean even if there is no `python_binary`target).
See https://bit.ly/3d3wHq1 for more detail.
How valuable would you find such a feature on a scale of 1 (not at all valuable) to 5 (extremely valuable)?witty-crayon-22786
06/15/2020, 7:04 PMimport
semantics of the language as closely as possible: so if you import something, it’s a dependency.witty-crayon-22786
06/15/2020, 7:05 PMwitty-crayon-22786
06/15/2020, 7:06 PMastonishing-jelly-60479
06/15/2020, 9:17 PMwitty-crayon-22786
06/15/2020, 9:18 PMastonishing-jelly-60479
06/15/2020, 9:19 PM./pants dependees
etc., pants would have to essentially parse every line of python in the repository, install every possible third party dependency, and generate all generated code? cacheable, sure, but...witty-crayon-22786
06/15/2020, 9:19 PMwitty-crayon-22786
06/15/2020, 9:20 PMwitty-crayon-22786
06/15/2020, 9:20 PMastonishing-jelly-60479
06/15/2020, 9:21 PMastonishing-jelly-60479
06/15/2020, 9:22 PMwitty-crayon-22786
06/15/2020, 9:22 PMevery package has to have its entrypoint specifiedwhat do you mean?
astonishing-jelly-60479
06/15/2020, 9:23 PMmodule_mapping
for every python requirement you bring inwitty-crayon-22786
06/15/2020, 9:27 PMwitty-crayon-22786
06/15/2020, 9:28 PMastonishing-jelly-60479
06/15/2020, 9:29 PMhappy-kitchen-89482
06/15/2020, 11:09 PMhappy-kitchen-89482
06/15/2020, 11:10 PMcrooked-gpu-88495
06/16/2020, 6:29 AMcrooked-gpu-88495
06/16/2020, 6:29 AMastonishing-jelly-60479
06/16/2020, 3:44 PMastonishing-jelly-60479
06/16/2020, 3:51 PMwitty-crayon-22786
06/16/2020, 4:24 PMas one more thing that’s changing with a v2 migration, it’s stressful.one thing that you should know is that this will absolutely be optional, and independent from pantsd. so very decoupled from a 2.0 upgrade
witty-crayon-22786
06/16/2020, 4:27 PMadditionally, inferring deps means the build graph can change without any actual source code or BUILD file changes (i.e. because of a pants upgrade).agreed. in this regard, it’s a lot like changing the version of a linter, or of mypy or pytest
witty-crayon-22786
06/16/2020, 4:33 PMwitty-crayon-22786
06/16/2020, 4:42 PMwitty-crayon-22786
06/16/2020, 4:46 PMYou say that in “most cases” you could infer. Would it be clear when it can’t? That’s my main worry as a user many exceptions to the rules@crooked-gpu-88495: this is a good point, and that’s probably where the majority of the usability lies. part of what would be so different about a change like this is that in some cases users might not learn about BUILD files for a while… they might become an “advanced topic”, where you only need a BUILD file if something is failing to import.
witty-crayon-22786
06/16/2020, 4:48 PMwitty-crayon-22786
06/16/2020, 4:48 PMcuddly-window-48195
06/16/2020, 5:39 PMwitty-crayon-22786
06/16/2020, 5:53 PM./pants dependencies
will continue to do thatcuddly-window-48195
06/16/2020, 5:58 PMdependees
, but not dependencies
.witty-crayon-22786
06/16/2020, 6:00 PMdependencies2
in older versions… it’s taken back the name dependencies
in more recent versions, iirc.cuddly-window-48195
06/16/2020, 6:02 PMdependencies
at all in my pants goals
output:
Use `./pants help $goal` to get help for a particular goal.
bash-completion: Generate a Bash shell script that teaches Bash how to autocomplete pants command lines.
binary: Create a runnable binary.
bootstrap: Bootstrap tools needed by subsequent build steps.
buildgen: Automatically generate BUILD files.
bundle: Create a deployable application bundle.
clean-all: Delete all build products, creating a clean workspace.
cloc: Print counts of lines of code.
compile: Compile source code.
deferred-sources: Map `remote_sources()` to files that produce the product `UnpackedArchives`.
dependees: List all targets that depend on any of the input targets.
filemap: Print a mapping from source file to the target that owns the source file.
filter: Filter the input targets based on various criteria.
fmt: Autoformat source code.
gen: Generate code.
go: Runs an arbitrary go command against zero or more go targets.
go-env: Runs an arbitrary command in a go workspace defined by zero or more go targets.
kill-pantsd: Terminate the pants daemon.
killserver: Kill the reporting server.
lint: Find formatting errors in source code.
login: Task to auth against some identity provider.
minimize: Print a minimal covering set of targets.
node-install: Installs a node_module target into the directory that the target is defined in.
options: Display meta-information about options.
path: Find a dependency path from one target to another.
paths: List all dependency paths from one target to another.
repl: Run a REPL.
resolve: Resolve external binary dependencies.
run: Invoke a binary.
server: Run the reporting server.
setup-py: Generate setup.py-based Python projects.
sort: Topologically sort the targets.
targets: List available target types.
unpack-wheels: Extract native code from `NativePythonWheel` targets for use by downstream C/C++ sources.
(v1.25.0)