#4 Add python-dotenv[cli] subpackage with /usr/bin/dotenv
Merged 3 years ago by churchyard. Opened 3 years ago by churchyard.
rpms/ churchyard/python-dotenv cli  into  master

file modified
+9 -3
@@ -1,6 +1,6 @@ 

  Name:           python-dotenv

  Version:        0.14.0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Add .env support to your Django/Flask apps in development and deployments

  

  License:        BSD
@@ -21,7 +21,8 @@ 

  

  %package -n     python3-dotenv

  Summary:        %{summary}

- Requires:       python3-click

+ %{!?python_extras_subpkg:Requires: python3-click}

+ %{?python_extras_subpkg:Recommends: python3-dotenv+cli}

  %{?python_provide:%python_provide python3-dotenv}

  

  %description -n python3-dotenv
@@ -49,12 +50,17 @@ 

  %files -n python3-dotenv

  %license LICENSE

  %doc README.md

- %{_bindir}/dotenv

  %{python3_sitelib}/dotenv/

  %{python3_sitelib}/python_dotenv-%{version}-py%{python3_version}.egg-info/

  

+ %{?python_extras_subpkg:%{python_extras_subpkg -n python3-dotenv -i %{python3_sitelib}/*.egg-info cli}}

+ %{_bindir}/dotenv

+ 

  

  %changelog

+ * Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-2

+ - Add python-dotenv[cli] subpackage with /usr/bin/dotenv

+ 

  * Thu Jul 09 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-1

  - Update to 0.14.0

  - Fixes rhbz#1709002

no initial comment

Interesting spec file code, lgtm.

Though I'm not sure we want to only recommend the binary from python3-dotenv, there might be some breakage :/

I am ready to firefight the breakage. Packages that need the cli would need to require python-dotenv[cli].

Pull-Request has been merged by churchyard

3 years ago