adventurous-gigabyte-81428
10/17/2023, 12:11 AMdry-beach-38304
10/17/2023, 5:23 AM@pypi decorator is the file you mention (see here: https://github.com/Netflix/metaflow/blob/master/metaflow/plugins/pypi/pip.py). I believe these are old branches that were merged into master.dry-beach-38304
10/17/2023, 5:26 AMdry-beach-38304
10/17/2023, 5:29 AMadventurous-gigabyte-81428
10/17/2023, 6:37 AMdry-beach-38304
10/17/2023, 6:43 AMadventurous-gigabyte-81428
10/17/2023, 6:47 AMdry-beach-38304
10/17/2023, 6:48 AMbillowy-receptionist-31718
10/17/2023, 7:43 AMbillowy-receptionist-31718
10/17/2023, 7:59 AMadventurous-gigabyte-81428
10/17/2023, 8:00 AMbillowy-receptionist-31718
10/17/2023, 8:01 AMadventurous-gigabyte-81428
10/17/2023, 8:06 AMdry-beach-38304
10/17/2023, 8:08 AMbillowy-receptionist-31718
10/17/2023, 8:12 AMadventurous-gigabyte-81428
10/17/2023, 8:13 AMdry-beach-38304
10/17/2023, 8:18 AMadventurous-gigabyte-81428
10/18/2023, 5:46 AM@pypi_base(python="3.8.0",
packages={"boto3": "1.25.1",
"torch": "1.11.0",
"YOUR_PRIVATE_PACKAGE": "1.0.0"},
extra_indices=[f"<https://aws>:{AWS_CA_TOKEN}@XXXX.d.codeartifact.YYYY.amazonaws.com/pypi/ZZZS/simple"])dry-beach-38304
10/18/2023, 5:49 AMadventurous-gigabyte-81428
10/18/2023, 5:49 AMdry-beach-38304
10/18/2023, 5:50 AMwooden-dusk-90720
10/18/2023, 5:54 AMadventurous-gigabyte-81428
10/18/2023, 5:54 AMadventurous-gigabyte-81428
10/18/2023, 5:56 AMdry-beach-38304
10/18/2023, 5:58 AMpip wasn’t wrong per say … nothing better existed officially 🙂.adventurous-gigabyte-81428
10/18/2023, 5:59 AMadventurous-gigabyte-81428
10/18/2023, 6:00 AMdry-beach-38304
10/18/2023, 6:02 AMadventurous-gigabyte-81428
10/18/2023, 6:05 AMbillowy-receptionist-31718
10/18/2023, 7:14 AMaws codeartifact get-authorization-token before you run your flows?
@dry-beach-38304 are the metaflow pypi/conda decorators designed to always read from the pip.conf if present? Hence it will maybe be cleaner to have the indices etc. in there, as you also suggests. I guess I am just trying to abstract as much hassle away from our datascientists as possibledry-beach-38304
10/18/2023, 7:35 AMextra_indices as shown above
◦ have them in the pip.conf
◦ have it specified in METAFLOW_CONDA_DEFAULT_PYPI_SOURCE (specifying it here effectively replaces the default index, for example pypi). You can set this directly in your ~/.metaflowconfig/ json config just like all the other metaflow configuration values you may have.adventurous-gigabyte-81428
10/18/2023, 8:01 AMbillowy-receptionist-31718
10/18/2023, 10:55 AM--environment=conda as opposed to before where i were running with --environment=pypi also i am getting following error:
(metaflow-dummy-py3.11) ➜ metaflow-dummy git:(main) ✗ python pypi-decorator-flow.py --environment=conda run
Metaflow 2.10.2+netflix-ext(1.0.5) executing PandasFlow for user:jesper.rix
Validating your flow...
The graph looks good!
Running pylint...
Pylint not found, so extra checks are disabled.
Bootstrapping Conda environment... (this could take a few minutes)
Incompatible environment:
No mamba binary foundbillowy-receptionist-31718
10/18/2023, 10:56 AMdry-beach-38304
10/18/2023, 3:54 PMbillowy-receptionist-31718
10/19/2023, 7:59 AM@pypi(python='3.11.3', packages={'pandas': '2.1.0', 'topicalityfilter': '0.1.3'})
@card
@step
def start(self):
topicality filter are our internal package, which are located in our own AWS CodeArtifact repo.
For this example i just held the authorization token in my `pip.conf`file.
Thanks for your help and time guys, much appreciated 🙏dry-beach-38304
10/19/2023, 8:24 AM