Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using PyPi official repo with pygradle

I'm trying to build and install my python library using new PyGradle plugin from LinkedIn. I immediately run into problems because the the demo repo is very limited

repositories {
    pyGradlePyPi()
}

I would like to be able to pull dependencies from the official pypi.python.org repo but to my surprise there's no mention of it in the documentation I was able to dig out from the PyGradle's GitHub site. Is it possible at all and if not what can I do?

P.S. Based on the pygradle documentation there is no direct way of using PyPi repo since it utilizes Ivy to do the actual dependence management. It would be great to get an "official" tutorial on how to setup local and Artifactory-based repos and import needed packages

like image 666
Bostone Avatar asked Oct 30 '22 12:10

Bostone


1 Answers

The short answer - according to documentation direct import from PyPi is not supported. There's a pivy-importer utility that is capable of pulling packages from PiPy into the local Ivy repo but it is also pulling some default packages and needs to be extended (manually) to pull packages that you may need. This is as I understand a work in progress and may be improved as project matures

like image 140
Bostone Avatar answered Nov 15 '22 05:11

Bostone