Skip to content

Commit

Permalink
Prepare release 0.4 (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Oct 12, 2020
1 parent 9a69a7b commit 436dce6
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 141 deletions.
23 changes: 15 additions & 8 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# Releasing a new version of Mu-Haskell

This list assumes you have your Hackage username and password set in your `.cabal/config` file.

1. Run `./test-schema.sh` and check that no errors are found
- If found, abort and open issue
2. Run `./test-templates.sh` and check that no errors are found
2. Check that you can build with all compilers, and update project files if required:
- `stack build` (for the current LTS)
- `stack build --stack-yaml stack-nightly.yaml` (for the next version)
- `cabal build all`
3. For each package, run the following commands:

```
./release-package.sh <package> <version>
```

4. Push and merge any pending changes
5. Run `./test-templates.sh` and check that no errors are found
- If found, update templates in `templates` folder and open a PR
3. Publish a new release in GitHub:
6. Publish a new release in GitHub:
- Tag by running `git tag -a vX.Y -m "Release X.Y"`
- Push the tag `git push --tags`
- Create a new release in [GitHub](https://github.com/higherkindness/mu-haskell/releases/new) for that tag, or if using [`hub`](https://hub.github.com/hub-release.1.html), run `hub release create vX.Y`
5. For each package, run the following commands:
- create the package: `cabal sdist package`
- publish a candidate: `cabal upload route-to.tar.gz`, and check it
- publish definitely: `cabal upload --publish route-to.tar.gz`
- create the docs: `cabal v2-haddock --builddir="dist-newstyle" --haddock-for-hackage --enable-doc package`
- publish docs: `cabal upload -d --publish route-to-docs.tar.gz`
2 changes: 1 addition & 1 deletion adapter/avro/mu-avro.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ executable test-avro
avro >=0.5.1 && <0.6
, base >=4.12 && <5
, bytestring >=0.10 && <0.11
, mu-avro ==0.4.*
, mu-avro
, mu-schema ==0.3.*

hs-source-dirs: test
Expand Down
4 changes: 2 additions & 2 deletions adapter/protobuf/mu-protobuf.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ library
, mu-rpc ==0.4.*
, mu-schema ==0.3.*
, proto3-wire >=1.1 && < 2
, servant-client-core >=0.16 && <0.17
, servant-client-core >=0.16 && <0.19
, sop-core >=0.5 && <0.6
, template-haskell >=2.14 && <2.16
, text >=1.2 && <2
Expand All @@ -54,7 +54,7 @@ executable test-protobuf
build-depends:
base >=4.12 && <5
, bytestring
, mu-protobuf >=0.3.0
, mu-protobuf
, mu-schema >=0.3.0
, proto3-wire
, text
Expand Down
9 changes: 8 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
allow-newer: http2, http2-client, template-haskell, proto3-wire
allow-newer: base, network, foldl, http2, http2-client, template-haskell, proto3-wire, servant, swagger2, optics, optics-core

preferences: base16-bytestring < 1

packages: compendium-client/
core/schema/
Expand Down Expand Up @@ -27,3 +29,8 @@ source-repository-package
type: git
location: https://github.com/hasura/graphql-parser-hs.git
tag: f4a093981ca5626982a17c2bfaad047cc0834a81

source-repository-package
type: git
location: https://github.com/haskell/c2hs.git
tag: 20d3c8dedde83af91c4ac06486bf346316e07285
6 changes: 3 additions & 3 deletions compendium-client/compendium-client.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: compendium-client
version: 0.2.0.0
version: 0.2.1.0
synopsis: Client for the Compendium schema server
description:
Client for the <https://github.com/higherkindness/compendium Compendium> schema server
Expand Down Expand Up @@ -27,8 +27,8 @@ library
, http-client >=0.6.4 && <0.7
, language-protobuf >=1.0.1 && <1.1
, megaparsec >=8 && <9
, servant >=0.16 && <0.17
, servant-client >=0.16 && <0.17
, servant >=0.16 && <0.19
, servant-client >=0.16 && <0.19
, text >=1.2 && <2

hs-source-dirs: src
Expand Down
2 changes: 1 addition & 1 deletion core/lens/mu-lens.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ source-repository head
library
exposed-modules: Mu.Schema.Lens
build-depends:
base
base >=4.12 && <5
, containers
, lens
, generic-lens
Expand Down
2 changes: 1 addition & 1 deletion core/schema/src/Mu/Schema/Interpretation/Schemaless.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data FieldValue where
-- Use this function to check a schemaless terms
-- at the "borders" of your application.
checkSchema
:: forall (s :: Schema tn fn) (t :: tn).
:: forall tn fn (s :: Schema tn fn) (t :: tn).
(CheckSchema s (s :/: t))
=> Proxy t -> Term -> Maybe (S.Term s (s :/: t))
checkSchema _ = checkSchema'
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/2a15520.tar.gz) {};
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/53ed0a9.tar.gz) {};
nixpkgsSrc = haskellNix.sources.nixpkgs-2003;
nixpkgsArgs = haskellNix.nixpkgsArgs;
in
Expand Down
3 changes: 2 additions & 1 deletion graphql/mu-graphql.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ library
, base >=4.12 && <5
, bytestring >=0.10 && <0.11
, conduit >=1.3.2 && <2
, foldl >=1.4 && <2
, graphql-parser
, http-types >=0.12 && <0.13
, list-t >=1.0 && <2
Expand Down Expand Up @@ -70,7 +71,7 @@ executable library-graphql
build-depends:
base >=4.12 && <5
, conduit >=1.3.2 && <1.4
, mu-graphql ==0.4.*
, mu-graphql
, mu-rpc ==0.4.*
, mu-schema ==0.3.*
, regex-tdfa >=1.3 && <2
Expand Down
9 changes: 9 additions & 0 deletions release-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

