great-river-11779
07/03/2023, 8:31 PMpython_source(
name="web",
source="web.py",
dependencies=["scripts:migrate"]
)
great-river-11779
07/03/2023, 8:32 PMrun-db
which i'd do with my run-web
great-river-11779
07/03/2023, 8:43 PMpants run
can only be passed one target. Is there anyway to say run this then that?
Similar to something like make build run
great-river-11779
07/03/2023, 8:44 PMgreat-river-11779
07/03/2023, 9:20 PM&&
similar to node related things, alsod oesn't workgreat-river-11779
07/03/2023, 9:21 PMpants run-migrate && pants run-gpm-web
This is basically what i want to achieve but without having to type it out wtice and instead have an alias like pants gpm-web
which calls that effectivelybroad-processor-92400
07/04/2023, 12:44 AMweb.py
import a function (e.g. main
) from migrate.py
, or have a script that wraps both?
Effectively using Python as the command runner, rather than make/shell/pants: e.g. do_it_all.py
:
from . import web, migrate
migrate.main()
web.main()
Not great, though.
An another alternative in the short term would be continuing to use an external orchestrator, like make or npm.broad-processor-92400
07/04/2023, 1:13 AMgreat-river-11779
07/04/2023, 1:13 AMgreat-river-11779
07/04/2023, 1:13 AMgreat-river-11779
07/04/2023, 1:13 AM