bright-monitor-59146
07/31/2023, 11:57 PMpoetry
to set up the directory structure/added dependencies for. each lambda has a dependency on the same 3p library, ie geohash_hilbert
- i’m getting some warnings if i run ./pants dependencies ::
or ./pants package ::
revolving around this:
23:36:47.01 [WARN] The target lambdas/LAMBDA-A/src/LAMBDA_A/handler.py:handler.py imports `geohash_hilbert`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['lambdas/LAMBDA-A#geohash-hilbert', 'lambdas/LAMBDA-B#geohash-hilbert'].
Is the accepted solution for this to just run separate lockfiles, one per Lambda? I’m currently using a single lockfile.dry-architect-80370
08/01/2023, 1:39 PMbright-monitor-59146
08/01/2023, 2:33 PMbright-monitor-59146
08/01/2023, 2:34 PMroot@archdev:~/pants-testing# tree .
.
├── README.md
├── bandit.yml
├── lambdas
│ ├── create-base-listing
│ │ ├── BUILD
│ │ ├── README.md
│ │ ├── poetry.lock
│ │ ├── pyproject.toml
│ │ ├── src
│ │ │ └── create_base_listing
│ │ │ ├── BUILD
│ │ │ ├── __init__.py
│ │ │ └── handler.py
│ │ └── tests
│ │ ├── BUILD
│ │ ├── __init__.py
│ │ ├── events
│ │ │ └── sampleEvent_01.json
│ │ └── test_handler.py
│ ├── create-listing-from-menu-item
│ │ ├── BUILD
│ │ ├── README.md
│ │ ├── poetry.lock
│ │ ├── pyproject.toml
│ │ ├── src
│ │ │ └── create_listing_from_menu_item
│ │ │ ├── BUILD
│ │ │ ├── __init__.py
│ │ │ └── handler.py
│ │ └── tests
│ │ ├── BUILD
│ │ ├── __init__.py
│ │ ├── events
│ │ │ └── sampleEvent_01.json
│ │ └── test_handler.py
│ └── qr-generator
│ ├── BUILD
│ ├── README.md
│ ├── poetry.lock
│ ├── pyproject.toml
│ ├── src
│ │ └── qr_generator
│ │ ├── BUILD
│ │ ├── __init__.py
│ │ └── handler.py
│ └── tests
│ ├── BUILD
│ ├── __init__.py
│ ├── events
│ │ └── sampleEvent_01.json
│ └── test_handler.py
├── libs
│ └── nom
│ ├── BUILD
│ ├── README.md
│ ├── poetry.lock
│ ├── pyproject.toml
│ ├── src
│ │ └── nom
│ │ ├── BUILD
│ │ ├── __init__.py
│ │ └── dummy.py
│ └── tests
│ ├── BUILD
│ ├── __init__.py
│ └── test_nom.py
├── mypy.ini
├── pants
├── pants.ci.toml
├── pants.toml
└── python-default.lock
lemon-yak-80782
08/01/2023, 2:50 PMbright-monitor-59146
08/01/2023, 4:23 PMpyproject.toml
file for everything?dry-architect-80370
08/01/2023, 4:24 PMso in other words i really just need a singleyesfile for everything?pyproject.toml
bright-monitor-59146
08/01/2023, 4:24 PMbright-monitor-59146
08/01/2023, 11:57 PMbright-monitor-59146
08/01/2023, 11:58 PMbright-monitor-59146
08/02/2023, 12:26 AM!
in the dependencies
field)lemon-yak-80782
08/02/2023, 7:37 AM!
, at least it did not work for me. Even if boto3 is included it is not on the newest version. I think aws even says that you should include your own version.bright-monitor-59146
08/02/2023, 12:52 PMbright-monitor-59146
08/04/2023, 11:25 PMBUILD
file for this to export some kind of distribution? with poetry_requirements
it just kind of workedbright-monitor-59146
08/05/2023, 12:20 AM