squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
#!/bin/bash
|
2018-08-13 17:57:07 +00:00
|
|
|
#
|
|
|
|
# Copyright 2018 Joshua Bronson. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
|
2018-04-06 04:28:44 +00:00
|
|
|
LAST_EXIT="0"
|
|
|
|
|
|
|
|
# Generate a new types diagram image from the source file if it's been modified
|
2018-03-27 07:35:52 +00:00
|
|
|
GRAPH_SRC="bidict-types-diagram.dot"
|
2017-11-16 20:44:51 +00:00
|
|
|
MODIFIED_GRAPH_SRC="$(git ls-files -m | grep ${GRAPH_SRC})"
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
|
2017-11-16 20:44:51 +00:00
|
|
|
if [[ -n "${MODIFIED_GRAPH_SRC}" ]]; then
|
2018-03-27 07:35:52 +00:00
|
|
|
MODIFIED_GRAPH_DST="${MODIFIED_GRAPH_SRC%.*}.png"
|
|
|
|
if which dot &>/dev/null ; then
|
2018-03-28 02:20:12 +00:00
|
|
|
dot -v -Tpng -o "${MODIFIED_GRAPH_DST}" < "${MODIFIED_GRAPH_SRC}"
|
|
|
|
LAST_EXIT="$?"
|
|
|
|
if [[ "${LAST_EXIT}" -ne 0 ]]; then
|
|
|
|
echo -e "\033[0;31m* dot exited nonzero (${LAST_EXIT})\033[0m\0007"
|
|
|
|
else
|
2017-11-16 20:44:51 +00:00
|
|
|
if which optipng &>/dev/null ; then
|
2018-03-28 02:20:12 +00:00
|
|
|
optipng "${MODIFIED_GRAPH_DST}"
|
|
|
|
LAST_EXIT="$?"
|
|
|
|
if [[ "LAST_EXIT" -ne 0 ]]; then
|
|
|
|
echo -e "\033[0;31m* optipng exited nonzero (${LAST_EXIT})\033[0m\0007"
|
|
|
|
fi
|
2017-11-16 20:44:51 +00:00
|
|
|
else
|
|
|
|
echo -e "\033[0;31m* optipng not found, skipping. Hint: brew install optipng\033[0m\0007"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
2018-03-27 07:35:52 +00:00
|
|
|
echo -e "\033[0;31m* dot not found, skipping. Hint: brew install graphviz\033[0m\0007"
|
2017-11-16 20:44:51 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2018-04-06 04:28:44 +00:00
|
|
|
|
|
|
|
# Build the docs.
|
2017-11-16 20:44:51 +00:00
|
|
|
cd docs
|
2018-04-06 04:28:44 +00:00
|
|
|
make clean html
|