diff --git a/.travis.yml b/.travis.yml index c43c3a4..d1f256f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,8 @@ deploy: - kwikapi/__init__.py - kwikapi/django/__init__.py - kwikapi/django/kwikapi_django.py - name: kwikapi.django-0.1 - tag_name: 0.1 + name: kwikapi.django-0.2 + tag_name: 0.2 on: repo: deep-compute/kwikapi.django - provider: pypi diff --git a/README.md b/README.md index f3ee4f8..8426638 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $ pip install kwikapi[django] ### Create a Django project -(Ref: https://docs.djangoproject.com/en/1.9/intro/tutorial01/) +(Ref: https://docs.djangoproject.com/en/1.11/intro/tutorial01/) ```bash $ django-admin startproject django_kwikapi @@ -57,7 +57,7 @@ urlpatterns = [ from django.conf.urls import url, include from . import views -from kwikapi_django import RequestHandler +from kwikapi.django import RequestHandler urlpatterns = [ url(r'api/', RequestHandler(views.api).handle_request), @@ -74,17 +74,17 @@ from kwikapi import API from logging import Logger class BaseCalc(): - def add(self, request, a: int, b: int): + def add(self, a: int, b: int) -> int: return a + b - def subtract(self, request, a: int, b: int): + def subtract(self, a: int, b: int) -> int: return a - b class StandardCalc(): - def multiply(self, request, a: int, b: int): + def multiply(self, a: int, b: int) -> int: return a * b - def divide(self, request, a: int, b: int): + def divide(self, a: int, b: int) -> float: return a / b api = API(Logger, default_version='v1') diff --git a/setup.py b/setup.py index 88fdf80..e97a1e3 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.1' +version = '0.2' setup( name="kwikapi-django", version=version,