From c3781e609a6273680351a62afe101da571f29630eda7cf827abe4032efdf50e7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 11 Apr 2022 12:14:30 +0000 Subject: [PATCH] Accepting request 969176 from home:mcalabkova:branches:devel:languages:python - Update to 0.20.0 * The default value of the encoding parameter for load_dotenv and dotenv_values is now "utf-8" instead of None * Add --override/--no-override option to dotenv run * Raise ValueError if quote_mode isn't one of always, auto or never in set_key * Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. * The stream argument of load_dotenv and dotenv_values can now be a text stream (IO[str]), which includes values like io.StringIO("foo") and open("file.env", "r") * Add support for Python 3.10. * Add encoding (Optional[str]) parameter to get_key, set_key and unset_key. - Do not require mock OBS-URL: https://build.opensuse.org/request/show/969176 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=23 --- python-dotenv-0.15.0.tar.gz | 3 --- python-dotenv-0.20.0.tar.gz | 3 +++ python-python-dotenv.changes | 14 ++++++++++++++ python-python-dotenv.spec | 4 ++-- 4 files changed, 19 insertions(+), 5 deletions(-) delete mode 100644 python-dotenv-0.15.0.tar.gz create mode 100644 python-dotenv-0.20.0.tar.gz diff --git a/python-dotenv-0.15.0.tar.gz b/python-dotenv-0.15.0.tar.gz deleted file mode 100644 index e6a482e..0000000 --- a/python-dotenv-0.15.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce19063fe78960e849e0ac103ef65e6f58158e3d3577022315a333cebbc1cd43 -size 21708 diff --git a/python-dotenv-0.20.0.tar.gz b/python-dotenv-0.20.0.tar.gz new file mode 100644 index 0000000..8ce0706 --- /dev/null +++ b/python-dotenv-0.20.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f25324ebe83467c58a089b30cda9775b3e4d4aa727e898dd2373142679807263 +size 22356 diff --git a/python-python-dotenv.changes b/python-python-dotenv.changes index c54f5db..03e6ffb 100644 --- a/python-python-dotenv.changes +++ b/python-python-dotenv.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Apr 11 10:55:56 UTC 2022 - Markéta Machová + +- Update to 0.20.0 + * The default value of the encoding parameter for load_dotenv and dotenv_values is now "utf-8" instead of None + * Add --override/--no-override option to dotenv run + * Raise ValueError if quote_mode isn't one of always, auto or never in set_key + * Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. + * The stream argument of load_dotenv and dotenv_values can now be a text stream (IO[str]), + which includes values like io.StringIO("foo") and open("file.env", "r") + * Add support for Python 3.10. + * Add encoding (Optional[str]) parameter to get_key, set_key and unset_key. +- Do not require mock + ------------------------------------------------------------------- Mon Feb 21 09:09:13 UTC 2022 - Andreas Schneider diff --git a/python-python-dotenv.spec b/python-python-dotenv.spec index 46eaa4b..ccda732 100644 --- a/python-python-dotenv.spec +++ b/python-python-dotenv.spec @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-python-dotenv -Version: 0.15.0 +Version: 0.20.0 Release: 0 Summary: Python library for .env support License: BSD-3-Clause URL: https://github.com/theskumar/python-dotenv Source: https://github.com/theskumar/python-dotenv/archive/v%{version}.tar.gz#/python-dotenv-%{version}.tar.gz BuildRequires: %{python_module click >= 5.0} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest >= 3.0.5} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sh >= 1.09} @@ -47,6 +46,7 @@ Add .env support to your Fjango/Flask apps in development and deployments. %prep %setup -q -n python-dotenv-%{version} +sed -i 's/import mock/import unittest.mock as mock/' tests/test_ipython.py tests/test_main.py %build export LANG=C.UTF-8