foliage/foliage.cabal
Andrea Bedini cbd0c5da8f
Minimal test suite (#81)
* Minimal test suite

- Add support for urls with file: schema; both absolute (file:/path) and
  relative (file:path) paths are supported.

- Log curl invocation in case of failure

- Rename fetchRemoteAsset to fetchURL

- Add verbosity flag

- Bump GHC to 9.4.7

- Bump flake inputs

* Apply suggestions from code review

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Add short option '-v' for '--verbosity'

* Whitespace

* Add comment explaining why the dot

* Rename withFixture to inTemporaryDirectoryWithFixture

* Small refactor of PrepareSource

* Rename TarballSource to URISource

- Move sourceUrl to Foliage.Meta.packageVersionSourceToUri

* Simplify inTemporaryDirectoryWithFixture

* Document tar and cp flags

* Reformat

---------

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2023-09-15 12:18:30 +08:00

91 lines
3.1 KiB
Plaintext

cabal-version: 3.8
name: foliage
description: Foliage is a tool to create custom Haskell package repositories, in a fully reproducible way.
version: 0.6.0.0
maintainer: andrea@andreabedini.com
author: Andrea Bedini
license: MIT
license-file: LICENSE
extra-source-files: templates/*.mustache
source-repository head
type: git
location: https://github.com/andreabedini/foliage
common common-settings
ghc-options: -Wall -threaded
default-language: GHC2021
executable foliage
import: common-settings
main-is: Main.hs
hs-source-dirs: app
other-modules:
Distribution.Aeson
Distribution.Types.Orphans
Foliage.CmdBuild
Foliage.CmdCreateKeys
Foliage.CmdImportIndex
Foliage.FetchURL
Foliage.HackageSecurity
Foliage.Meta
Foliage.Meta.Aeson
Foliage.Options
Foliage.Pages
Foliage.PreparePackageVersion
Foliage.PrepareSource
Foliage.PrepareSdist
Foliage.Shake
Foliage.Time
Foliage.UpdateCabalFile
Foliage.Utils.Aeson
Foliage.Utils.GitHub
Network.URI.Orphans
build-depends:
base >=4.14.3.0 && <4.18,
aeson >=2.0.3.0 && <2.2,
base16 >=0.3.2.0 && <0.4,
binary >=0.8.9.0 && <0.9,
bytestring >=0.10.12.0 && <0.12,
Cabal >=3.10 && <3.11,
Cabal-syntax >=3.10 && <3.11,
cabal-install >=3.10 && <3.11,
containers >=0.6.5.1 && <0.7,
cryptohash-sha256 >=0.11.102.1 && <0.12,
directory >=1.3.6.0 && <1.4,
ed25519 >=0.0.5.0 && <0.1,
filepath >=1.4.2.1 && <1.5,
hackage-security >=0.6.2.1 && <0.7,
network-uri >=2.6.4.1 && <2.7,
optparse-applicative >=0.17.0.0 && <0.18,
shake >=0.19.6 && <0.20,
stache >=2.3.3 && <2.4,
tar >=0.5.1.1 && <0.6,
text >=1.2.4.1 && <2.1,
time >=1.9.3 && <1.13,
time-compat >=1.9.6.1 && <1.10,
tomland >=1.3.3.1 && <1.4,
vector >=0.13.0.0 && <0.14,
with-utf8 >=1.0.2.3 && <1.1,
zlib >=0.6.2.3 && <0.7,
test-suite foliage-test-suite
import: common-settings
main-is: Tests.hs
other-modules: Foliage.Tests.Utils
, Foliage.Tests.Tar
build-depends: base
, bytestring
, containers
, directory
, filepath
, network
, process
, tasty
, tasty-hunit
, tar
, unix
build-tool-depends: foliage:foliage
hs-source-dirs: tests