UpCloudLtd / upcloud-ansible

Dynamic inventory and modules for managing servers via UpCloud's API
50 stars 17 forks source link

Lower upcloud-api requirements to newest available (0.3.3). #4

Closed onnimonni closed 8 years ago

onnimonni commented 8 years ago

I got error while using upcloud: directive.

failed: [localhost] (item={ ... "msg": "upcloud-api required for this module (`pip install upcloud-api`)"}

Even though I had already installed upcloud-api through pip:

$ pip install upcloud-api
Requirement already satisfied (use --upgrade to upgrade): upcloud-api in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): responses==0.3.0 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): wheel==0.24.0 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): mock==1.0.1 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): pytest==2.6.4 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): six==1.9.0 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): requests==2.6.0 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): py==1.4.26 in /usr/local/lib/python2.7/site-packages (from upcloud-api)
Requirement already satisfied (use --upgrade to upgrade): future==0.14.3 in /usr/local/lib/python2.7/site-packages (from upcloud-api)

upcloud-python-api doesn't even have 0.3.4 version so I lowered the requirements to newest available.

I think this version requirement was just a typo.

elnygren commented 8 years ago

Thanks for your interest @onnimonni !

v.0.3.4 is available at it's devel branch .https://github.com/UpCloudLtd/upcloud-python-api/tree/0.3.4-devel

There are some code changes in 0.3.4 that affect the Ansible module's ssh_keys and user options so you might want to grab upcloud_api from that branch directly.

http://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-source

I'll prioritise releasing 0.3.4 to pypi.