Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2020-11-24 22:14:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-optparse-applicative (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-optparse-applicative"

Tue Nov 24 22:14:46 2020 rev:18 rq:850497 version:0.16.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
        2020-08-28 21:35:41.788732853 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.5913/ghc-optparse-applicative.changes
      2020-11-24 22:14:53.079629282 +0100
@@ -1,0 +2,12 @@
+Mon Nov 23 09:59:18 UTC 2020 - [email protected]
+
+- Update optparse-applicative to version 0.16.1.0.
+  ## Version 0.16.1.0 (21 Nov 2020)
+
+  - Guard `process` dependency behind an on by default flag.
+    This allows one to shrink the dependency tree significantly
+    by turning off the ability to use bash completion actions.
+
+  - Remove `bytestring` dependency from the test suite.
+
+-------------------------------------------------------------------

Old:
----
  optparse-applicative-0.16.0.0.tar.gz

New:
----
  optparse-applicative-0.16.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-optparse-applicative.spec ++++++
--- /var/tmp/diff_new_pack.OI1vRQ/_old  2020-11-24 22:14:54.367630476 +0100
+++ /var/tmp/diff_new_pack.OI1vRQ/_new  2020-11-24 22:14:54.371630479 +0100
@@ -19,7 +19,7 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.16.0.0
+Version:        0.16.1.0
 Release:        0
 Summary:        Utilities and combinators for parsing command line options
 License:        BSD-3-Clause
@@ -33,7 +33,6 @@
 BuildRequires:  ghc-transformers-devel
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
-BuildRequires:  ghc-bytestring-devel
 %endif
 
 %description

++++++ optparse-applicative-0.16.0.0.tar.gz -> 
optparse-applicative-0.16.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.16.0.0/CHANGELOG.md 
new/optparse-applicative-0.16.1.0/CHANGELOG.md
--- old/optparse-applicative-0.16.0.0/CHANGELOG.md      2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-applicative-0.16.1.0/CHANGELOG.md      2001-09-09 
03:46:40.000000000 +0200
@@ -1,3 +1,11 @@
+## Version 0.16.1.0 (21 Nov 2020)
+
+- Guard `process` dependency behind an on by default flag.
+  This allows one to shrink the dependency tree significantly
+  by turning off the ability to use bash completion actions.
+
+- Remove `bytestring` dependency from the test suite.
+
 ## Version 0.16.0.0 (14 Aug 2020)
 
 - Add `Options.Applicative.NonEmpty.some1` function, which
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.16.0.0/optparse-applicative.cabal 
new/optparse-applicative-0.16.1.0/optparse-applicative.cabal
--- old/optparse-applicative-0.16.0.0/optparse-applicative.cabal        
2001-09-09 03:46:40.000000000 +0200
+++ new/optparse-applicative-0.16.1.0/optparse-applicative.cabal        
2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:                optparse-applicative
-version:             0.16.0.0
+version:             0.16.1.0
 synopsis:            Utilities and combinators for parsing command line options
 description:
     optparse-applicative is a haskell library for parsing options
@@ -60,6 +60,11 @@
   type:     git
   location: https://github.com/pcapriotti/optparse-applicative.git
 
+flag process
+  description:
+    Depend on the process package for Bash autocompletion
+  default: True
+
 library
   hs-source-dirs:      src
   ghc-options:         -Wall
@@ -92,9 +97,11 @@
   build-depends:       base                            == 4.*
                      , transformers                    >= 0.2 && < 0.6
                      , transformers-compat             >= 0.3 && < 0.7
-                     , process                         >= 1.0 && < 1.7
                      , ansi-wl-pprint                  >= 0.6.8 && < 0.7
 
+  if flag(process)
+    build-depends:     process                         >= 1.0 && < 1.7
+
   if !impl(ghc >= 8)
     build-depends:     semigroups                      >= 0.10 && < 0.20
                      , fail                            == 4.9.*
@@ -117,7 +124,6 @@
                      , Examples.Hello
 
   build-depends:       base
-                     , bytestring                      >= 0.9 && < 0.11
                      , optparse-applicative
                      , QuickCheck                      >= 2.8 && < 2.15
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.16.0.0/src/Options/Applicative/Builder/Completer.hs 
new/optparse-applicative-0.16.1.0/src/Options/Applicative/Builder/Completer.hs
--- 
old/optparse-applicative-0.16.0.0/src/Options/Applicative/Builder/Completer.hs  
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/optparse-applicative-0.16.1.0/src/Options/Applicative/Builder/Completer.hs  
    2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
 module Options.Applicative.Builder.Completer
   ( Completer
   , mkCompleter
@@ -10,7 +12,9 @@
 import Prelude
 import Control.Exception (IOException, try)
 import Data.List (isPrefixOf)
+#ifdef MIN_VERSION_process
 import System.Process (readProcess)
+#endif
 
 import Options.Applicative.Types
 
@@ -31,10 +35,14 @@
 -- 
<http://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html#Programmable-Completion-Builtins>
 -- for a complete list.
 bashCompleter :: String -> Completer
+#ifdef MIN_VERSION_process
 bashCompleter action = Completer $ \word -> do
   let cmd = unwords ["compgen", "-A", action, "--", requote word]
   result <- tryIO $ readProcess "bash" ["-c", cmd] ""
   return . lines . either (const []) id $ result
+#else
+bashCompleter = const $ Completer $ const $ return []
+#endif
 
 tryIO :: IO a -> IO (Either IOException a)
 tryIO = try
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.16.0.0/tests/test.hs 
new/optparse-applicative-0.16.1.0/tests/test.hs
--- old/optparse-applicative-0.16.0.0/tests/test.hs     2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-applicative-0.16.1.0/tests/test.hs     2001-09-09 
03:46:40.000000000 +0200
@@ -12,8 +12,6 @@
 
 import           Control.Applicative
 import           Control.Monad
-import           Data.ByteString (ByteString)
-import qualified Data.ByteString.Char8 as BS8
 import           Data.List hiding (group)
 import           Data.List.NonEmpty (NonEmpty ((:|)))
 import           Data.Semigroup hiding (option)
@@ -768,15 +766,6 @@
     in  counterexample msg
        $  isInfixOf "Did you mean one of these?\n    first\n    fst" msg
 
-prop_bytestring_reader :: Property
-prop_bytestring_reader = once $
-  let t = "testValue"
-      p :: Parser ByteString
-      p = argument str idm
-      i = info p idm
-      result = run i ["testValue"]
-  in assertResult result $ \xs -> BS8.pack t === xs
-
 prop_grouped_some_option_ellipsis :: Property
 prop_grouped_some_option_ellipsis = once $
   let x :: Parser String
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to