|
|
|
@ -1,24 +1,18 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 3;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: python-dotenv
|
|
|
|
|
Version: 1.0.1
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Version: 0.19.2
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Read key-value pairs from a .env file and set them as environment variables
|
|
|
|
|
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/theskumar/python-dotenv
|
|
|
|
|
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-click
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-sh
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Reads the key/value pair from .env file and adds them to environment variable.
|
|
|
|
@ -26,7 +20,9 @@ Reads the key/value pair from .env file and adds them to environment variable.
|
|
|
|
|
|
|
|
|
|
%package -n python3-dotenv
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
Recommends: python3-dotenv+cli
|
|
|
|
|
%{!?python_extras_subpkg:Requires: python3-click}
|
|
|
|
|
%{?python_extras_subpkg:Recommends: python3-dotenv+cli}
|
|
|
|
|
%{?python_provide:%python_provide python3-dotenv}
|
|
|
|
|
|
|
|
|
|
%description -n python3-dotenv
|
|
|
|
|
Reads the key/value pair from .env file and adds them to environment variable.
|
|
|
|
@ -34,93 +30,39 @@ Reads the key/value pair from .env file and adds them to environment variable.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
# Get rid of dependency on python-cov, drop --cov... options from pytest
|
|
|
|
|
# Downstream-only change, based on Fedora's linters policy
|
|
|
|
|
sed -Ei -e "/^ pytest-cov$/d" \
|
|
|
|
|
-e "s/--cov //" \
|
|
|
|
|
-e "s/--cov-[[:alnum:]]+(=| +)[^ ]+ //g" \
|
|
|
|
|
tox.ini
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# Avoid IPython dependency in tests only needed for optional integration
|
|
|
|
|
sed -i -e '/ipython/d' requirements.txt tox.ini
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -t
|
|
|
|
|
# Use the standard library mock
|
|
|
|
|
sed -i 's/import mock/from unittest import mock/' tests/test_*.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files dotenv
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%tox
|
|
|
|
|
# Skip ipython tests in EPEL.
|
|
|
|
|
%pytest -v --ignore=tests/test_ipython.py -k "not test_set_key_permission_error"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-dotenv -f %{pyproject_files}
|
|
|
|
|
%files -n python3-dotenv
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitelib}/dotenv/
|
|
|
|
|
%{python3_sitelib}/python_dotenv-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-dotenv cli
|
|
|
|
|
%{?python_extras_subpkg:%{python_extras_subpkg -n python3-dotenv -i %{python3_sitelib}/*.egg-info cli}}
|
|
|
|
|
%{_bindir}/dotenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 26 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 1.0.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.0.1-2
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.0.1-1
|
|
|
|
|
- 1.0.1
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 26 2023 Miro Hrončok <miro@hroncok.cz> - 1.0.0-1
|
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
- Fixes: rhbz#2173252
|
|
|
|
|
- Fixes: rhbz#2246117
|
|
|
|
|
* Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.19.2-3
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 30 2023 Python Maint <python-maint@redhat.com> - 0.21.1-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Sun Mar 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.21.1-3
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Tue Feb 07 2023 Miro Hrončok <mhroncok@redhat.com> - 0.21.1-2
|
|
|
|
|
- Drop unwanted build dependency on pytest-cov
|
|
|
|
|
|
|
|
|
|
* Mon Jan 23 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.21.1-1
|
|
|
|
|
- 0.21.1
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Oct 12 2022 Karolina Surma <ksurma@redhat.com> - 0.21.0-1
|
|
|
|
|
- Update to 0.21.0
|
|
|
|
|
Resolves: rhbz#2068308
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.19.2-3
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
* Thu Apr 28 2022 Major Hayden <major@mhtx.net> - 0.19.2-3
|
|
|
|
|
- Disable ipython tests in EPEL.
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
@ -188,5 +130,3 @@ Resolves rhbz#1945975
|
|
|
|
|
|
|
|
|
|
* Mon Aug 06 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-1
|
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|