X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=htsn-import.cabal;h=f264e30154ba338b076a22987b441b4fba487419;hb=676b608f662514ed9055aa13acb7f7f496205c3b;hp=99df37f27359f157257a0b3c22b3969e4ac06e53;hpb=4ab5b57dc58b2b1d75c89c3e7e8bf0e7269ec29e;p=dead%2Fhtsn-import.git diff --git a/htsn-import.cabal b/htsn-import.cabal index 99df37f..f264e30 100644 --- a/htsn-import.cabal +++ b/htsn-import.cabal @@ -1,5 +1,5 @@ name: htsn-import -version: 0.0.1 +version: 0.0.5 cabal-version: >= 1.8 author: Michael Orlitzky maintainer: Michael Orlitzky @@ -8,12 +8,27 @@ license: GPL-3 license-file: doc/LICENSE build-type: Simple extra-source-files: - doc/htsnrc-import.example + doc/dbschema/*.png + doc/htsn-importrc.example doc/man1/htsn-import.1 + doc/README.dbschema + doc/README.development + doc/README.schemagen + doc/TODO makefile - test/xml/*.xml schema/*.dtd - schemagen/*/*.xml + schemagen/AutoRacingResultsXML/*.xml + schemagen/Auto_Racing_Schedule_XML/*.xml + schemagen/Heartbeat/*.xml + schemagen/injuriesxml/*.xml + schemagen/Injuries_Detail_XML/*.xml + schemagen/newsxml/*.xml + schemagen/Odds_XML/*.xml + schemagen/scoresxml/*.xml + schemagen/weatherxml/*.xml + test/shell/*.test + test/xml/*.xml + test/xml/*.dtd synopsis: Import XML files from The Sports Network into an RDBMS. description: @@ -60,25 +75,26 @@ description: executable htsn-import build-depends: - base == 4.*, + base >= 4.6 && < 5, cmdargs >= 0.10.6, - configurator == 0.2.*, - directory == 1.2.*, - filepath == 1.3.*, - hslogger == 1.2.*, - htsn-common == 0.0.1, - hxt == 9.3.*, - groundhog == 0.4.*, - groundhog-postgresql == 0.4.*, - groundhog-sqlite == 0.4.*, - groundhog-th == 0.4.*, - MissingH == 1.2.*, - old-locale == 1.0.*, - tasty == 0.7.*, - tasty-hunit == 0.4.*, - time == 1.4.*, - transformers == 0.3.*, - tuple == 0.2.* + configurator >= 0.2, + directory >= 1.2, + filepath >= 1.3, + hslogger >= 1.2, + htsn-common >= 0.0.1, + hxt >= 9.3, + groundhog >= 0.5, + groundhog-postgresql >= 0.5, + groundhog-sqlite >= 0.5, + groundhog-th >= 0.5, + MissingH >= 1.2, + old-locale >= 1, + split >= 0.2, + tasty >= 0.8, + tasty-hunit >= 0.8, + time >= 1.4, + transformers >= 0.3, + tuple >= 0.2 main-is: Main.hs @@ -94,14 +110,22 @@ executable htsn-import ExitCodes OptionalConfiguration TSN.Codegen + TSN.Database TSN.DbImport + TSN.Parse TSN.Picklers TSN.XmlImport + TSN.XML.AutoRacingResults + TSN.XML.AutoRacingSchedule + TSN.XML.GameInfo TSN.XML.Heartbeat TSN.XML.Injuries TSN.XML.InjuriesDetail TSN.XML.News TSN.XML.Odds + TSN.XML.Scores + TSN.XML.SportInfo + TSN.XML.Weather Xml ghc-options: @@ -115,16 +139,17 @@ executable htsn-import -fwarn-incomplete-record-updates -fwarn-monomorphism-restriction -fwarn-unused-do-bind - -rtsopts - -threaded - -optc-O3 - -optc-march=native -O2 ghc-prof-options: -prof - -auto-all - -caf-all + -fprof-auto + -fprof-cafs + -- The following unbreak profiling with template haskell. We have + -- to build the program twice; once without profile and again with + -- these flags. + -hisuf hi_p + -osuf o_p test-suite testsuite @@ -132,25 +157,50 @@ test-suite testsuite hs-source-dirs: src test main-is: TestSuite.hs build-depends: - base == 4.*, + base >= 4.6 && < 5, cmdargs >= 0.10.6, - configurator == 0.2.*, - directory == 1.2.*, - filepath == 1.3.*, - hslogger == 1.2.*, - htsn-common == 0.0.1, - hxt == 9.3.*, - groundhog == 0.4.*, - groundhog-postgresql == 0.4.*, - groundhog-sqlite == 0.4.*, - groundhog-th == 0.4.*, - MissingH == 1.2.*, - old-locale == 1.0.*, - tasty == 0.7.*, - tasty-hunit == 0.4.*, - time == 1.4.*, - transformers == 0.3.*, - tuple == 0.2.* + configurator >= 0.2, + directory >= 1.2, + filepath >= 1.3, + hslogger >= 1.2, + htsn-common >= 0.0.1, + hxt >= 9.3, + groundhog >= 0.5, + groundhog-postgresql >= 0.5, + groundhog-sqlite >= 0.5, + groundhog-th >= 0.5, + MissingH >= 1.2, + old-locale >= 1, + split >= 0.2, + tasty >= 0.8, + tasty-hunit >= 0.8, + time >= 1.4, + transformers >= 0.3, + tuple >= 0.2 + + -- It's not entirely clear to me why I have to reproduce all of this. + ghc-options: + -Wall + -fwarn-hi-shadowing + -fwarn-missing-signatures + -fwarn-name-shadowing + -fwarn-orphans + -fwarn-type-defaults + -fwarn-tabs + -fwarn-incomplete-record-updates + -fwarn-monomorphism-restriction + -fwarn-unused-do-bind + -O2 + + +test-suite doctests + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Doctests.hs + build-depends: + base >= 4.6 && < 5, + -- Additional test dependencies. + doctest >= 0.9 -- It's not entirely clear to me why I have to reproduce all of this. ghc-options: @@ -171,6 +221,38 @@ test-suite testsuite -O2 +-- These won't work without shelltestrunner installed in your +-- $PATH. Maybe there is some way to tell Cabal that. +test-suite shelltests + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: ShellTests.hs + + build-depends: + base >= 4.6 && < 5, + cmdargs >= 0.10.6, + configurator >= 0.2, + directory >= 1.2, + filepath >= 1.3, + hslogger >= 1.2, + htsn-common >= 0.0.1, + hxt >= 9.3, + groundhog >= 0.5, + groundhog-postgresql >= 0.5, + groundhog-sqlite >= 0.5, + groundhog-th >= 0.5, + MissingH >= 1.2, + old-locale >= 1, + split >= 0.2, + process >= 1.1, + tasty >= 0.8, + tasty-hunit >= 0.8, + time >= 1.4, + transformers >= 0.3, + tuple >= 0.2 + + + source-repository head type: git location: http://michael.orlitzky.com/git/htsn-import.git