14
0

Accepting request 969190 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/969190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dotenv?expand=0&rev=11
This commit is contained in:
2022-04-13 19:04:08 +00:00
committed by Git OBS Bridge
4 changed files with 19 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce19063fe78960e849e0ac103ef65e6f58158e3d3577022315a333cebbc1cd43
size 21708

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f25324ebe83467c58a089b30cda9775b3e4d4aa727e898dd2373142679807263
size 22356

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Apr 11 10:55:56 UTC 2022 - Markéta Machová <mmachova@suse.com>
- 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 <asn@cryptomilk.org>

View File

@@ -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