92c2356
Name:           python-dotenv
eaf0984
Version:        0.21.1
112e985
Release:        2%{?dist}
881472e
Summary:        Read key-value pairs from a .env file and set them as environment variables
92c2356
92c2356
License:        BSD
92c2356
URL:            https://github.com/theskumar/python-dotenv
92c2356
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
92c2356
BuildArch:      noarch
92c2356
92c2356
BuildRequires:  python3-devel
92c2356
92c2356
%description
92c2356
Reads the key/value pair from .env file and adds them to environment variable.
92c2356
92c2356
92c2356
%package -n     python3-dotenv
92c2356
Summary:        %{summary}
ac8cf0a
Recommends:     python3-dotenv+cli
92c2356
92c2356
%description -n python3-dotenv
92c2356
Reads the key/value pair from .env file and adds them to environment variable.
92c2356
92c2356
92c2356
%prep
92c2356
%autosetup
92c2356
112e985
# Get rid of dependency on python-cov, drop --cov... options from pytest
ac8cf0a
# Downstream-only change, based on Fedora's linters policy
112e985
sed -Ei -e "/^  pytest-cov$/d" \
112e985
        -e "s/--cov //" \
112e985
        -e "s/--cov-[[:alnum:]]+(=| +)[^ ]+ //g" \
112e985
    tox.ini
ac8cf0a
536b83b
%if 0%{?rhel}
536b83b
# Avoid IPython dependency in tests only needed for optional integration
536b83b
sed -i -e '/ipython/d' requirements.txt tox.ini
536b83b
%endif
536b83b
ac8cf0a
ac8cf0a
%generate_buildrequires
ac8cf0a
%pyproject_buildrequires -t
ac8cf0a
92c2356
92c2356
%build
ac8cf0a
%pyproject_wheel
92c2356
92c2356
92c2356
%install
ac8cf0a
%pyproject_install
ac8cf0a
%pyproject_save_files dotenv
ac8cf0a
92c2356
92c2356
%check
ac8cf0a
%tox
ac8cf0a
92c2356
ac8cf0a
%files -n python3-dotenv -f %{pyproject_files}
92c2356
%doc README.md
92c2356
ac8cf0a
%pyproject_extras_subpkg -n python3-dotenv cli
edab385
%{_bindir}/dotenv
edab385
92c2356
92c2356
%changelog
112e985
* Tue Feb 07 2023 Miro Hrončok <mhroncok@redhat.com> - 0.21.1-2
112e985
- Drop unwanted build dependency on pytest-cov
112e985
eaf0984
* Mon Jan 23 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.21.1-1
eaf0984
- 0.21.1
eaf0984
73d2f22
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-2
73d2f22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
73d2f22
35c9c9a
* Wed Oct 12 2022 Karolina Surma <ksurma@redhat.com> - 0.21.0-1
35c9c9a
- Update to 0.21.0
35c9c9a
Resolves: rhbz#2068308
35c9c9a
c809d3a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-4
c809d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c809d3a
76bbde8
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.19.2-3
76bbde8
- Rebuilt for Python 3.11
76bbde8
b791408
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-2
b791408
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b791408
ce4a0b6
* Tue Nov 30 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.19.2-1
ce4a0b6
- Update to 0.19.2
ce4a0b6
50c4bad
* Thu Aug 19 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.19.0-1
50c4bad
- Update to 0.19.0
50c4bad
05df122
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-2
05df122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
05df122
356e38c
* Tue Jun 29 2021 Lumír Balhar <lbalhar@redhat.com> - 0.18.0-1
356e38c
- Update to 0.18.0
356e38c
Resolves: rhbz#1974239
356e38c
2a226a1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.17.1-2
2a226a1
- Rebuilt for Python 3.10
2a226a1
881472e
* Wed Apr 28 2021 Karolina Surma <ksurma@redhat.com> - 0.17.1-1
881472e
- Update to 0.17.1
881472e
Resolves rhbz#1945975
881472e
2094b06
* Thu Apr 01 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.16.0-1
2094b06
- Update to 0.16.0
2094b06
e584b81
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
e584b81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e584b81
8bd2440
* Tue Dec 08 2020 Lumír Balhar <lbalhar@redhat.com> - 0.15.0-1
8bd2440
- Update to 0.15.0 (#1892507)
8bd2440
55cbf8f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-3
55cbf8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
55cbf8f
edab385
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-2
edab385
- Add python-dotenv[cli] subpackage with /usr/bin/dotenv
edab385
73470a6
* Thu Jul 09 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-1
73470a6
- Update to 0.14.0
73470a6
- Fixes rhbz#1709002
73470a6
7d00a21
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-2
7d00a21
- Rebuilt for Python 3.9
7d00a21
77c6d05
* Mon May 04 2020 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-1
77c6d05
- Update to 0.13.0 (#1709002)
77c6d05
- Fix failing tests with click 7.1 (#1830984)
77c6d05
c643e1d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-6
c643e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c643e1d
4cca5d1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-5
4cca5d1
- Rebuilt for Python 3.8.0rc1 (#1748018)
4cca5d1
b1647f4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-4
b1647f4
- Rebuilt for Python 3.8
b1647f4
95b717a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
95b717a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
95b717a
34f5fe7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
34f5fe7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
34f5fe7
92c2356
* Mon Aug 06 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-1
92c2356
- Initial package