Skip to content
Commits on Source (6)
[bumpversion]
current_version = 1.0.0
current_version = 1.1.0
commit = True
tag = True
......
pycoast/version.py export-subst
#### Code Sample, a minimal, complete, and verifiable piece of code
```python
# Your code here
```
#### Problem description
[this should also explain **why** the current behaviour is a problem and why the
expected output is a better solution.]
#### Expected Output
#### Actual Result, Traceback if applicable
#### Versions of Python, package at hand and relevant dependencies
Thank you for reporting an issue !
<!-- Please make the PR against the `develop` branch. -->
<!-- Describe what your PR does, and why -->
- [ ] Closes #xxxx <!-- remove if there is no corresponding issue, which should only be the case for minor changes -->
- [ ] Tests added <!-- for all bug fixes or enhancements -->
- [ ] Tests passed <!-- for all non-documentation changes) -->
- [ ] Passes ``git diff origin/develop **/*py | flake8 --diff`` <!-- remove if you did not edit any Python files -->
- [ ] Fully documented <!-- remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later -->
language: python
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
sudo: false
language: generic
env:
global:
# Set defaults to avoid repeating in most cases
- PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
- NUMPY_VERSION=stable
- MAIN_CMD='python setup.py'
- CONDA_DEPENDENCIES='sphinx pillow numpy pyproj coveralls coverage mock aggdraw six pyshp'
- PIP_DEPENDENCIES=''
- SETUP_XVFB=False
- EVENT_TYPE='push pull_request'
- SETUP_CMD='test'
- CONDA_CHANNELS='conda-forge'
- CONDA_CHANNEL_PRIORITY='True'
matrix:
include:
- env: PYTHON_VERSION=2.7
os: linux
- env: PYTHON_VERSION=2.7
os: osx
- env: PYTHON_VERSION=3.6
os: linux
- env: PYTHON_VERSION=3.6
os: osx
install:
# aggdraw is not currently supported on python 3
- pip install git+git://github.com/davidh-ssec/aggdraw.git
- python setup.py install
- pip install coveralls
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
script: coverage run --source=pycoast setup.py test
after_success: coveralls
after_success:
- if [[ $PYTHON_VERSION == 3.6 ]]; then coveralls; fi
deploy:
- provider: pypi
user: dhoese
password:
secure: M3wCEnirvwNDncuoLj8DpPFwNypLXcDGlAinNHfwZLIEzDTNrC5XhGZ3xbfmAeBGOIgJ2I6xDWJ6hYevv3HxBdgln9nJfO7tsnqisK1lxyF4/dntCJm5CLkJqM8To1o9zeht0dyZJ66fUAHfxwjXGBDoaPyEnsygWXH6vpEZ8K0=
distributions: sdist
skip_existing: true
on:
tags: true
repo: pytroll/pycoast
notifications:
slack: pytroll:96mNSYSI1dBjGyzVXkBT6qFt
# Project Contributors
The following people have made contributions to this project:
<!--- Use your GitHub account or any other personal reference URL --->
<!--- See https://gist.github.com/djhoese/52220272ec73b12eb8f4a29709be110d for auto-generating parts of this list --->
- Stefano Cerino
- [Adam Dybbroe (adybbroe)](https://github.com/adybbroe)
- [David Hoese (djhoese)](https://github.com/djhoese)
- [Katja Hungershofer (khunger)](https://github.com/khunger)
- [Mikhail Itkin (mitkin)](https://github.com/mitkin)
- [Panu Lahtinen (pnuu)](https://github.com/pnuu)
- [Esben S. Nielsen (storpipfugl)](https://github.com/storpipfugl)
- [Martin Raspaud (mraspaud)](https://github.com/mraspaud)
- [Hrobjartur Thorsteinsson (thorsteinssonh)](https://github.com/thorsteinssonh)
- [Antonio Valentino (avalentino)](https://github.com/avalentino)
Changelog
=========
## Version 1.2.1 (2018/11/12)
### Pull Requests Merged
#### Documentation changes
* [PR 22](https://github.com/pytroll/pycoast/pull/22) - Add deprecation warning if using ContourWriter
In this release 1 pull request was closed.
## Version 1.2.0 (2018/11/12)
### Backwards Incompatibility
* `ContourWriter` is now named `ContourWriterPIL`
* `ContourWriterAGG` is now the preferred writer and is aliased to `ContourWriter`
### Issues Closed
* [Issue 17](https://github.com/pytroll/pycoast/issues/17) - Test failures with pyshp 2.0.0
* [Issue 16](https://github.com/pytroll/pycoast/issues/16) - Add/fix documentation and examples about using pyresample AreaDefs
* [Issue 14](https://github.com/pytroll/pycoast/issues/14) - Add documentation for `add_shapes` method
* [Issue 13](https://github.com/pytroll/pycoast/issues/13) - Wrongly positioned coastlines on near sided perspective projection
In this release 4 issues were closed.
### Pull Requests Merged
#### Bugs fixed
* [PR 19](https://github.com/pytroll/pycoast/pull/19) - Fix base writer to work with shapely 2.0+ ([18](https://github.com/pytroll/pycoast/issues/18))
#### Documentation changes
* [PR 21](https://github.com/pytroll/pycoast/pull/21) - Add AUTHORS list
* [PR 20](https://github.com/pytroll/pycoast/pull/20) - Cleanup documentation and switch to versioneer for version number
In this release 3 pull requests were closed.
## v1.1.0 (2017-12-08)
- Update changelog. [Panu Lahtinen]
- Bump version: 1.0.0 → 1.1.0. [Panu Lahtinen]
- Merge pull request #11 from TAlonglong/develop. [Panu Lahtinen]
make _iterate_db loop over a list of levels, L1..LX. GSHHS has 6 leve…
- Make _iterate_db loop over a list of levels, L1..LX. GSHHS has 6
levels, Borders 3 levels, rivers 11 levels. [Trygve Aspenes]
- Merge pull request #10 from pytroll/feature-refactor. [David Hoese]
Refactor shape file feature creation
- Add contributor map script. [davidh-ssec]
- Make GSHHS data root optional. [davidh-ssec]
- Remove special exception class. [davidh-ssec]
It doesn't provide anything that a ValueError doesn't
- Reorganize methods for adding shapes to use the same code. [davidh-
ssec]
- Change adding features to using a generator. [davidh-ssec]
## v1.0.0 (2017-08-15)
v1.0.0 (2017-08-15)
-------------------
- Update changelog. [Martin Raspaud]
- Bump version: 0.6.1 → 1.0.0. [Martin Raspaud]
- Merge remote-tracking branch 'origin/master' into pre-master. [Martin
Raspaud]
- Merge pull request #9 from pytroll/feature-python3. [Martin Raspaud]
Feature python3
- Fix version import on python 3.4 (again) [davidh-ssec]
- Fix version import on python 3.4. [davidh-ssec]
- Remove unused import in setup.py. [davidh-ssec]
- Change version import to use importlib. [davidh-ssec]
- Use davidh-ssec/aggdraw for travis builds. [davidh-ssec]
- Fix version import in setup.py. [davidh-ssec]
- Fix version import in setup.py and add version to main package init.
[davidh-ssec]
- Remove aggdraw from python 3 travis executions for now. [davidh-ssec]
- Add python 3 to travis tests. [davidh-ssec]
- Fix python 3 compatiblity in cw_X.py modules. [davidh-ssec]
- Fix tests and MANIFEST to be more modern. [davidh-ssec]
## v0.6.1 (2017-05-18)
v0.6.1 (2017-05-18)
-------------------
- Update changelog. [Panu Lahtinen]
- Bump version: 0.6.0 → 0.6.1. [Panu Lahtinen]
- Add missing module name from Proj() call. [Panu Lahtinen]
- Create projection before using it. [Panu Lahtinen]
## v0.6.0 (2017-05-09)
- Update changelog. [Panu Lahtinen]
- Bump version: 0.5.5 → 0.6.0. [Panu Lahtinen]
- Merge branch 'master' into pre-master. [Panu Lahtinen]
- Add bumpversion. [Panu Lahtinen]
- Add bumpversion, gitchangelog and bring versio up-to-date. [Panu
Lahtinen]
- Update changelog. [Panu Lahtinen]
- Merge branch 'master' into pre-master. [Panu Lahtinen]
- Merge pull request #5 from avalentino/noagg. [Martin Raspaud]
Skip test on ContourWriterAGG if drawadd is not available
- Skip test on ContourWriterAGG if drawadd is not available. [Antonio
Valentino]
- Merge pull request #8 from pytroll/feature_extent_degrees. [Panu
Lahtinen]
Feature extent degrees
- Drop Python 2.6 support. [Panu Lahtinen]
- Remove texts from the images. [Panu Lahtinen]
- Do more PEP8. [Panu Lahtinen]
- Make geocentric extents the default. [Panu Lahtinen]
- Fix line lengths (PEP8) [Panu Lahtinen]
- Use functions from cw_base instead local copies. [Panu Lahtinen]
- Make it possible to add coastlines to area defs with extents in
degrees. [Panu Lahtinen]
- Minor PEP8. [Panu Lahtinen]
- Pep8 pretify. [Adam.Dybbroe]
- Pep8. [Adam.Dybbroe]
- Pep8. [Adam.Dybbroe]
v0.5.5 (2016-08-31)
-------------------
- Update changelog. [Martin Raspaud]
- Bump version: 0.5.4 → 0.5.5. [Martin Raspaud]
- Update fonts in two test images. [Martin Raspaud]
## v0.5.4 (2016-02-21)
v0.5.4 (2016-02-21)
-------------------
- Update changelog. [Martin Raspaud]
- Bump version: 0.5.3 → 0.5.4. [Martin Raspaud]
- Merge branch 'pre-master' [Martin Raspaud]
- Merge branch 'pre-master' of github.com:pytroll/pycoast into pre-
master. [Martin Raspaud]
- Add missing import of ConfigParser. [Panu Lahtinen]
- Remove skipping shapefiles crossing dateline, fixes global overlays.
[Panu Lahtinen]
- Update test reference images with ones made in Ubuntu so automatic
testing might work in Travis. [Panu Lahtinen]
## v0.5.3 (2016-02-21)
v0.5.3 (2016-02-21)
-------------------
Fix
~~~
- Bugfix: The section is called "coasts", plural... [Martin Raspaud]
- Bugfix: the refactoring used only coastal style. [Martin Raspaud]
Other
~~~~~
- Update changelog. [Martin Raspaud]
- Bump version: 0.5.2 → 0.5.3. [Martin Raspaud]
- Merge branch 'master' into pre-master. [Martin Raspaud]
Conflicts:
.gitignore
setup.py
- Add a gitignore file. [Martin Raspaud]
- Merge pull request #2 from mitkin/master. [Martin Raspaud]
Update setup.py
- Update setup.py. [Mikhail Itkin]
- Fix pyproj missing dependency. [Martin Raspaud]
- Move the test directory to pycoast.tests (for consistency) [Martin
Raspaud]
- Fix .travis.yml to install aggdraw first. [Martin Raspaud]
- Merge branch 'restructure' into pre-master. [Martin Raspaud]
- Split different readers out of __init__.py, adjust __init__.py so that
everything still works in the same way as previously. [Panu Lahtinen]
- More generic ignores. [Panu Lahtinen]
- Add a test suite and .travis file for ci. [Martin Raspaud]
- Update the reference images to make the test pass with pillow/aggdraw.
[Martin Raspaud]
- Add numpy to the list of dependencies. [Martin Raspaud]
- Added documentation about configuration files for pycoast. [Martin
Raspaud]
- Add setup.cfg for easy rpm generation. [Martin Raspaud]
- Some refactoring and pep8. [Martin Raspaud]
- _add_shapefile_shape bug fixed. [s.cerino]
- Merge branch 'master' into pre-master. [Martin Raspaud]
- Add configuration file reading feature. [Martin Raspaud]
- Merge branch 'master' of https://code.google.com/p/pycoast. [Martin
Raspaud]
- Fixed (sometimes fatal) ImageDraw import. [Hrobjartur Thorsteinsson]
ImageDraw and other PIL modules should be imported
directly from prevailing PIL package.
- Merge branch 'master' of https://code.google.com/p/pycoast. [Martin
Raspaud]
- Merge branch 'master' of https://code.google.com/p/pycoast. [Martin
Raspaud]
- Merge branch 'master' of https://code.google.com/p/pycoast. [Martin
Raspaud]
Conflicts:
pycoast/__init__.py
- Removing the rounding of the pixel indices. (Works with AGG and
without). [Martin Raspaud]
- Docbuilds. [Hrobjartur Thorsteinsson]
docbuilds
- Added documentation for polygons and shapefile methods. [Hrobjartur
Thorsteinsson]
Added documentation for polygons and shapefile methods.
- Add_polygon and add_shapefile_shape(s) integration testing.
[Hrobjartur Thorsteinsson]
add_polygon and add_shapefile_shape(s) integration testing.
Also included preliminary test data.
- Work in progress setting up shape and cities support. [Hrobjartur
Thorsteinsson]
Work in progress setting up shape and cities support
- Removed print line from add_shape routine. [Hrobjartur Thorsteinsson]
removed print line from add_shape routine
- Make pillow a dependency if PIL is not already there. [Martin Raspaud]
- Fixed fata ImageDraw import. [Hrobjartur Thorsteinsson]
Fixed importing conflict, affecting some users
......@@ -175,12 +309,16 @@ Other
all PIL imports should be from same package.
made "from PIL import ImageDraw"
- Adding appertizer image at the front. [Adam Dybbroe]
- Rearranging documentation, and minor editorial stuff. [Adam Dybbroe]
- Bug fix: add_line / add_polygon. [Hrobjartur Thorsteinsson]
Minor bug fix: add_line / add_polygon exception.
- Added custom shapefile and shape draw routines. [Hrobjartur
Thorsteinsson]
......@@ -191,44 +329,90 @@ Other
add_line(...)
add_polygon(...)
## v0.5.2 (2013-02-19)
- Built docs. [Esben S. Nielsen]
- Hrobs changes and FFT metric for unit test. [Esben S. Nielsen]
- Flexible grid labeling and placement implemented. [Esben S. Nielsen]
## v0.5.1 (2013-01-24)
- Lon markings now account for dateline too. [Esben S. Nielsen]
## v0.5.0 (2013-01-23)
- Updated doc image. [Esben S. Nielsen]
- Updated docs. [Esben S. Nielsen]
- Test updated. [Esben S. Nielsen]
- Implemented correct dateline handling and updated tests. [Esben S.
Nielsen]
## v0.4.0 (2012-09-20)
- Added all of docs/build/html. [Esben S. Nielsen]
- Modified comment. [Esben S. Nielsen]
- Added graticule computation from Hrob. [Esben S. Nielsen]
## v0.3.1 (2011-12-05)
- Corrected bug in add_coastlines_to_file. [Esben S. Nielsen]
## v0.3.0 (2011-12-02)
- Bugfixing to improve accuracy. [Esben S. Nielsen]
- Added testing. [Esben S. Nielsen]
- Corrected docs. [Esben S. Nielsen]
- Corrected git doc mess. [Esben S. Nielsen]
- Updated docs. [Esben S. Nielsen]
- Added possiblility to use AGG. Changed API slightly. [Esben S.
Nielsen]
- Docs messed up by git. Trying to clean. [Esben S. Nielsen]
- Added missing build doc files. [Esben S. Nielsen]
- Corrected invalid reprojection issue for projections like geos. [Esben
S. Nielsen]
- Rebuild docs. [Esben S. Nielsen]
- Bumped up version. [Esben S. Nielsen]
- Corrected south pole filtering bug. [Esben S. Nielsen]
- Changed link to SOEST. [Esben S. Nielsen]
- Documented project. [Esben S. Nielsen]
- Added license and docs. [Esben S. Nielsen]
- Now handles poles. [Esben S. Nielsen]
- Added docstrings. [Esben S. Nielsen]
- Added test. [Esben S. Nielsen]
- Created package. [Esben S. Nielsen]
- Restructured pixel index calculation. [Esben S. Nielsen]
- Added borders and rivers. [Esben S. Nielsen]
- First version. [Esben S. Nielsen]
- First version. [Esben S. Nielsen]
- First version. [Esben S. Nielsen]
include docs/Makefile
recursive-include docs/source *
include pycoast/tests/*.png
include pycoast/tests/*.ttf
include LICENSE.txt
include MANIFEST.in
include versioneer.py
include pycoast/version.py
Python package for adding coastlines and borders to raster images.
Look at http://code.google.com/p/pycoast/ and http://pytroll.org/ for more information.
README.rst
\ No newline at end of file
PyCoast
=======
.. image:: https://travis-ci.org/pytroll/pycoast.svg?branch=master
:target: https://travis-ci.org/pytroll/pycoast
.. image:: https://img.shields.io/pypi/v/pycoast.svg
:target: https://pypi.python.org/pypi/pycoast
Python package for adding coastlines and borders to raster images.
Installation
------------
PyCoast can be installed from PyPI using pip::
pip install pycoast
Or with conda using the conda-forge channel::
conda install -c conda-forge pycoast
Example
-------
::
>>> from PIL import Image
>>> from pycoast import ContourWriterAGG
>>> img = Image.open('BMNG_clouds_201109181715_areaT2.png')
>>> proj4_string = '+proj=stere +lon_0=8.00 +lat_0=50.00 +lat_ts=50.00 +ellps=WGS84'
>>> area_extent = (-3363403.31,-2291879.85,2630596.69,2203620.1)
>>> area_def = (proj4_string, area_extent)
>>> cw = ContourWriterAGG('/home/esn/data/gshhs')
>>> cw.add_coastlines(img, area_def, resolution='l', level=4)
>>> cw.add_rivers(img, area_def, level=5, outline='blue')
>>> cw.add_borders(img, area_def, outline=(255, 0, 0))
>>> img.show()
# Releasing PyCoast
1. checkout master
2. pull from repo
3. run the unittests
4. run `loghub` and update the `CHANGELOG.md` file:
```
loghub pytroll/pycoast -u <username> -st v<last-tag> -plg bug "Bugs fixed" -plg enhancement "Features added" -plg documentation "Documentation changes"
```
Don't forget to commit!
5. Create a tag with the new version number, starting with a 'v', eg:
```
git tag -a v0.22.45 -m "Version 0.22.45"
```
See [semver.org](http://semver.org/) on how to write a version number.
6. push changes to github `git push --follow-tags`
Make sure the new tag has been pushed.
7. Verify travis tests passed and deployed sdist to PyPI
pycoast (1.0.0+dfsg-5) UNRELEASED; urgency=medium
pycoast (1.2.1+dfsg-1) UNRELEASED; urgency=medium
[ Bas Couwenberg ]
* Bump Standards-Version to 4.2.1, no changes.
* Update watch file to limit matches to archive path.
* Add patch to support pyshp 2.0.0.
[ Antonio Valentino ]
* New upstream release.
* debian/copyright
- update copyright file
* debian/patches
- drop pyshp-2.0.0.patch, no longer necessary
- refresh remaining patches
-- Bas Couwenberg <sebastic@debian.org> Sun, 05 Aug 2018 20:46:24 +0200
pycoast (1.0.0+dfsg-4) unstable; urgency=medium
......
......@@ -12,13 +12,18 @@ Files-Excluded: docs/build/*
pycoast/tests/test_data/shapes/*
Files: *
Copyright: 2011-2016, Esben S. Nielsen <esn@dmi.dk>
Copyright: 2011-2018, PyCoast Developers
2011-2016, Esben S. Nielsen <esn@dmi.dk>
2011-2015, Hróbjartur Þorsteinsson
2011-2015, Stefano Cerino
2011-2015, Katja Hungershofer
2011-2015, Panu Lahtinen
License: GPL-3+
Files: versioneer.py
Copyright: 2018, Brian Warner
License: CC0-1.0
Files: pycoast/tests/test_data/DejaVuSerif.ttf
Copyright: 2003, Bitstream, Inc.
License: Bitstream
......@@ -40,6 +45,17 @@ Files: debian/*
Copyright: 2014, Antonio Valentino <antonio.valentino@tiscali.it>
License: GPL-3+
License: CC0-1.0
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
.
You should have received a copy of the CC0 Public Domain Dedication along with
this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
.
On Debian systems, the complete text of the CC0 1.0 Universal license can be
found in ‘/usr/share/common-licenses/CC0-1.0’.
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
......@@ -7,14 +7,14 @@ Subject: Skip tests that use shapes
1 file changed, 1 insertion(+)
diff --git a/pycoast/tests/test_pycoast.py b/pycoast/tests/test_pycoast.py
index 9cc8348..463c7bf 100644
index 976bb61..3788afc 100644
--- a/pycoast/tests/test_pycoast.py
+++ b/pycoast/tests/test_pycoast.py
@@ -317,6 +317,7 @@ class TestPIL(TestPycoast):
@@ -327,6 +327,7 @@ class TestPIL(TestPycoast):
self.assertTrue(fft_metric(grid_data, res),
'Writing of nh polygons failed')
+ @unittest.skip('dataset not available: test_data/shapes/Metareas.shp')
def test_add_shapefile_shapes(self):
from pycoast import ContourWriterPIL
grid_img = Image.open(os.path.join(os.path.dirname(__file__),
'brazil_shapefiles.png'))
Description: Use a tempfile for the dummy shape objects.
Required for pyshp >= 2.0.0.
Author: Bas Couwenberg <sebastic@debian.org>
Bug: https://github.com/pytroll/pycoast/issues/17
Forwarded: https://github.com/pytroll/pycoast/pull/18
--- a/pycoast/cw_base.py
+++ b/pycoast/cw_base.py
@@ -24,6 +24,7 @@
import os
import shapefile
+import tempfile
import numpy as np
from PIL import Image, ImageFont
import pyproj
@@ -252,7 +253,8 @@ class ContourWriterBase(object):
lin_lons = np.arange(lon_min, lon_max + Dlon / 5.0, Dlon / 10.0)
# create dummpy shape object
- tmpshape = shapefile.Writer("")
+ tmpfile = tempfile.mkstemp()[1]
+ tmpshape = shapefile.Writer(tmpfile)
# MINOR LINES ######
if not kwargs['minor_is_tick']:
@@ -449,6 +451,7 @@ class ContourWriterBase(object):
self._draw_line(draw,
index_array.flatten().tolist(),
**kwargs)
+ os.unlink(tmpfile)
self._finalize(draw)
def _find_bounding_box(self, xys):
0001-Skip-tests-that-use-shapes.patch
pyshp-2.0.0.patch
The :mod:`pycoast` API
===================
Pycoast
-------
.. automodule:: pycoast
:members:
:undoc-members:
pycoast package
===============
Submodules
----------
pycoast.cw\_agg module
----------------------
.. automodule:: pycoast.cw_agg
:members:
:undoc-members:
:show-inheritance:
pycoast.cw\_base module
-----------------------
.. automodule:: pycoast.cw_base
:members:
:undoc-members:
:show-inheritance:
pycoast.cw\_pil module
----------------------
.. automodule:: pycoast.cw_pil
:members:
:undoc-members:
:show-inheritance:
pycoast.version module
----------------------
.. automodule:: pycoast.version
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: pycoast
:members:
:undoc-members:
:show-inheritance:
......@@ -10,14 +10,17 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
#
# To generate apidoc modules:
# sphinx-apidoc -f -T -o source/api ../pycoast ../pycoast/tests
import sys, os
import imp
import os
import sys
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../../'))
# -- General configuration -----------------------------------------------------
......@@ -26,8 +29,8 @@ import imp
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.todo', 'sphinx.ext.coverage']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage',
'sphinx.ext.doctest', 'sphinx.ext.napoleon']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
......@@ -50,11 +53,11 @@ copyright = u'2012, Esben S. Nielsen'
# built documents.
#
current_version = imp.load_source('pycoast.version', '../../pycoast/version.py')
from pycoast import __version__
# The short X.Y version.
version = current_version.__version__
version = __version__.split('+')[0]
# The full version, including alpha/beta/rc tags.
release = current_version.__version__
release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......@@ -218,3 +221,15 @@ man_pages = [
('index', 'pycoast', u'pycoast Documentation',
[u'Esben S. Nielsen'], 1)
]
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'numpy': ('https://docs.scipy.org/doc/numpy', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
'xarray': ('https://xarray.pydata.org/en/stable', None),
'dask': ('https://dask.pydata.org/en/latest', None),
'pyresample': ('https://pyresample.readthedocs.io/en/stable', None),
'trollsift': ('https://trollsift.readthedocs.io/en/stable', None),
'trollimage': ('https://trollimage.readthedocs.io/en/stable', None),
'pillow': ('https://pillow.readthedocs.io/en/stable', None),
}