Browse Source

Bump version, make release

tags/v0.2.1.0^0
Peter J. Jones 1 year ago
parent
commit
ccdbbd677d
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
11 changed files with 137 additions and 45 deletions
  1. 0
    2
      .gitignore
  2. 104
    0
      .travis.yml
  3. 4
    0
      CHANGES.md
  4. 1
    1
      LICENSE
  5. 5
    1
      README.md
  6. 0
    2
      cabal.project
  7. 16
    13
      default.nix
  8. 6
    6
      playlists-http.cabal
  9. 1
    1
      playlists-http.nix
  10. 0
    15
      stack.nix
  11. 0
    4
      stack.yaml

+ 0
- 2
.gitignore View File

@@ -1,4 +1,2 @@
/.stack-work
/cabal.project.local
/dist-newstyle
/dist

+ 104
- 0
.travis.yml View File

@@ -0,0 +1,104 @@
# This Travis job script has been generated by a script via
#
# runghc make_travis_yml_2.hs 'playlists-http.cabal'
#
# For more information, see https://github.com/hvr/multi-ghc-travis
#
language: c
sudo: false

git:
submodules: false # whether to recursively clone submodules

cache:
directories:
- $HOME/.cabal/packages
- $HOME/.cabal/store

before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
# remove files that are regenerated by 'cabal update'
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx

- rm -rfv $HOME/.cabal/packages/head.hackage

matrix:
include:
- compiler: "ghc-7.10.3"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.3], sources: [hvr-ghc]}}
- compiler: "ghc-8.0.2"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
- compiler: "ghc-8.2.2"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
- compiler: "ghc-8.4.1"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}

