Skip to content

Commit 3d2411a

Browse files
authored
Merge pull request #11 from Ziptastic/update-for-release
Cleanup for release.
2 parents 9367517 + 15bdd1c commit 3d2411a

File tree

11 files changed

+111
-71
lines changed

11 files changed

+111
-71
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ python:
77
- "3.5"
88

99
# command to install dependencies
10-
install:
10+
install:
1111
- pip install -r requirements.txt
12+
- pip install requests_mock
13+
- pip install coverage
1214
- pip install codecov
1315
# command to run tests
1416
script: nosetests --with-coverage --cover-package=ziptastic

README.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Official Ziptastic Python Library
2+
=================================
3+
4+
5+
Python library for `GetZiptastic.com <https://www.getziptastic.com>`_
6+
---------------------------------------------------------------------
7+
8+
.. image:: https://readthedocs.org/projects/ziptastic-python/badge/?version=latest
9+
:target: http://ziptastic-python.readthedocs.org/en/latest/?badge=latest
10+
11+
.. image:: https://codecov.io/gh/ziptastic/ziptastic-python/branch/master/graph/badge.svg
12+
:target: https://codecov.io/gh/ziptastic/ziptastic-python/branch/master
13+
14+
.. image:: https://travis-ci.org/Ziptastic/ziptastic-python.svg?branch=master
15+
:target: https://travis-ci.org/Ziptastic/ziptastic-python
16+
17+
.. image:: https://circleci.com/gh/Ziptastic/ziptastic-python.png
18+
:target: https://circleci.com/gh/Ziptastic/ziptastic-python
19+
20+
Installation
21+
------------
22+
23+
>>> pip install ziptastic-python
24+
25+
26+
Running tests
27+
-------------
28+
29+
$ nosetests
30+
31+
Running tests with coverage
32+
---------------------------
33+
34+
$ nosetests --with-coverage --cover-package=ziptastic
35+
36+
37+
Usage
38+
=====
39+
40+
Forward geocoding
41+
-----------------
42+
43+
>>> from ziptastic import Ziptastic
44+
>>> api = Ziptastic('<your api key>')
45+
>>> result = api.get_from_postal_code('48867')
46+
47+
48+
Reverse geocoding
49+
-----------------
50+
51+
>>> from ziptastic import Ziptastic
52+
>>> api = Ziptastic('<your api key>')
53+
>>> result = api.get_from_coordinates('42.9934', '-84.1595')

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. ziptastic documentation master file, created by
1+
.. Ziptastic documentation master file, created by
22
sphinx-quickstart on Sat Oct 10 22:38:11 2015.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.

docs/ziptastic.rst

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
Ziptastic Python package
2-
=================
2+
========================
33

4-
ziptastic.ziptastic module
5-
--------------------------
4+
ziptastic module
5+
----------------
66

7-
.. automodule:: ziptastic.ziptastic
8-
:members:
9-
:undoc-members:
10-
:show-inheritance:
11-
12-
13-
Module contents
14-
---------------
15-
16-
.. automodule:: ziptastic.ziptastic
7+
.. automodule:: ziptastic
178
:members:
189
:undoc-members:
1910
:show-inheritance:

requirements.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
alabaster==0.7.6
2-
Babel==2.1.1
3-
coverage==4.0.1
4-
docutils==0.12
5-
funcsigs==0.4
6-
Jinja2==2.8
7-
MarkupSafe==0.23
8-
nose==1.3.7
9-
nose2==0.5.0
10-
pbr==1.8.1
11-
Pygments==2.0.2
12-
pytz==2015.6
131
requests==2.8.0
14-
requests-mock==0.6.0
15-
six==1.10.0
16-
snowballstemmer==1.2.0
17-
Sphinx==1.3.1
18-
sphinx-rtd-theme==0.1.9

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal=1

setup.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
from setuptools import setup, find_packages
2+
from codecs import open
3+
from os import path
4+
5+
6+
here = path.abspath(path.dirname(__file__))
7+
8+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
9+
long_description = f.read()
10+
11+
setup(
12+
name='ziptastic-python',
13+
version='1.0.0b1',
14+
15+
description='Official GetZiptastic.com library.',
16+
long_description=long_description,
17+
url='https://github.com/ziptastic/ziptastic-python',
18+
19+
author='Thomas Schultz',
20+
author_email='[email protected]',
21+
license='MIT',
22+
23+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
24+
classifiers=[
25+
'Development Status :: 4 - Beta',
26+
'Intended Audience :: Developers',
27+
'Topic :: Software Development :: Libraries :: Python Modules',
28+
'Topic :: Scientific/Engineering :: GIS',
29+
'Topic :: Software Development :: Libraries',
30+
'License :: OSI Approved :: MIT License',
31+
'Programming Language :: Python :: 2.7',
32+
'Programming Language :: Python :: 3.3',
33+
'Programming Language :: Python :: 3.4',
34+
'Programming Language :: Python :: 3.5',
35+
'Programming Language :: Python :: 3.6',
36+
],
37+
38+
keywords='ziptastic getziptastic geocoding forward reverse geocode GIS',
39+
packages=find_packages(exclude=['docs', 'tests']),
40+
install_requires=['requests'],
41+
extras_require={
42+
'dev': ['check-manifest'],
43+
'test': ['coverage', 'requests-mock'],
44+
},
45+
)
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from nose.tools import eq_
44
from json import loads
55

6-
from .ziptastic import Ziptastic, ZiptasticAPIKeyRequiredException
6+
from ziptastic import Ziptastic
7+
from ziptastic import ZiptasticAPIKeyRequiredException
8+
79

810
compare_v3_json = """[{"city": "Owosso", "geohash": "dpshsfsytw8k",
911
"country": "US", "county": "Shiawassee", "state": "Michigan",
File renamed without changes.

0 commit comments

Comments
 (0)