bland-father-19717
07/26/2022, 4:39 AMrefined-addition-53644
07/26/2022, 11:48 AMnice-florist-55958
07/26/2022, 2:19 PMhigh-energy-55500
07/26/2022, 2:42 PMpoetry add apache-airflow
since it leads to an unsatisfiable list of dependency constraints
2. because of this, airflow requires you provide a requirements.txt
with a list of 3rd-party libraries used in your DAGs. does pants have a way to generate a requirements file from a python_sources
target? am i thinking about this the wrong way?
3. haven’t started working on adding support for 1st-party code that’s imported into DAGs but I have a feeling this is not going to be very straightforward. any recommendations here?refined-addition-53644
07/26/2022, 2:50 PMhigh-energy-55500
07/26/2022, 2:51 PMrefined-addition-53644
07/26/2022, 2:52 PMhigh-energy-55500
07/26/2022, 2:52 PMhigh-energy-55500
07/26/2022, 2:53 PMnice-florist-55958
07/26/2022, 4:10 PMnice-florist-55958
07/26/2022, 4:19 PMbitter-ability-32190
07/26/2022, 5:53 PMfix
goal. However this brings up a follow-up issue, which goal should run these to validate code? lint
or check
.
Which then, IMO, turns into a question of, have we really nailed down the difference between lint
and check
w.r.t. which belongs where? I know at least for Python the delineation is fuzzy and even has a few maintainers unsure.
I'd like to open a discussion for really nailing down exactly how someone can determine which tool belongs where, and why (with a slight lens on languages where it isn't obvious, like Python or JS).
(Note this isnt a discussion about where fixers go, we can have that discussion after this one)busy-vase-39202
07/26/2022, 7:06 PMrhythmic-glass-66959
07/26/2022, 8:01 PMThe following files were not found in the Docker build context:
* src/python/some_package/some_file.py
high-yak-85899
07/26/2022, 8:45 PMpyudev
. Some details in the thread, but TLDR is there's different behavior between using this library in a test and source code.happy-family-315
07/27/2022, 8:30 AMable-television-91310
07/27/2022, 9:04 AMPermission Denied: Try running again with elevated permissions by going 'sudo env "PATH=$PATH" !!
or py-spy not being able to find the pid/python code at all..cool-yacht-37128
07/27/2022, 9:53 AMsrc
|_ python
|_ package
tests
|_python
|_package
- test_1.py
- test_2.py
- BUILDWith a import in test_2.py like
from test_1 import function
However the test fails this import unless I explicitly provide python_tests the source for tests/python/package
.
python_tests(name=“tests”, sources=[“tests/python/package”])Strangely while the above works, it gives a Unmatched glob warning ([WARN] Unmatched glob from tests/python/package:tests’s
sources
field: “tests/python/package/tests/python/package”nutritious-minister-3808
07/27/2022, 1:12 PMPANTS_PYTHON_REPOS_INDEXES
or the python-repos.index
setting. I assume that custom indexes have to be set during the pants generate-lockfiles
step to be used. If a custom index is set by PANTS_PYTHON_REPOS_INDEXES
env var or a pants.ci.toml
only during the pants package
step, it will not be used for retrieving the locked dependencies. Is that a correct understanding?little-easter-51691
07/27/2022, 1:21 PMarchive
which should contain multiple build artefacts. Those artefacts are of type pex_binary
and python_distribution
(whl file for python). These artefacts are built when they are included in the packages
field. Is there a way to control their location within the archive? For files, there is relocated_files
.rhythmic-glass-66959
07/27/2022, 1:36 PMpython_distribution
(wheel) into a Dockerfile built by pants?bitter-ability-32190
07/27/2022, 2:21 PM./pants run <docker_img>
?
I've tried `--docker-env-vars="MYVAR"`:
MYVAR=1 ./pants --docker-env-vars="MYVAR" run <docker>
, but the pex_binary
which is run is no dice. I suspect maybe docker.run_args
?ambitious-student-81104
07/27/2022, 2:47 PM--changed-since
, will the changed files dependEEs be checked, or only dependents will be checked?cold-soccer-63228
07/27/2022, 3:27 PMtest
goal, and want to be able to test it out manually via ./pants test [my_argument_here]
.
When I run ./pants version
, I see 2.14.0.dev3
.ambitious-student-81104
07/27/2022, 3:46 PM+-
signs mean in --filter-tag-regex="[[+-]regex1,regex2,..., [+-]regex1,regex2,..., ...]"
(link)?bitter-ability-32190
07/27/2022, 4:18 PMambitious-student-81104
07/27/2022, 4:26 PMpdb
with ./pants check
? there are some mypy errors that i’d like to drop into pdb to see. Things I’ve tried that didn’t work:
1. adding pdb = True
in mypy.ini
2. adding this in pants.toml
[mypy]
args = ["--pdb"]
rhythmic-glass-66959
07/27/2022, 5:24 PMsdist
doesn't contain any sources. Any ideas of what could be the problem? I have the python_sources
target defined...high-energy-55500
07/27/2022, 7:24 PMplugins.zip
file and then generating a requirements.txt
file semi-manually, but i can’t imagine this is the right way to do things
https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html#configuring-dag-plugins-airflow-exrefined-addition-53644
07/27/2022, 7:38 PM