Hello community,
here is the log from the commit of package python-python-dotenv for
openSUSE:Factory checked in at 2020-08-05 20:29:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-dotenv (Old)
and /work/SRC/openSUSE:Factory/.python-python-dotenv.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-dotenv"
Wed Aug 5 20:29:59 2020 rev:8 rq:824524 version:0.14.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-dotenv/python-python-dotenv.changes
2020-07-01 14:27:00.826826890 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-dotenv.new.3592/python-python-dotenv.changes
2020-08-05 20:30:07.883121547 +0200
@@ -1,0 +2,9 @@
+Wed Aug 5 13:46:03 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 0.14.0
+ * Privilege definition in file over the environment in variable expansion
(#256 by
+ [@elbehery95]).
+ * Improve error message for when file isn't found (#245 by [@snobu]).
+ * Use HTTPS URL in package meta data (#251 by [@ekohl]).
+
+-------------------------------------------------------------------
Old:
----
python-dotenv-0.13.0.tar.gz
New:
----
python-dotenv-0.14.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-dotenv.spec ++++++
--- /var/tmp/diff_new_pack.QpS74A/_old 2020-08-05 20:30:10.915123129 +0200
+++ /var/tmp/diff_new_pack.QpS74A/_new 2020-08-05 20:30:10.923123133 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-dotenv
-Version: 0.13.0
+Version: 0.14.0
Release: 0
Summary: Python library for .env support
License: BSD-3-Clause
++++++ python-dotenv-0.13.0.tar.gz -> python-dotenv-0.14.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/CHANGELOG.md
new/python-dotenv-0.14.0/CHANGELOG.md
--- old/python-dotenv-0.13.0/CHANGELOG.md 2020-04-16 23:36:06.000000000
+0200
+++ new/python-dotenv-0.14.0/CHANGELOG.md 2020-07-03 11:17:51.000000000
+0200
@@ -9,6 +9,18 @@
*No unreleased change at this time.*
+## [0.14.0] - 2020-07-03
+
+### Changed
+
+- Privilege definition in file over the environment in variable expansion
(#256 by
+ [@elbehery95]).
+
+### Fixed
+
+- Improve error message for when file isn't found (#245 by [@snobu]).
+- Use HTTPS URL in package meta data (#251 by [@ekohl]).
+
## [0.13.0] - 2020-04-16
### Added
@@ -189,16 +201,20 @@
[@bbc2]: https://github.com/bbc2
[@cjauvin]: https://github.com/cjauvin
[@earlbread]: https://github.com/earlbread
+[@ekohl]: https://github.com/ekohl
+[@elbehery95]: https://github.com/elbehery95
[@gergelyk]: https://github.com/gergelyk
[@greyli]: https://github.com/greyli
[@qnighy]: https://github.com/qnighy
+[@snobu]: https://github.com/snobu
[@techalchemy]: https://github.com/techalchemy
[@theskumar]: https://github.com/theskumar
[@ulyssessouza]: https://github.com/ulyssessouza
[@venthur]: https://github.com/venthur
[@yannham]: https://github.com/yannham
-[Unreleased]: https://github.com/theskumar/python-dotenv/compare/v0.13.0...HEAD
+[Unreleased]: https://github.com/theskumar/python-dotenv/compare/v0.14.0...HEAD
+[0.14.0]: https://github.com/theskumar/python-dotenv/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/theskumar/python-dotenv/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/theskumar/python-dotenv/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/theskumar/python-dotenv/compare/v0.10.5...v0.11.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/README.md
new/python-dotenv-0.14.0/README.md
--- old/python-dotenv-0.13.0/README.md 2020-04-16 23:36:06.000000000 +0200
+++ new/python-dotenv-0.14.0/README.md 2020-07-03 11:17:51.000000000 +0200
@@ -84,7 +84,7 @@
load_dotenv(verbose=True)
# OR, explicitly providing path to '.env'
-from pathlib import Path # python3 only
+from pathlib import Path # Python 3.6+ only
env_path = Path('.') / '.env'
load_dotenv(dotenv_path=env_path)
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/setup.cfg
new/python-dotenv-0.14.0/setup.cfg
--- old/python-dotenv-0.13.0/setup.cfg 2020-04-16 23:36:06.000000000 +0200
+++ new/python-dotenv-0.14.0/setup.cfg 2020-07-03 11:17:51.000000000 +0200
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.13.0
+current_version = 0.14.0
commit = True
tag = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/setup.py
new/python-dotenv-0.14.0/setup.py
--- old/python-dotenv-0.13.0/setup.py 2020-04-16 23:36:06.000000000 +0200
+++ new/python-dotenv-0.14.0/setup.py 2020-07-03 11:17:51.000000000 +0200
@@ -25,7 +25,7 @@
version=meta['__version__'],
author="Saurabh Kumar",
author_email="[email protected]",
- url="http://github.com/theskumar/python-dotenv",
+ url="https://github.com/theskumar/python-dotenv",
keywords=['environment variables', 'deployments', 'settings', 'env',
'dotenv',
'configurations', 'python'],
packages=['dotenv'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/src/dotenv/main.py
new/python-dotenv-0.14.0/src/dotenv/main.py
--- old/python-dotenv-0.13.0/src/dotenv/main.py 2020-04-16 23:36:06.000000000
+0200
+++ new/python-dotenv-0.14.0/src/dotenv/main.py 2020-07-03 11:17:51.000000000
+0200
@@ -74,7 +74,7 @@
yield stream
else:
if self.verbose:
- logger.warning("File doesn't exist %s", self.dotenv_path)
+ logger.info("Python-dotenv could not find configuration file
%s.", self.dotenv_path or '.env')
yield StringIO('')
def dict(self):
@@ -214,13 +214,8 @@
# type: (Dict[Text, Optional[Text]]) -> Dict[Text, Optional[Text]]
def _replacement(name, default):
# type: (Text, Optional[Text]) -> Text
- """
- get appropriate value for a variable name.
- first search in environ, if not found,
- then look into the dotenv variables
- """
default = default if default is not None else ""
- ret = os.getenv(name, new_values.get(name, default))
+ ret = new_values.get(name, os.getenv(name, default))
return ret # type: ignore
def _re_sub_callback(match):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/src/dotenv/version.py
new/python-dotenv-0.14.0/src/dotenv/version.py
--- old/python-dotenv-0.13.0/src/dotenv/version.py 2020-04-16
23:36:06.000000000 +0200
+++ new/python-dotenv-0.14.0/src/dotenv/version.py 2020-07-03
11:17:51.000000000 +0200
@@ -1 +1 @@
-__version__ = "0.13.0"
+__version__ = "0.14.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-dotenv-0.13.0/tests/test_main.py
new/python-dotenv-0.14.0/tests/test_main.py
--- old/python-dotenv-0.13.0/tests/test_main.py 2020-04-16 23:36:06.000000000
+0200
+++ new/python-dotenv-0.14.0/tests/test_main.py 2020-07-03 11:17:51.000000000
+0200
@@ -74,14 +74,19 @@
nx_file = str(tmp_path / "nx")
logger = logging.getLogger("dotenv.main")
- with mock.patch.object(logger, "warning") as mock_warning:
+ with mock.patch.object(logger, "info") as mock_info, \
+ mock.patch.object(logger, "warning") as mock_warning:
result = dotenv.get_key(nx_file, "foo")
assert result is None
+ mock_info.assert_has_calls(
+ calls=[
+ mock.call("Python-dotenv could not find configuration file %s.",
nx_file)
+ ],
+ )
mock_warning.assert_has_calls(
calls=[
- mock.call("File doesn't exist %s", nx_file),
- mock.call("Key %s not found in %s.", "foo", nx_file),
+ mock.call("Key %s not found in %s.", "foo", nx_file)
],
)
@@ -228,10 +233,10 @@
def test_load_dotenv_no_file_verbose():
logger = logging.getLogger("dotenv.main")
- with mock.patch.object(logger, "warning") as mock_warning:
+ with mock.patch.object(logger, "info") as mock_info:
dotenv.load_dotenv('.does_not_exist', verbose=True)
- mock_warning.assert_called_once_with("File doesn't exist %s",
".does_not_exist")
+ mock_info.assert_called_once_with("Python-dotenv could not find
configuration file %s.", ".does_not_exist")
@mock.patch.dict(os.environ, {"a": "c"}, clear=True)
@@ -329,6 +334,9 @@
# Reused
({"b": "c"}, "a=${b}${b}", True, {"a": "cc"}),
+
+ # Re-defined and used in file
+ ({"b": "c"}, "b=d\na=${b}", True, {"a": "d", "b": "d"}),
],
)
def test_dotenv_values_stream(env, string, interpolate, expected):