-
Notifications
You must be signed in to change notification settings - Fork 7
Add support for amqp+ssl URL's and configured username and password #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maruno Could you extend the README as well with the (new) configuration possibilities?
qpid_bow/config.py
Outdated
""" | ||
if urls: | ||
return [url.strip() for url in urls.split(',')] | ||
splited_url = urlsplit(url.strip()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicking: split_url
VERSION
Outdated
@@ -1 +1 @@ | |||
1.0.2 | |||
1.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is only a patch version bump, since we are adding functionality in a backwards compatible manner, I might lean towards 1.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty minor, but sure.
docs/source/conf.py
Outdated
@@ -15,7 +15,7 @@ | |||
author = 'Bynder B.V.' | |||
|
|||
version = '1.0' # The short X.Y version. | |||
release = '1.0.2' # The full version, including alpha/beta/rc tags. | |||
release = '1.0.3' # The full version, including alpha/beta/rc tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here about the versioning
qpid_bow/config.py
Outdated
'username' in config and 'password' in config): | ||
user_pass = f"{config['username']}:{config['password']}@" | ||
new_netloc = user_pass + splited_url.netloc | ||
splited_url = splited_url._replace(netloc=new_netloc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why _replace
? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a form of namedtuple, eventhough it's mangled with the _ this is officially documented as the way to create a new one with changes: https://docs.python.org/3/library/collections.html#collections.somenamedtuple._replace
Tests failed in Travis! |
Pull Request Test Coverage Report for Build 28
💛 - Coveralls |
No description provided.