cabal sdist ${1}
cabal upload dist-newstyle/sdist/${1}-${2}.tar.gz
echo "Check that it has been published correctly, and press Enter"
read
cabal upload --publish dist-newstyle/sdist/${1}-${2}.tar.gz
cabal v2-haddock --builddir="dist-newstyle" --haddock-for-hackage --enable-doc ${1}
cabal upload -d --publish dist-newstyle/${1}-${2}-docs.tar.gz
46 changes: 23 additions & 23 deletions servant/server/mu-servant-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ source-repository head
library
exposed-modules: Mu.Servant.Server
build-depends:
aeson >=1.4 && <2
, async
, base
, conduit
, generic-aeson
, ghc-prim
, mtl
, mu-rpc
, mu-schema
, servant
, servant-server
, servant-swagger
, stm
, swagger2
, utf8-string
aeson >=1.4 && <2
, async >=2.2 && < 3
, base >=4.12 && <5
, conduit >=1.3.2 && <2
, generic-aeson >=0.2 && <0.3
, ghc-prim >=0.5 && <0.7
, mtl >=2.2 && <3
, mu-rpc ==0.4.*
, mu-schema ==0.3.*
, servant >=0.16 && <0.19
, servant-server >=0.16 && <0.19
, servant-swagger >=1.1.7 && <2
, stm >=2.5 && <3
, swagger2 >=2.5 && <3
, utf8-string >=1 && <2

hs-source-dirs: src
default-language: Haskell2010
Expand All @@ -46,15 +46,15 @@ library
executable servant-example-server
main-is: ExampleServer.hs
build-depends:
aeson
, base
, conduit
, mu-rpc
, mu-schema
aeson >=1.4 && <2
, base >=4.12 && <5
, conduit >=1.3.2 && <2
, mu-rpc ==0.4.*
, mu-schema ==0.3.*
, mu-servant-server
, servant-server
, text
, warp
, servant-server >=0.16 && <0.19
, text >=1.2 && <2
, warp >=3.3 && <4

