-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pipnize drucker #6
Conversation
db_name = "test_"+config.DB_MYSQL_DBNAME if config.TEST_MODE else config.DB_MYSQL_DBNAME | ||
user = config.DB_MYSQL_USER | ||
password = config.DB_MYSQL_PASSWORD | ||
url = f'mysql+pymysql://{user}:{password}@{host}:{port}/{db_name}?charset=utf8' |
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.
This function uses f-string twice and only Python 3.6+ support f-string. Should we change these two lines to support python 3.4 and 3.5?
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.
Sounds good!
Before committing the change mentioned above, please confirm all unittests pass correctly.
- python: 3.6 | ||
env: TOXENV=py36 | ||
- python: 3.6 | ||
env: TOXENV=coverage,codecov |
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.
Should we add python 3.7? I think 3.7 is the latest major release and the code looks fine with the latest version.
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.
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.
Yes, there was such a problem. But it only happens with older versions of kubernetes-client
, and seems to work well with the current version.
- https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md#v700a1
- feat: support for 3.7 (workaround) kubernetes-client/gen#67
Anyway, this repository does not use kubernetes-client
, so it seems that there is no problem even adding 3.7 to support targets.
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.
Thank you @sugyan san!
OK, let’s support Python 3.7.
What is blocking this PR? |
@yoquankara There is no blocking stuffs. |
I see, thank you. LGTM |
What is this PR for?
To gain the usability, we have developed pipnized Drucker.
Note
This PR includes
What type of PR is it?
Feature
What is the issue?
#2
How should this be tested?
Example