forked from pool/python-python-dotenv
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user