-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successfully extracted core scales from ggplot. Plus, improved the API and test coverage.
- Loading branch information
0 parents
commit 6b9c76e
Showing
51 changed files
with
8,660 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Configuration for coverage.py | ||
|
||
[run] | ||
branch = True | ||
source = mizani | ||
include = mizani/* | ||
omit = | ||
setup.py | ||
mizani/_version.py | ||
mizani/external/* | ||
mizani/tests/* | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
^def test_ | ||
if __name__ == .__main__.: | ||
precision = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mizani/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
doc/_build/ | ||
doc/generated/ | ||
|
||
# PyBuilder | ||
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
sudo: false | ||
|
||
language: python | ||
|
||
python: 3.5 | ||
|
||
env: | ||
- TOXENV=py35 | ||
- TOXENV=py27 | ||
- TOXENV=docs | ||
- TOXENV=flake8 | ||
|
||
cache: pip | ||
|
||
notifications: | ||
email: false | ||
|
||
install: | ||
- pip install -U tox | ||
- pip install coveralls | ||
|
||
script: | ||
- tox -e $TOXENV | ||
|
||
after_success: | ||
- coveralls --rcfile=.coveragerc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2016, Hassan Kibirige | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of nor the names of its contributors may be used to | ||
endorse or promote products derived from this software without specific | ||
prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include README.rst LICENSE | ||
include versioneer.py | ||
include mizani/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.PHONY: clean-pyc clean-build docs clean | ||
BROWSER := python -mwebbrowser | ||
|
||
help: | ||
@echo "clean - remove all build, test, coverage and Python artifacts" | ||
@echo "clean-build - remove build artifacts" | ||
@echo "clean-pyc - remove Python file artifacts" | ||
@echo "clean-test - remove test and coverage artifacts" | ||
@echo "lint - check style with flake8" | ||
@echo "test - run tests quickly with the default Python" | ||
@echo "test-all - run tests on every Python version with tox" | ||
@echo "coverage - check code coverage quickly with the default Python" | ||
@echo "docs - generate Sphinx HTML documentation, including API docs" | ||
@echo "release - package and upload a release" | ||
@echo "dist - package" | ||
@echo "install - install the package to the active Python's site-packages" | ||
|
||
clean: clean-build clean-pyc clean-test | ||
|
||
clean-build: | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
find . -name '*.egg' -exec rm -f {} + | ||
|
||
clean-pyc: | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
|
||
clean-test: | ||
rm -fr .tox/ | ||
rm -f .coverage | ||
rm -fr htmlcov/ | ||
|
||
lint: | ||
flake8 mizani tests | ||
|
||
test: | ||
py.test | ||
|
||
test-all: | ||
tox | ||
|
||
coverage: | ||
coverage report -m | ||
coverage html | ||
$(BROWSER) htmlcov/index.html | ||
|
||
docs: | ||
$(MAKE) -C doc clean | ||
$(MAKE) -C doc html | ||
$(BROWSER) doc/_build/html/index.html | ||
|
||
release: clean | ||
bash ./release.sh | ||
|
||
dist: clean | ||
python setup.py sdist bdist_wheel | ||
ls -l dist | ||
|
||
install: clean | ||
python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
###### | ||
Mizani | ||
###### | ||
|
||
================= ================= | ||
Latest Release |release|_ | ||
License |license|_ | ||
Build Status |buildstatus|_ | ||
Coverage |coverage|_ | ||
Documentation |documentation|_ | ||
================= ================= | ||
|
||
Mizani is a scales package for graphics. It is written in Python and is | ||
based on Hadley Wickham's `Scales`_. For how to use it in a graphics | ||
system, see the `documentation`_. | ||
|
||
Installation | ||
============ | ||
|
||
**Official version** | ||
|
||
.. code-block:: console | ||
$ pip install mizani | ||
**Development version** | ||
|
||
.. code-block:: console | ||
$ pip install git+https://github.com/has2k1/mizani.git@master | ||
.. |release| image:: https://img.shields.io/pypi/v/mizani.svg | ||
.. _release: https://pypi.python.org/pypi/mizani | ||
|
||
.. |license| image:: https://img.shields.io/pypi/l/mizani.svg | ||
.. _license: https://pypi.python.org/pypi/mizani | ||
|
||
.. |buildstatus| image:: https://api.travis-ci.org/has2k1/mizani.svg?branch=master | ||
.. _buildstatus: https://travis-ci.org/has2k1/mizani | ||
|
||
.. |coverage| image:: https://coveralls.io/repos/github/has2k1/mizani/badge.svg?branch=master | ||
.. _coverage: https://coveralls.io/github/has2k1/mizani?branch=master | ||
|
||
.. |documentation| image:: https://readthedocs.org/projects/mizani/badge/?version=latest | ||
.. _documentation: https://readthedocs.org/projects/mizani/?badge=latest | ||
|
||
.. _Scales: https://github.com/hadley/scales |
Oops, something went wrong.