Skip to content

Commit bb27421

Browse files
committed
Updates in preparation for 0.5.0
1 parent 6eda06e commit bb27421

File tree

6 files changed

+20
-29
lines changed

6 files changed

+20
-29
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python:
44
- 2.6
55
- 2.7
66
- 3.3
7+
- pypy
78

89
before_install:
910
- git submodule update --init --recursive

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
History
44
-------
55

6+
0.5.0 (2014-02-11)
7+
++++++++++++++++++
8+
9+
* Fixed missing import statements for geoip2.errors and geoip2.models.
10+
(Gustavo J. A. M. Carneiro)
11+
* Minor documentation and code cleanup
12+
* Added requirement for maxminddb v0.3.0, which includes a pure Python
13+
database reader.
14+
615
0.4.2 (2013-12-20)
716
++++++++++++++++++
817

README.rst

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ MaxMind's free `GeoLite2 databases
2222
Installation
2323
------------
2424

25-
Web Service Client Only
26-
^^^^^^^^^^^^^^^^^^^^^^^
27-
2825
To install the ``geoip2`` module, type:
2926

3027
.. code-block:: bash
@@ -38,29 +35,13 @@ source directory:
3835
3936
$ easy_install .
4037
41-
Database Reader and Web Service Client
42-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43-
44-
You must first install the `libmaxminddb C API
45-
<https://github.com/maxmind/libmaxminddb>`_. Please `see the instructions
46-
distributed with it <https://github.com/maxmind/libmaxminddb/blob/master/README.md#installing-from-a-tarball>`_.
47-
48-
After installing ``libmaxminddb``, install the ``geoip2`` module with the
49-
database reader dependencies by typing:
50-
51-
.. code-block:: bash
52-
53-
$ pip install geoip2[DB]
54-
55-
If you are not able to use pip, you may also use easy_install. To do this, you
56-
must first install `maxminddb <http://maxminddb.readthedocs.org/>`_ and
57-
`requests <http://www.python-requests.org/en/latest/>`_. Once these
58-
dependencies have been satisfied, ``cd`` to the source directory and type:
59-
60-
.. code-block:: bash
61-
62-
$ easy_install .
38+
Database Reader Extension
39+
^^^^^^^^^^^^^^^^^^^^^^^^^
6340

41+
If you wish to use the C extension for the database reader, you must first
42+
install the `libmaxminddb C API <https://github.com/maxmind/libmaxminddb>`_.
43+
Please `see the instructions distributed with it
44+
<https://github.com/maxmind/libmaxminddb/blob/master/README.md>`_.
6445

6546
Usage
6647
-----
@@ -234,11 +215,11 @@ Requirements
234215
------------
235216

236217
This code requires Python 2.6+ or 3.3+. Older versions are not supported.
218+
This library has been tested with CPython and PyPy.
237219

238220
The Requests HTTP library is also required. See
239221
<http://python-requests.org> for details.
240222

241-
242223
Versioning
243224
----------
244225

geoip2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pylint:disable=C0111
22

33
__title__ = 'geoip2'
4-
__version__ = '0.4.2'
4+
__version__ = '0.5.0'
55
__author__ = 'Gregory Oschwald'
66
__license__ = 'LGPLv2.1+'
7-
__copyright__ = 'Copyright 2013 Maxmind, Inc.'
7+
__copyright__ = 'Copyright 2014 Maxmind, Inc.'

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
requests>=2.0
2+
maxminddb>=0.3.0

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
package_dir={'geoip2': 'geoip2'},
3838
include_package_data=True,
3939
install_requires=requirements,
40-
extras_require={'DB': ['maxminddb']},
4140
tests_require=['httpretty>=0.6.1'],
4241
test_suite="tests",
4342
license=open('LICENSE').read(),

0 commit comments

Comments
 (0)