Skip to content

Commit

Permalink
Bumping to 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcustodio committed Oct 12, 2014
1 parent 85aafd6 commit f30692a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env/
htmlcov/
lib/
lib64/
MANIFEST
nosetests.xml
parts/
pip-delete-this-directory.txt
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ A Python implementation of Google's Encoded Polyline Algorithm Format
(http://goo.gl/PvXf8Y). This is essentially a port of
https://github.com/mapbox/polyline built with Python 2 and 3 support in mind.

The documentation for ``polyline`` can be found at
http://polyline.readthedocs.org/.

License
-------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# The short X.Y version.
version = '1.0'
# The full version, including alpha/beta/rc tags.
release = '1.0.0-dev'
release = '1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
10 changes: 6 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ https://github.com/mapbox/polyline built with Python 2 and 3 support in mind.
Installation
============

`polyline` can be installed using `pip`:
``polyline`` can be installed using ``pip`` or ``easy_install``::

pip install polyline
$ pip install polyline
or
$ easy_install polyline

API Documentation
=================
Expand All @@ -31,7 +33,7 @@ Encoding

To get the encoded polyline representation of a given set of coordinates::

from polyline.codec import PolylineCodec
from polyline import PolylineCodec
PolylineCodec().encode([(38.5, -120.2), (40.7, -120.9), (43.2, -126.4)])

This should return ``_p~iF~ps|U_ulL~ugC_hgN~eq`@``.
Expand All @@ -41,7 +43,7 @@ Decoding

To get the set of coordinates reprented by a given encoded polyline string::

from polyline.codec import PolylineCodec
from polyline import PolylineCodec
PolylineCodec().decode('u{~vFvyys@fS]')

This should return ``[(40.63179, -8.65708), (40.62855, -8.65693)]``.
Expand Down
4 changes: 3 additions & 1 deletion polyline/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__version__ = '1.0.0-dev'
__version__ = '1.0'

from polyline.codec import PolylineCodec # NOQA
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
except ImportError:
from distutils.core import setup

import polyline

desc = "A Python implementation of Google's Encoded Polyline Algorithm Format."

with open('README.rst', 'r') as f:
Expand All @@ -22,7 +20,7 @@

setup(
name='polyline',
version=polyline.__version__,
version='1.0',
description=desc,
long_description=long_desc,
author='Bruno M. Custódio',
Expand All @@ -35,7 +33,7 @@
license='MIT',
zip_safe=False,
classifiers=(
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
Expand Down

0 comments on commit f30692a

Please sign in to comment.