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

Add support for aliased configs #332

Merged
merged 1 commit into from May 5, 2020
Merged

Add support for aliased configs #332

merged 1 commit into from May 5, 2020

Conversation

rochacbruno
Copy link
Member

Now when creating a LazySettings instance one can use aliases

So instead of LazySettings("ENV_FOR_DYNACONF='FOO'") it can be:

LazySettings(ENV="FOO")

All _FOR_DYNACONF can now be aliased when passing to LazySettings.
@codecov
Copy link

codecov bot commented May 5, 2020

Codecov Report

Merging #332 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #332   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          957       957           
=========================================
  Hits           957       957           
Impacted Files Coverage Δ
dynaconf/contrib/flask_dynaconf.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2041fa8...528168a. Read the comment docs.

@rochacbruno rochacbruno merged commit 7bb19e0 into master May 5, 2020
@rochacbruno rochacbruno deleted the config_aliases branch May 5, 2020 04:13
rochacbruno added a commit that referenced this pull request Jun 22, 2020
Shortlog of commits since last release:

    Bernardo Gomes (2):
          Adding f string (#319)
          Added little information about how dev into this project. (#321)

    Bruno Rocha (18):
          Release version 3.0.0rc1
          Better exception handling on env_loader (#316)
          Add support for config aliases (#332)
          Add ENVLESS_MODE (#337)
          Fix #272 allow access of lowercase keys (#338)
          Fix #298 allow auto complete for editors and console (#339)
          Vendoring dependencies Fix #301 (#345)
          Clean tox installation for local testing (#346)
          Validator improvements on conditions (#353)
          Add note about quoting in env vars (#347)
          DEPRECATED global settings object.
          DEPRECATED global settings object. (#356)
          Lowecase read allowed by default (#357)
          Merge branch 'master' of github.com:rochacbruno/dynaconf
          envless by default - breaking change ⚠️ (#358)
          dotenv is no more loaded by default (#360)
          No more loading of `settings.*` by default (#361)
          NO more logger and debug messages (#362)

    Douglas Maciel d'Auriol Souza (1):
          Insert news validator conditions: (len_eq, len_ne, len_min, len_max, contd) (#328)

    Jeff Wayne (1):
          s/DYNACONF_ENV/ENV_FOR_DYNACONF (#335)

    Marcos Benevides (1):
          Fix minor typo in Flask extension docs (#318)

    Nicholas Nadeau, Ph.D., P.Eng (1):
          Fixed comma typo (#334)

    sfunkhouser (1):
          Add option to override default mount_point for vault (#349)
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.

None yet

1 participant