Sync from SUSE:SLFO:Main python-python-dotenv revision 4a180ce8f384523d92df716c539899a2
This commit is contained in:
commit
33b94bc3da
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
python-dotenv-1.0.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
python-dotenv-1.0.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
136
python-python-dotenv.changes
Normal file
136
python-python-dotenv.changes
Normal file
@ -0,0 +1,136 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 7 09:14:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.0:
|
||||
* Drop support for python 3.7, add python 3.12-dev
|
||||
* Handle situations where the cwd does not exist.
|
||||
* Use Python 3.11 non-beta in CI
|
||||
* Modernize variables code
|
||||
* Modernize main.py and parser.py code
|
||||
* Improve conciseness of cli.py and __init__.py
|
||||
* Improve error message for `get` and `list` commands when env
|
||||
file can't be opened
|
||||
* Updated License to align with BSD OSI template
|
||||
* Fix Out-of-scope error when "dest" variable is undefined
|
||||
* Fix IPython test warning about deprecated `magic`
|
||||
* Fix type hint for dotenv_path var, add StrPath alias
|
||||
* CLI: add support for invocations via 'python -m'.
|
||||
* `load_dotenv` function now returns `False`.
|
||||
* CLI: add --format= option to list command.
|
||||
* Drop Python 3.5 and 3.6 and upgrade GA
|
||||
* Use `open` instead of `io.open`.
|
||||
* Improve documentation for variables without a value
|
||||
* Add `parse_it` to Related Projects
|
||||
* Update README.md
|
||||
* Improve documentation with direct use of MkDocs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 26 01:56:00 UTC 2023 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove duplicate sle15_python_module_pythons
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:32:14 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 19 01:08:36 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Switch to single spec version build for PSP
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:44:15 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Skip building for python2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 7 00:42:19 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Skip testing with optional jupyter_ipython. Jupyter is only
|
||||
available for Python >= 3.7
|
||||
gh#openSUSE/python-rpm-macros#66
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 2 17:16:41 UTC 2020 - Michael Ströder <michael@stroeder.com>
|
||||
|
||||
- Update to 0.15.0
|
||||
* Add --export option to set to make it prepend the binding with export (#270 by @jadutter).
|
||||
* Make set command create the .env file in the current directory if no .env file was found (#270 by @jadutter).
|
||||
* Fix potentially empty expanded value for duplicate key (#260 by @bbc2).
|
||||
* Fix import error on Python 3.5.0 and 3.5.1 (#267 by @gongqingkui).
|
||||
* Fix parsing of unquoted values containing several adjacent space or tab characters (#277 by @bbc2, review by @x-yuri).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 5 13:46:03 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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]).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 04:44:30 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Downgrade jupyter_ipython from Recommends to Suggests as
|
||||
python-dotenv is now a dependency of docker-compose
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 12:41:06 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Update to 0.13.0
|
||||
* Add support for a Bash-like default value in variable expansion
|
||||
* Fix escaping of quoted values written by set_key
|
||||
* Few more fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 09:17:07 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 0.12.0:
|
||||
* various fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 13:18:03 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 0.10.3:
|
||||
* Small cleanups
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 25 08:58:11 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 0.10.2:
|
||||
* Add type hints and expose them to users (@qnighy)(#172)
|
||||
* load_dotenv and dotenv_values now accept an encoding parameter, defaults to None (@theskumar)(@earlbread)(#161)
|
||||
* Fix str/unicode inconsistency in Python 2: values are always str now. (@bbc2)(#121)
|
||||
* Fix Unicode error in Python 2, introduced in 0.10.0. (@bbc2)(#176)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 15:42:54 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Add LANG=C.UTF-8 to %check to fix tests on Leap
|
||||
- Rename tarball to match name provided by PyPI
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 15 06:37:32 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for 0.10.1
|
85
python-python-dotenv.spec
Normal file
85
python-python-dotenv.spec
Normal file
@ -0,0 +1,85 @@
|
||||
#
|
||||
# spec file for package python-python-dotenv
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-python-dotenv
|
||||
Version: 1.0.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 pytest >= 3.0.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module sh >= 2.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-click >= 5.0
|
||||
# rubygem-dotenv also provides executable dotenv
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Suggests: python-jupyter_ipython
|
||||
# There is a very similar Python package which also used `dotenv` namespace
|
||||
Conflicts: python-dotenv
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Add .env support to your Django/Flask apps in development and deployments.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-dotenv-%{version}
|
||||
|
||||
%build
|
||||
export LANG=C.UTF-8
|
||||
%python_build
|
||||
|
||||
%install
|
||||
export LANG=C.UTF-8
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/dotenv
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=C.UTF-8
|
||||
mv %{buildroot}%{_bindir}/dotenv %{buildroot}%{_bindir}/dotenv.orig
|
||||
# CLI tests require distribution to be found, and the correct executable installed
|
||||
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
cp %{buildroot}%{_bindir}/dotenv-%{$python_bin_suffix} %{buildroot}%{_bindir}/dotenv
|
||||
# ipython is optional and only available for python >= 3.7 in Tumbleweed
|
||||
$python -m pytest -v -k "not ipython"
|
||||
}
|
||||
mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv
|
||||
|
||||
%post
|
||||
%python_install_alternative dotenv
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative dotenv
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/dotenv
|
||||
%{python_sitelib}/dotenv/
|
||||
%{python_sitelib}/python_dotenv*/
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user