Skip to content

Commit 020295e

Browse files
authored
Merge pull request #508 from molinav/feature-refactoring
Refactor top-level files
2 parents cc150e0 + 403c19f commit 020295e

File tree

6 files changed

+65
-46
lines changed

6 files changed

+65
-46
lines changed

.requirements-2.6.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

Changelog renamed to CHANGELOG

File renamed without changes.

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Copyright (C) 2011 Jeffrey Whitaker
2+
3+
Permission to use, copy, modify, and distribute this software and its
4+
documentation for any purpose and without fee is hereby granted,
5+
provided that the above copyright notices appear in all copies and that
6+
both the copyright notices and this permission notice appear in
7+
supporting documentation.
8+
9+
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
10+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
11+
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
12+
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
13+
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15+
PERFORMANCE OF THIS SOFTWARE.

MANIFEST.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
include FAQ
2-
include README
2+
include README.md
33
include MANIFEST.in
4-
include LICENSE_proj4
5-
include LICENSE_pyshp
4+
include LICENSE
65
include LICENSE_data
6+
include LICENSE_epsg
77
include LICENSE_geos
88
include API_CHANGES
99
include KNOWN_BUGS
10-
include Changelog
10+
include CHANGELOG
1111
include setup.py
1212
include nad2bin.c
1313
include src/*
@@ -94,8 +94,6 @@ include examples/README
9494
include lib/mpl_toolkits/__init__.py
9595
include lib/mpl_toolkits/basemap/__init__.py
9696
include lib/mpl_toolkits/basemap/proj.py
97-
include lib/mpl_toolkits/basemap/pyproj.py
98-
include lib/mpl_toolkits/basemap/shapefile.py
9997
include lib/mpl_toolkits/basemap/cm.py
10098
include lib/mpl_toolkits/basemap/solar.py
10199
include lib/mpl_toolkits/basemap/test.py

README.md

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,50 @@ using matplotlib.
1212

1313
* matplotlib
1414

15-
* numpy
15+
* numpy
1616

1717
* [pyproj](https://github.com/jswhit/pyproj)
1818

1919
* [pyshp](https://github.com/GeospatialPython/pyshp)
2020

2121
* The GEOS (Geometry Engine - Open Source) library (version 3.1.1 or higher).
22-
Source code is included in the geos-3.3.3 directory.
22+
Source code is included in the `geos-3.3.3` directory.
2323

24-
* On linux, if your python was installed via a package management system, make
25-
sure the corresponding "python-dev" package is also installed. Otherwise, you
26-
may not have the python header (`Python.h`), which is required to build python
24+
* On Linux, if your Python was installed via a package management system, make
25+
sure the corresponding `python-dev` package is also installed. Otherwise, you
26+
may not have the Python header (`Python.h`), which is required to build Python
2727
C extensions.
2828

2929
### Optional
3030

31-
* [OWSLib](https://github.com/geopython/OWSLib) (optional) It is needed
32-
for the BaseMap.wmsimage function.
31+
* [OWSLib](https://github.com/geopython/OWSLib) (optional) It is needed for
32+
the `BaseMap.wmsimage` function.
3333

34-
* [Pillow](https://python-pillow.github.io/) (optional) It is
35-
needed for Basemap warpimage, bluemarble, shadedrelief, and etop methods.
36-
PIL should work on Python 2.x. Pillow is a maintained fork of PIL.
34+
* [Pillow](https://python-pillow.github.io/) (optional) It is needed for
35+
Basemap warpimage, bluemarble, shadedrelief, and etop methods. PIL should
36+
work on Python 2.x. Pillow is a maintained fork of PIL.
3737

3838
## Copyright
3939

40-
Source code for the GEOS library is
41-
included in the `geos-3.3.3` directory under the terms given in
42-
LICENSE_geos.
40+
Source code for the GEOS library is included in the `geos-3.3.3` directory
41+
under the terms given in `LICENSE_geos`.
4342

44-
The land-sea mask, coastline, lake, river and political boundary data are extracted
45-
from datasets provided with the [Generic Mapping Tools (GMT)](http://gmt.soest.hawaii.edu)
46-
and are included under the terms given in LICENSE_data.
43+
The land-sea mask, coastline, lake, river and political boundary data are
44+
extracted from datasets provided with the
45+
[Generic Mapping Tools (GMT)](http://gmt.soest.hawaii.edu) and are included
46+
under the terms given in `LICENSE_data`.
4747

48-
Everything else (including `src/_geos.c`, and `src/_geos.pyx`):
48+
Everything else (including `src/_geos.c` and `src/_geos.pyx`) is licensed under
49+
the terms given in `LICENSE`:
4950

50-
copyright (c) 2011 by Jeffrey Whitaker.
51+
Copyright (C) 2011 Jeffrey Whitaker
5152

5253
Permission to use, copy, modify, and distribute this software and its
5354
documentation for any purpose and without fee is hereby granted,
5455
provided that the above copyright notices appear in all copies and that
5556
both the copyright notices and this permission notice appear in
5657
supporting documentation.
58+
5759
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
5860
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
5961
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
@@ -62,44 +64,44 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6264
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6365
PERFORMANCE OF THIS SOFTWARE.
6466

65-
## Documentation
67+
## Documentation
6668

67-
see http://matplotlib.github.com/basemap/
69+
See http://matplotlib.github.com/basemap/
6870

69-
see scripts in `examples` directory for example usage.
71+
See scripts in `examples` directory for example usage.
7072

71-
read the FAQ and/or email the matplotlib-users mailing list if
72-
you have problems or questions.
73+
Read the FAQ and/or email the matplotlib-users mailing list if you have
74+
problems or questions.
7375

7476
## Install
7577

76-
0. Install pre-requisite python modules numpy and matplotlib.
78+
0. Install pre-requisite Python modules numpy and matplotlib.
7779

78-
1. Then download `basemap-X.Y.Z.tar.gz` (approx 100 mb) from
79-
the [GitHub Releases](https://github.com/matplotlib/basemap/releases) page, unpack and cd to basemap-X.Y.Z.
80+
1. Then download `basemap-X.Y.Z.tar.gz` (approx 100 MB) from the
81+
[GitHub Releases](https://github.com/matplotlib/basemap/releases) page,
82+
unpack and `cd` to `basemap-X.Y.Z`.
8083

81-
2. Install the GEOS library. If you already have it on your
82-
system, just set the environment variable `GEOS_DIR` to point to the location
83-
of libgeos_c and geos_c.h (if libgeos_c is in `/usr/local/lib` and
84-
geos_c.h is in `/usr/local/include`, set GEOS_DIR to `/usr/local`).
85-
Then go to step (3). If you don't have it, you can build it from
86-
the source code included with basemap by following these steps:
84+
2. Install the GEOS library. If you already have it on your system, just
85+
set the environment variable `GEOS_DIR` to point to the location of `libgeos_c`
86+
and `geos_c.h` (if `libgeos_c` is in `/usr/local/lib` and `geos_c.h` is in
87+
`/usr/local/include`, set `GEOS_DIR` to `/usr/local`). Then go to step (3).
88+
If you don't have it, you can build it from the source code included with
89+
basemap by following these steps:
8790

8891
```
8992
> cd geos-3.3.3
9093
> export GEOS_DIR=<where you want the libs and headers to go>
9194
A reasonable choice on a Unix-like system is /usr/local, or
9295
if you don't have permission to write there, your home directory.
93-
> ./configure --prefix=$GEOS_DIR
96+
> ./configure --prefix=$GEOS_DIR
9497
> make; make install
9598
```
9699

97-
3. cd back to the top level basemap directory (basemap-X.Y.Z) and
98-
run the usual `python setup.py install`. Check your installation
99-
by running "from mpl_toolkits.basemap import Basemap" at the python
100-
prompt.
100+
3. `cd` back to the top level basemap directory (`basemap-X.Y.Z`) and run
101+
the usual `python setup.py install`. Check your installation by running
102+
``"from mpl_toolkits.basemap import Basemap"`` at the Python prompt.
101103

102-
4. To test, cd to the examples directory and run `python simpletest.py`.
104+
4. To test, `cd` to the examples directory and run `python simpletest.py`.
103105
To run all the examples (except those that have extra dependencies
104106
or require an internet connection), execute `python run_all.py`.
105107

@@ -115,4 +117,8 @@ Ben Root <[email protected]>
115117

116118
## Thanks
117119

118-
Special thanks to John Hunter, Andrew Straw, Eric Firing, Rob Hetland, Scott Sinclair, Ivan Lima, Erik Andersen, Michael Hearne, Jesper Larsen, Ryan May, David Huard, Mauro Cavalcanti, Jonas Bluethgen, Chris Murphy, Pierre Gerard-Marchant, Christoph Gohlke, Eric Bruning, Stephane Raynaud, Tom Loredo, Patrick Marsh, Phil Elson, and Henry Hammond for valuable contributions.
120+
Special thanks to John Hunter, Andrew Straw, Eric Firing, Rob Hetland, Scott
121+
Sinclair, Ivan Lima, Erik Andersen, Michael Hearne, Jesper Larsen, Ryan May,
122+
David Huard, Mauro Cavalcanti, Jonas Bluethgen, Chris Murphy, Pierre
123+
Gerard-Marchant, Christoph Gohlke, Eric Bruning, Stephane Raynaud, Tom Loredo,
124+
Patrick Marsh, Phil Elson, and Henry Hammond for valuable contributions.

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
unittest2
12
netCDF4
23
pillow

0 commit comments

Comments
 (0)