vmware / vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
748 stars 311 forks source link

Cannot use the repo with poetry unless it's pulled locally. #255

Closed tyao117 closed 3 years ago

tyao117 commented 3 years ago

I just have a feature request or enhancement. Can the setup.py be changed that it does not need to depend on a local file to be installed? (example of the problem): https://github.com/vmware/vsphere-automation-sdk-python/blob/7c4a420da3a8fabe47ec80098a4ea6a1991272da/setup.py#L18 I can't use it with poetry unless I pull the repo locally, and I'm trying to explore the possibility of putting this repo as a dependency without needing to copy it using poetry. Here a link to the issue I was having: https://github.com/python-poetry/poetry/issues/3481 specifically: https://github.com/python-poetry/poetry/issues/3481#issuecomment-743800678

anusha94 commented 3 years ago

Hi @tyao117

The .whl files are present in lib/, so I don't see another way to install it - unless the repo is pushed to PyPI, and that is a work in progress.

tyao117 commented 3 years ago

hey @anusha94; thanks for responding, when is this going to be pushed to PyPI, and is there a way to reference the .whl using the github url rather than a local path?

anusha94 commented 3 years ago

@tyao117

Are you looking for something like this? https://github.com/vmware/vsphere-automation-sdk-python/pull/258/files

anusha94 commented 3 years ago

Closing this issue due to inactivity, feel free to reopen.

dcedcha commented 2 years ago

I'm also facing this issue when using poetry (instead of pip) to manage requirements in my project

tyao117 commented 2 years ago

@dcedcha, until the lib packages are uploaded to pypi, poetry wouldn't be able to support this repo. An alternative is you manually clone the repo into local and have the .toml file of peotry refer to it as a local directory. Problem is, now you have to update the repo manually for any changes.