Skip to content

Commit d625a70

Browse files
committed
Merge pull request #13 from phobson/diy-plotting-positions
DIY plotting positions
2 parents d49619d + 078b87b commit d625a70

27 files changed

+561
-110
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ matrix:
88
- python: 3.4
99
env:
1010
- COVERAGE=false
11+
- python: 3.5
12+
env:
13+
- COVERAGE=false
1114
- python: 3.5
1215
env:
1316
- COVERAGE=true
@@ -29,7 +32,8 @@ install:
2932

3033
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
3134
- source activate test
32-
- conda install --yes numpy nose scipy matplotlib coverage docopt requests pyyaml
35+
- conda install --yes numpy nose matplotlib coverage docopt requests pyyaml
36+
- if [ ${COVERAGE} = true ]; then conda install scipy --yes; fi
3337
- pip install coveralls
3438
- pip install .
3539

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ seaborn.despine(fig=fig)
3232
```
3333

3434
![Alt text](docs/img/example.png "Example axes")
35+
36+
## Testing
37+
38+
Testing is generally done via the ``nose`` and ``numpy.testing`` modules.
39+
The best way to run the tests is in an interactive python session:
40+
41+
```python
42+
import matplotlib
43+
matplotib.use('agg')
44+
import probscale
45+
probscale.test()
46+
```
File renamed without changes.
File renamed without changes.

conda.recipe/dev/meta.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package:
2+
name: mpl-probscale
3+
version: 0.1.1
4+
5+
source:
6+
path: ../../
7+
# patches:
8+
# List any patch files here
9+
# - fix.patch
10+
11+
build:
12+
number: 1
13+
14+
requirements:
15+
build:
16+
- python
17+
- numpy
18+
- matplotlib
19+
20+
run:
21+
- python
22+
- numpy
23+
- matplotlib
24+
- nose
25+
26+
test:
27+
imports:
28+
- probscale
29+
30+
commands:
31+
- python -c "import matplotlib; matplotlib.use('agg'); import probscale; probscale.test()"
32+
33+
requires:
34+
- nose
35+
- scipy
36+
37+
about:
38+
home: http://phobson.github.io/mpl-probscale/
39+
license: BSD License
40+
summary: 'Probability scales for matplotlib.'
41+
42+
# See
43+
# http://docs.continuum.io/conda/build.html for
44+
# more information about meta.yaml/configure

conda.recipe/release/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"%PYTHON%" setup.py install
2+
if errorlevel 1 exit 1
3+
4+
:: Add more build steps here, if they are necessary.
5+
6+
:: See
7+
:: http://docs.continuum.io/conda/build.html
8+
:: for a list of environment variables that are set during the build process.

conda.recipe/release/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
$PYTHON setup.py install
4+
5+
# Add more build steps here, if they are necessary.
6+
7+
# See
8+
# http://docs.continuum.io/conda/build.html
9+
# for a list of environment variables that are set during the build process.

conda.recipe/meta.yaml renamed to conda.recipe/release/meta.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package:
22
name: mpl-probscale
3-
version: v0.1.0
3+
version: 0.1.1
44

55
source:
66
git_url: https://github.com/phobson/mpl-probscale.git
7-
git_tag: v0.1.0
7+
git_tag: v0.1.1
88
# patches:
99
# List any patch files here
1010
# - fix.patch
@@ -17,23 +17,19 @@ requirements:
1717
- python
1818
- numpy
1919
- matplotlib
20-
- scipy
2120

2221
run:
2322
- python
2423
- numpy
2524
- matplotlib
26-
- scipy
25+
- nose
2726

2827
test:
2928
imports:
3029
- probscale
3130

3231
commands:
33-
- nosetests
34-
35-
requires:
36-
- nose
32+
- python -c "import matplotlib; matplotlib.use('agg'); import probscale; probscale.test()"
3733

3834
about:
3935
home: http://phobson.github.io/mpl-probscale/

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
# built documents.
7777
#
7878
# The short X.Y version.
79-
version = '0.1.0'
79+
version = '0.1.1'
8080
# The full version, including alpha/beta/rc tags.
81-
release = '0.1.0'
81+
release = '0.1.1'
8282

8383
# The language for content autogenerated by Sphinx. Refer to documentation
8484
# for a list of supported languages.

docs/index.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,31 @@ Tutorial
5454

5555
tutorial/getting_started.rst
5656

57+
Testing
58+
-------
59+
60+
It's easiest to run the tests from an interactive python session:
61+
62+
.. code-block:: python
63+
64+
import matplotlib
65+
matplotlib.use('agg')
66+
import probscale
67+
probscale.test()
68+
69+
5770
API References
5871
--------------
5972

6073
.. toctree::
6174
:maxdepth: 2
6275

63-
probscale.rst
6476
viz.rst
65-
66-
67-
77+
probscale.rst
6878

6979
Indices and tables
7080
==================
7181

7282
* :ref:`genindex`
7383
* :ref:`modindex`
7484
* :ref:`search`
75-

0 commit comments

Comments
 (0)