1Password / onepassword-sdk-python

https://developer.1password.com/docs/sdks/
MIT License
43 stars 5 forks source link

Publish SDK to PyPI #107

Open paulfioravanti opened 2 weeks ago

paulfioravanti commented 2 weeks ago

Current Behavior

I've built a plugin for Plover, an open source stenography engine, that integrates with the 1Password Python SDK: Plover 1Password.

Since PyPI does not allow you to use direct URL dependencies in your list of required dependencies, I currently need to get my users to manually install the SDK themselves, which is unfortunate as I'd rather have the application do it for them automatically.

Desired Behavior

I want to be able to list onepassword-sdk-python as a required dependency in my application configuration, rather than have a manual install step for my users.

Benefits & Value

Less burden on the end user to not have to worry about running pip commands themselves.

Additional information

No response

AndyTitu commented 2 weeks ago

Hey @paulfioravanti , thanks for the request! We have adding our SDK to PyPi on our roadmap.

Since PyPI does not allow you to use direct URL dependencies in your list of required dependencies, I currently need to get my users to manually install the SDK themselves, which is unfortunate as I'd rather have the application do it for them automatically.

However, you can also fix your issue by taking advantage of PEP's 440 direct refs that allow you to specify dependencies that can be downloaded elsewhere in the form of a source repository or archive (you might be able to use our tags for that)

paulfioravanti commented 2 weeks ago

Thanks for adding my request to your roadmap!

I tried adding different combinations of remote and local PEP440 direct refs to my setup.cfg file based on the guidance in the docs and scouring the internet, but was ultimately unsuccessful. So, I'm happy to just wait until the PyPI release happens :)