before_install:
- HC=${CC}
- HCPKG=${HC/ghc/ghc-pkg}
- unset CC
- ROOTDIR=$(pwd)
- mkdir -p $HOME/.local/bin
- "PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$HOME/local/bin:$PATH"
- HCNUMVER=$(( $(${HC} --numeric-version|sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\1 * 10000 + \2 * 100 + \3/') ))
- echo $HCNUMVER

install:
- cabal --version
- echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
- BENCH=${BENCH---enable-benchmarks}
- TEST=${TEST---enable-tests}
- HADDOCK=${HADDOCK-true}
- INSTALLED=${INSTALLED-true}
- GHCHEAD=${GHCHEAD-false}
- travis_retry cabal update -v
- "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
- rm -fv cabal.project cabal.project.local
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
- "printf 'packages: \".\"\\n' > cabal.project"
- cat cabal.project
- if [ -f "./configure.ac" ]; then
(cd "." && autoreconf -i);
fi
- rm -f cabal.project.freeze
- cabal new-build -w ${HC} ${TEST} ${BENCH} --project-file="cabal.project" --dep -j2 all
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks --project-file="cabal.project" --dep -j2 all
- rm -rf .ghc.environment.* "."/dist
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)

# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
script:
# test that source-distributions can be generated
- (cd "." && cabal sdist)
- mv "."/dist/playlists-http-*.tar.gz ${DISTDIR}/
- cd ${DISTDIR} || false
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
- "printf 'packages: playlists-http-*/*.cabal\\n' > cabal.project"
- cat cabal.project
# this builds all libraries and executables (without tests/benchmarks)
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all

# Build with installed constraints for packages in global-db
- if $INSTALLED; then echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh; else echo "Not building with installed constraints"; fi

# build & run tests, build benchmarks
- cabal new-build -w ${HC} ${TEST} ${BENCH} all

# cabal check
- (cd playlists-http-* && cabal check)

# haddock
- rm -rf ./dist-newstyle
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi

# REGENDATA ["playlists-http.cabal"]
# EOF

+ 4
- 0
CHANGES.md View File

@@ -1,3 +1,7 @@
# Version 0.2.1.0 (March 20, 2018)

* Update dependency bounds

# Version 0.2.0.0 (December 1, 2017)

* Update to match `playlists` 0.5.0.0

+ 1
- 1
LICENSE View File

@@ -1,4 +1,4 @@
Copyright (c) 2016,2017 Peter Jones <pjones@devalot.com>
Copyright (c) 2016,2018 Peter Jones <pjones@devalot.com>

All rights reserved.


+ 5
- 1
README.md View File

@@ -1,4 +1,5 @@
# playlists-http
playlists-http [![Travis][travis-shield]][travis]
==============

Download and parse playlists over HTTP.

@@ -14,3 +15,6 @@ See the following modules for more details:

There is also an `examples/example.hs` that demonstrates how to use
the `download` function which is found in `Text.Playlist.HTTP.Full`.

[travis]: https://travis-ci.org/pjones/playlists-http
[travis-shield]: https://travis-ci.org/pjones/playlists-http.svg?branch=master

+ 0
- 2
cabal.project View File

@@ -1,2 +0,0 @@
packages: ./
../playlists

+ 16
- 13
default.nix View File

@@ -1,17 +1,20 @@
# These arguments are so you can override settings from the command
# line using the `nix-hs' tool.
{ nixpkgs ? import <nixpkgs> { }
, compiler ? "default"
, profiling ? false
}:
{ pkgs ? (import <nixpkgs> {}).pkgs }:

let
pkgs = nixpkgs;

buildInputs = with pkgs; [
# List extra dependencies here.
];
# List any extra packages you want available while your package is
# building or while in a nix shell:
extraPackages = with pkgs; [ ];

# Helpful if you want to override any Haskell packages:
haskell = pkgs.haskellPackages;
in
pkgs.nix-hs.interactive ./playlists-http.nix
{ inherit compiler profiling buildInputs; }

# Load the local nix file and use the overrides from above:
haskell.callPackage ./playlists-http.nix {
mkDerivation = { buildTools ? []
, ...
}@args:
haskell.mkDerivation (args // {
buildTools = buildTools ++ extraPackages;
});
}

+ 6
- 6
playlists-http.cabal View File

@@ -1,16 +1,16 @@
name: playlists-http
version: 0.2.0.0
version: 0.2.1.0
synopsis: Library to glue together playlists and http-client
homepage: https://github.com/pjones/playlists-http
license: BSD3
license-file: LICENSE
author: Peter Jones <pjones@devalot.com>
maintainer: Peter Jones <pjones@devalot.com>
copyright: Copyright (c) 2016,2017 Peter Jones
copyright: Copyright (c) 2016,2018 Peter Jones
category: Text
build-type: Simple
cabal-version: >= 1.18
tested-with: GHC==7.10.3, GHC==8.0.2
cabal-version: 1.18
tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1
description: Simple library for resolving playlists using http-client.

--------------------------------------------------------------------------------
@@ -52,10 +52,10 @@ library
build-depends: attoparsec >= 0.10 && < 1.0
, base >= 4.6 && < 5
, bytestring >= 0.10 && < 1.0
, exceptions >= 0.8 && < 0.9
, exceptions >= 0.8 && < 0.11
, http-client >= 0.4 && < 0.6
, mtl >= 2.2 && < 2.3
, playlists >= 0.5 && < 0.6
, playlists >= 0.5 && < 1.0
, text >= 0.11 && < 1.3
, transformers >= 0.4 && < 0.6


+ 1
- 1
playlists-http.nix View File

@@ -3,7 +3,7 @@
}:
mkDerivation {
pname = "playlists-http";
version = "0.1.2.0";
version = "0.2.1.0";
src = ./.;
isLibrary = true;
isExecutable = true;

+ 0
- 15
stack.nix View File

@@ -1,15 +0,0 @@
{ nixpkgs ? import <nixpkgs> { }
, ghc ? nixpkgs.ghc
}:

with nixpkgs;

haskell.lib.buildStackProject {
name = "playlists-http";

buildInputs = [
zlib
];

inherit ghc;
}

+ 0
- 4
stack.yaml View File

@@ -6,10 +6,6 @@ packages:
- ../playlists
- ./

nix:
enable: false
shell-file: stack.nix

flags:
playlists-http:
maintainer: true

Loading…
Cancel
Save