I am trying to publish a python library in an artifacts repository. I am using the generated code from the artifacts repo itself, when trying to add a new conda artifact:
export TOKEN=
export PACKAGE=package-1.0.0-py36_0.tar.bz2 # replace with your package’s local path
export PLATFORM=“linux-64” # replace with the package platform (e.g. noarch, linux-64, osx-64)
curl -H “Authorization: Bearer $TOKEN” -H “Content-Type: application/octet-stream” --data-binary “@$PACKAGE” -XPUT “https:///artifacts/api/repositories/ri.artifacts.main.repository.28c7283f-4467-419f-bd31-7964ed97f7de/contents/release/conda/$PLATFORM/$PACKAGE”
Unfortunately, the response is as mentioned in the title of this post and does not provide any additional information. It seems like the endpoint and documentation dont match.
I am capable to push pypi artifacts via twine to the same repository. However, if I use pypi libraries in my python functions code repository, my pytest environment breaks.
Advice is really appreciated here, since I can’t go any of the two ways right now…