Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade compatibility for Python 3 and adding some API list methods + Travis CI with code coverage #2

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

bieli
Copy link

@bieli bieli commented May 12, 2018

No description provided.

@pjrobertson
Copy link
Collaborator

Can you squash the 10 travis support commits into 1, or use better commit descriptions?!

configobj>=5.0.2
#xmlrpc
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was young and dumb when I created this set of requirements. You can remove anything that's commented out and please specify versions here for safety's sake.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTOH, it looks like some of this stuff is needed for Python 2.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff :-) Opt. --system for me it's the best
I can developing/releasing/verifing independently from my webfaction's account, by my own deployment tool written in Python.

from configobj import ConfigObj
try:
from configobj import ConfigObj
except:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should only catch ImportError.

'''
#XXX: Validate db_type
"""
# TODO: Validate db_type
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert db_type in ["mysql", "postgres"], "Invalid db_type %s" % db_type

if https.lower() == 'true':
https = True
else:
https = False
subdomains = subdomains.split(',')
print subdomains
#XXX: Limitation of only one site_app
print(subdomains)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would move the print statements to logging, but it's a cli, so . . .

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, logger it's good idea :-)

@tclancy
Copy link
Owner

tclancy commented May 14, 2018

Few small things, but looks like a great improvement. Thanks!

@bieli bieli changed the title Upgrade compatibility for Python 3 and adding some API list methods Upgrade compatibility for Python 3 and adding some API list methods + Travis CI with code coverage May 14, 2018

__version__ = '1.0'
__version__ = '1.1'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bieli you should add yourself to __contributors__ as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants