Skip to content

Commit

Permalink
Release v1.6.2 and add a release-generating script. (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Jul 5, 2018
1 parent 7b9e4b9 commit da48c4a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Current development version

## v1.6.2

- Fix incorrect filtering in `@optional` locations. [#95](https://github.com/kensho-technologies/graphql-compiler/pull/95)

Thanks to `amartyashankha` for the fix!

## v1.6.1

- Fix a bad compilation bug on `@fold` and `@optional` in the same scope. [#86](https://github.com/kensho-technologies/graphql-compiler/pull/86)
Expand Down
2 changes: 1 addition & 1 deletion graphql_compiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


__package_name__ = 'graphql-compiler'
__version__ = '1.6.1'
__version__ = '1.6.2'


def graphql_to_match(schema, graphql_query, parameters, type_equivalence_hints=None):
Expand Down
27 changes: 27 additions & 0 deletions scripts/make_new_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Copyright 2018-present Kensho Technologies, LLC.

# Fail on first error, on undefined variables, and on errors in a pipeline.
set -euo pipefail

# Enable recursive globbing, and make globs that do not match return null values.
shopt -s globstar nullglob

# Make sure the current working directory is the root directory.
if [ ! -f "./requirements.txt" ] || [ ! -f "./CHANGELOG.md" ]; then
echo -e 'Please run this script from the root directory of the repo:\n'
echo -e ' ./scripts/make_new_release.sh\n'
exit 1
fi

# Clean up old release artifacts.
rm -r build/ dist/

# Build the source distribution.
python setup.py sdist

# Build the binary distribution.
python setup.py bdist_wheel --universal

# Upload the new release.
twine upload dist/*

0 comments on commit da48c4a

Please sign in to comment.