-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Strategies #20
Strategies #20
Conversation
I really like the refactoring but I'd like to preserve the current behavior to avoid problems with backward compatibility. The proposed behavior must be implemented as an optional configuration that must be explicitly defined. |
I've added some changes:
Still need to go through the bullet points above, any comments are welcome. |
Cool! I'll take a deeper look tonight (in Brazil) so we talk a little bit about the PR. |
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 getting really good!
Now, we'll have to "fight" against Travis to make it works :/ |
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.
Amazing job! Thanks for these contributions.
Let's remove support for Python 2 at CI. Keep support only for py36 and py35 for linux+mac. I want to keep support for pypy3, but it's optional. I can help you with that task if you wish. |
On Tue, Jan 29, 2019 at 8:33 PM, Osvaldo Santana Neto ***@***.***> wrote:
Let's remove support for Python 2 at CI. Keep support only for py36
and py35 for linux+mac. I want to keep support for pypy3, but it's
optional.
I can help you with that task if you wish.
Sure, help would be great!
|
I'll have some time tomorrow ~8pm BRST. When we fix the build I merge and prepare a major release. |
Here is my attempt at improving prettyconf's strategy for configuration discovery #18.
It introduces breaking changes in the API so a version bump will be needed if this gets out.
Probably the most controversial change is the
Commandline
loader. I had to do some black magic to check if a given config was set by the user or not by cloning the parser. The problem with cli parsers is that they also support setting defaults, which would interrupt the dicovery chain.The other important change is that loaders will not glob (
*.ini
,*.cfg
) any more. The user has to explicitly useEnvFile(filename='/path/to/.env')
orIniFile(filename='/path/to/settings.ini)
. This is because a project might include many files likeprod.env
,staging.env
or even things that are unrelated, like apytest.ini
file.This PR is still WIP. I wanted you to take an early look on it.
CHANGES.txt