Skip to content

Commit aee4c11

Browse files
committed
First commit for version 1.0
Old commits are available under https://github.com/Chilipp/psyplot_old
0 parents  commit aee4c11

104 files changed

Lines changed: 27309 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
26+
# PyInstaller
27+
# Usually these files are written by a python script from a template
28+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29+
*.manifest
30+
*.spec
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
*,cover
45+
46+
# Translations
47+
*.mo
48+
*.pot
49+
50+
# Django stuff:
51+
*.log
52+
53+
# Sphinx documentation
54+
docs/_build/
55+
docs/index.doctree
56+
docs/examples/
57+
docs/api/
58+
59+
# test results
60+
*psyplot_testresults
61+
tests/envs/cov_psyplot_py*
62+
tests/envs/psyplot_py*.html
63+
64+
# PyBuilder
65+
target/
66+
67+
# Spyder project
68+
.spyderproject
69+
70+
# Example ipython notebook checkpoints
71+
*.ipynb_checkpoints/
72+
73+
# conda build files
74+
recipe/meta.yaml

‎.travis.yml‎

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
language: generic
2+
matrix:
3+
include:
4+
# linux environments
5+
- env:
6+
- PYTHON_VERSION=3.6
7+
- XARRAY_VERSION=0.9
8+
os: linux
9+
- env:
10+
- PYTHON_VERSION=3.6
11+
- XARRAY_VERSION=0.8
12+
os: linux
13+
- env:
14+
- PYTHON_VERSION=3.5
15+
- XARRAY_VERSION=0.9
16+
os: linux
17+
- env:
18+
- PYTHON_VERSION=3.5
19+
- XARRAY_VERSION=0.8
20+
os: linux
21+
- env:
22+
- PYTHON_VERSION=2.7
23+
- XARRAY_VERSION=0.9
24+
os: linux
25+
- env:
26+
- PYTHON_VERSION=2.7
27+
- XARRAY_VERSION=0.8
28+
os: linux
29+
# osx environments
30+
- env:
31+
- PYTHON_VERSION=3.6
32+
- XARRAY_VERSION=0.9
33+
os: osx
34+
- env:
35+
- PYTHON_VERSION=2.7
36+
- XARRAY_VERSION=0.9
37+
os: osx
38+
addons: # install cdo
39+
apt:
40+
packages:
41+
- cdo
42+
before_install:
43+
# make sure, gfortran and gnu-sed are installed
44+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
45+
brew install gnu-sed --with-default-names;
46+
fi
47+
install:
48+
# select the os name for the conda installer
49+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
50+
OS_NAME=MacOSX;
51+
else
52+
OS_NAME=Linux;
53+
fi
54+
# We do this conditionally because it saves us some downloading if the
55+
# version is the same.
56+
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
57+
wget https://repo.continuum.io/miniconda/Miniconda2-latest-"${OS_NAME}"-x86_64.sh -O miniconda.sh;
58+
else
59+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-"${OS_NAME}"-x86_64.sh -O miniconda.sh;
60+
fi
61+
# make sure we use an 'innocent' default matplotlib environment
62+
- touch matplotlibrc
63+
- bash miniconda.sh -b -p $HOME/miniconda
64+
- export PATH="$HOME/miniconda/bin:$PATH"
65+
- pip install pyyaml # is somehow not included in the current conda installation
66+
- hash -r
67+
- conda config --set always_yes yes --set changeps1 no
68+
- conda update -q conda
69+
# Useful for debugging any issues with conda
70+
- conda info -a
71+
- 'ENVKEY=py"${PYTHON_VERSION}"_xr"${XARRAY_VERSION}"'
72+
- conda env create -f tests/envs/environment_$ENVKEY.yml
73+
- source activate psyplot_$ENVKEY
74+
# install python cdo bindings
75+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
76+
pip install cdo;
77+
fi
78+
# install coveralls
79+
- pip install coveralls
80+
# install the test plugin
81+
- cd tests/test_plugin && python setup.py install && cd ../../
82+
# install psyplot
83+
- python setup.py install
84+
# export the environment for debugging
85+
- conda env export -n psyplot_$ENVKEY
86+
# print versions of all the important requirements
87+
- psyplot -aV
88+
script:
89+
- coverage run --source=psyplot setup.py pytest
90+
91+
after_success:
92+
- coveralls

‎CHANGELOG.rst‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
v1.0.0
2+
======
3+
4+
Added
5+
-----
6+
* Changelog
7+
8+
Changed
9+
-------
10+
* When creating new plots using the ``psyplot.project.Project.plot`` attribute,
11+
``scp`` for the newly created subproject is only called when the
12+
corresponding ``Project`` is the current main project (``gcp(True)``)
13+
* The ``alternate_paths`` keyword in the ``psyplot.project.Project.save_project``
14+
and ``psyplot.data.ArrayList.array_info`` methods has been changed to
15+
``alternative_paths``
16+
* The ``psyplot.project.Cdo`` class does not accept any of the keywords
17+
``returnDA, returnMaps`` or ``returnLine`` anymore. Instead it takes
18+
the ``plot_method`` keyword and several others.
19+
* The ``psyplot.project.close`` method by default now removes the data from
20+
the current project and closes attached datasets
21+
* The modules in the psyplot.plotter modules have been moved to separate
22+
packages to make the debugging and testing easier
23+
24+
- The psyplot.plotter.simple, baseplotter and colors modules have been moved
25+
to the psy-simple package
26+
- The psyplot.plotter.maps and boxes modules have been moved to the psy-maps
27+
package
28+
- The psyplot.plotter.linreg module has been moved to the psy-fit package
29+
* The endings of the yaml configuration files are now all *.yml*. Hence,
30+
31+
- the configuration file name is now *psyplotrc.yml* instead of
32+
*psyplotrc.yaml*
33+
- the default logging configuration file name is now *logging.yml* instead
34+
of *logging.yaml*
35+
* Under osx, the configuration directory is now also expected to be in
36+
``$HOME/.config/psyplot`` (as it is for linux)

0 commit comments

Comments
 (0)