TheJumpCloud / jcapi-python

21 stars 20 forks source link

publish libraries to pypi #39

Open zaro0508 opened 4 years ago

zaro0508 commented 4 years ago

We are building a jumpcloud CLI on top of the jcapi-python libraries. Our app contains dependencies to your libraries in setup.py. The jcapi-python dependencies will install fine from a local checkout however it will fail when installing directly from pypi with error message ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI. The problem is that the jcapi-python libraries have not been deployed to pypi. As per pip issue https://github.com/pypa/pip/issues/6301 the only fix for this is to deploy your jcapi-python libraries to pypi. Would it be possible for you guys to deploy both versions (v1 and v2) of this library to pypi?

instaling from local checkout works fine:

git clone https://github.com/Sage-Bionetworks/jccli.git
cd jccli
pip install .

➜  pip freeze
certifi==2019.9.11
Click==7.0
jcapiv1==3.3.0
jcapiv2==3.3.0
jccli==0.0.5
python-dateutil==2.8.1
PyYAML==5.1.2
six==1.13.0
urllib3==1.25.6

however installing directly from pypi fails:

➜  pip install jccli
Collecting jccli
  Downloading https://files.pythonhosted.org/packages/62/a2/22100582d8c3299772ea11acdff21f04753f490bf2d2908214323958fa5d/jccli-0.0.5.tar.gz
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
jccli depends on jcapiv1@ git+https://github.com/TheJumpCloud/jcapi-python.git@v3.3.0#subdirectory=jcapiv1
zaro0508 commented 4 years ago

hello jumpcloud, do you plan to do any work on this request?

QuingKhaos commented 3 years ago

Oh yes, even when autogenerated, if you create SDKs for your APIs, please publish them to the usual package managers.

cvvs commented 3 years ago

Why aren't these published to pypi? It's been well over a year, and I shouldn't have to install git in a bot container just to pull a dependency.