lively-gpu-26436
12/22/2022, 9:49 AM<git+ssh://git@github.com/rollbar/sqlalchemy.git@bc5c5b21f956a953a8b68523b3092487e7e63bea#egg=sqlalchemy>
and Pants is saying it’s not able to infer the dependency owner for sqlalchemy
. Do you know how could I fix? 🙏lively-gpu-26436
12/22/2022, 9:49 AM./pants dependencies my-project/model/orm/project.py
10:41:59.97 [WARN] Pants cannot infer owners for the following imports in the target my-project/model/orm/project.py:
* sqlalchemy (line: 7)
* sqlalchemy.Column (line: 10)
* sqlalchemy.ForeignKey (line: 10)
* sqlalchemy.Integer (line: 10)
* sqlalchemy.exc.IntegrityError (line: 11)
* sqlalchemy.ext.hybrid.hybrid_property (line: 12)
* sqlalchemy.orm.relationship (line: 13)
* sqlalchemy_json.NestedMutableJson (line: 14)
lively-gpu-26436
12/22/2022, 10:05 AMtarget@
verbatim 🙈 instead of using the name of my targetlively-gpu-26436
12/22/2022, 10:39 AMpycryptodomex==3.6.6
which installs the package Cryptodome
but Pants cannot infer it. I’m trying to tell Pants to not infer it:
# in my project.py file
import Cryptodome.Random # pants: no-infer-dep
and then adding the dependency explicitly to my root BUILD
# top BUILD file
python_sources(
requirements=["//myproject:reqs#pycryptodomex"]
)
python_requirements(name="reqs")
But seems to have no effect (the dep is ignored but I can’t see it in the output of ./pants dependencies myproject/model/orm/project.py
refined-addition-53644
12/22/2022, 10:47 AM--transitive
i.e. ./pants dependencies --transitive
refined-addition-53644
12/22/2022, 10:48 AMlively-gpu-26436
12/22/2022, 10:48 AMlively-gpu-26436
12/22/2022, 4:25 PM