hs-source-dirs: exe
default-language: Haskell2010
Expand Down
57 changes: 0 additions & 57 deletions stack-14.yaml

This file was deleted.

13 changes: 10 additions & 3 deletions stack-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,27 @@ extra-deps:
- http2-client-grpc-0.8.0.0
- http2-grpc-proto3-wire-0.1.0.0
- http2-grpc-types-0.5.0.0
- proto3-wire-1.1.0
- proto3-wire-1.2.0
- warp-grpc-0.4.0.1
- hw-kafka-client-3.1.1
- hw-kafka-conduit-2.7.0
- tracing-control-0.0.6
- wai-middleware-prometheus-1.0.0
- git: https://github.com/hasura/graphql-parser-hs.git
commit: f4a093981ca5626982a17c2bfaad047cc0834a81
- generic-aeson-0.2.0.10
- parameterized-0.5.0.0
# Dropped in LTS 16
- primitive-extras-0.8
- primitive-unlifted-0.1.3.0
- stm-hamt-1.2.0.4
- stm-containers-1.1.0.4
- stm-lifted-2.5.0.0
# Dropped in last nightly
- servant-client-0.16
- servant-client-core-0.16
- servant-blaze-0.9
- servant-client-core-0.18
- servant-client-0.18
- servant-server-0.18
- servant-swagger-1.1.10
- servant-swagger-ui-core-0.3.3
- servant-swagger-ui-0.3.4.3.23.11
11 changes: 9 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-16.15
resolver: lts-16.18
allow-newer: true

packages:
Expand Down Expand Up @@ -30,7 +30,7 @@ extra-deps:
- http2-client-grpc-0.8.0.0
- http2-grpc-proto3-wire-0.1.0.0
- http2-grpc-types-0.5.0.0
- proto3-wire-1.1.0
- proto3-wire-1.2.0
- warp-grpc-0.4.0.1
- hw-kafka-client-3.1.1
- hw-kafka-conduit-2.7.0
Expand All @@ -39,9 +39,16 @@ extra-deps:
- git: https://github.com/hasura/graphql-parser-hs.git
commit: f4a093981ca5626982a17c2bfaad047cc0834a81
- generic-aeson-0.2.0.10
- parameterized-0.5.0.0
# Dropped in LTS 16
- primitive-extras-0.8
- primitive-unlifted-0.1.3.0
- stm-hamt-1.2.0.4
- stm-containers-1.1.0.4
- stm-lifted-2.5.0.0
# Updated servant
- servant-0.18
- servant-client-core-0.18
- servant-client-0.18
- servant-server-0.18
- servant-swagger-1.1.10
16 changes: 8 additions & 8 deletions templates/graphql-server.hsfiles
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ executable {{name}}
build-depends:
base >=4.12 && <5
, conduit
, mu-graphql >=0.3.0
, mu-rpc >=0.3.0
, mu-schema >=0.3.0
, mu-graphql >=0.4.0
, mu-rpc >=0.4.0
, mu-schema >=0.3.1
, text
, wai-extra
, warp


{-# START_FILE stack.yaml #-}
resolver: lts-15.8
resolver: lts-16.18
allow-newer: true
extra-deps:
- mu-schema-0.3.0.0
- mu-rpc-0.3.0.0
- mu-graphql-0.3.0.0
- mu-schema-0.3.1.0
- mu-rpc-0.3.4.0
- mu-graphql-0.4.0.0
- git: https://github.com/hasura/graphql-parser-hs.git
commit: 1380495a7b3269b70a7ab3081d745a5f54171a9c
commit: f4a093981ca5626982a17c2bfaad047cc0834a81

{-# START_FILE Setup.hs #-}
import Distribution.Simple
Expand Down

0 comments on commit 436dce6

Please sign in to comment.