diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..26da42c --- /dev/null +++ b/.coverage @@ -0,0 +1 @@ +!coverage.py: This is a private format, don't read it directly!{"lines":{"/home/ipaullly/dev/parcels/sendIT/app/__init__.py":[1,2,3,6,7,9,10,11,13],"/home/ipaullly/dev/parcels/sendIT/app/api/__init__.py":[1],"/home/ipaullly/dev/parcels/sendIT/app/api/v1/__init__.py":[1,2,3,5,7,9,10,11,12],"/home/ipaullly/dev/parcels/sendIT/app/api/v1/views.py":[1,2,3,5,7,10,11,37,47,50,51,61,64,65,72,75,76,15,16,17,18,19,20,22,23,24,32,33,34,35,25,28,29,30,31,41,42,43,44,45,66,67,68,69,70,55,56,57,58,59,80,81,82,83,84],"/home/ipaullly/dev/parcels/sendIT/app/api/v1/models.py":[2,4,7,8,12,27,33,40,48,9,10,17,18,19,20,21,22,23,25,31,52,53,37,38,44,45,46],"/home/ipaullly/dev/parcels/sendIT/app/auth/__init__.py":[1],"/home/ipaullly/dev/parcels/sendIT/app/auth/v1/__init__.py":[1,2,3,5,7,9,10],"/home/ipaullly/dev/parcels/sendIT/app/auth/v1/views.py":[1,2,3,5,8,9,28,31,32,33,34,35,37,38,39,52,54,56,10,11,12,14,15,16,18,19,20,40,41,42,44,46,23,26],"/home/ipaullly/dev/parcels/sendIT/app/auth/v1/models.py":[1,2,3,4,6,9,10,15,18,11,12,13,14,20,23,24,31,34,35,42,52,60,67,86,102,107,111,36,37,38,39,40,46,47,48,49,50,64,65,108,109,110,56,57,71,73,74,75,77,78,79,80,83,84],"/home/ipaullly/dev/parcels/sendIT/app/tests/__init__.py":[1],"/home/ipaullly/dev/parcels/sendIT/app/tests/v1/__init__.py":[1],"/home/ipaullly/dev/parcels/sendIT/app/tests/v1/test_edgecases.py":[1,2,3,5,8,9,23,32,13,14,16,17,18,19,20,27,28,29,30],"/home/ipaullly/dev/parcels/sendIT/app/tests/v1/test_login.py":[1,2,3,5,8,9,21,31,39,10,11,13,14,17,18,33,34,35,36,23,24,25,26,27,28,29],"/home/ipaullly/dev/parcels/sendIT/app/tests/v1/test_parcels.py":[1,2,3,5,8,9,23,32,43,53,63,75,13,14,16,17,18,19,20,36,37,38,39,40,41,57,58,59,60,61,47,48,49,50,51,27,28,29,30,67,68,69,70,71],"/home/ipaullly/dev/parcels/sendIT/app/tests/v1/test_register.py":[1,2,3,5,8,9,22,28,36,10,11,13,14,17,18,29,30,31,32,33,34,23,24,25]}} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7281740 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*__pycache__ +venv +.vscode +*.pytest_cache +db_config.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cdebdfe --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: python +python: + - "3.6.5" +install: + - pip install --upgrade pip && pip install -r requirements.txt + - pip install coveralls + - pip install pytest +script: + - pytest + +after_script: + - coveralls + +after_success: + - codecov + diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..62e430a --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn 'app:create_app()' \ No newline at end of file diff --git a/README.md b/README.md index 5970e9f..15861ad 100644 --- a/README.md +++ b/README.md @@ -1 +1,73 @@ # sendIT +[![Maintainability](https://api.codeclimate.com/v1/badges/db4df351dbe833d147b0/maintainability)](https://codeclimate.com/github/ipaullly/sendIT/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/db4df351dbe833d147b0/test_coverage)](https://codeclimate.com/github/ipaullly/sendIT/test_coverage) [![Build Status](https://travis-ci.com/ipaullly/sendIT.svg?branch=ft-GET-user-orders-161858618)](https://travis-ci.com/ipaullly/sendIT) [![Coverage Status](https://coveralls.io/repos/github/ipaullly/sendIT/badge.svg?branch=master)](https://coveralls.io/github/ipaullly/sendIT?branch=master) + +The sendIT app is built using flask to make RESTful APIs to achieve basic functionalities for the app + +## RESTful API Endpoints for sendIT + + +| Method | Endpoint | Description | +| ------------- | ------------- | ------------- | +| `POST` | `/api/v1/parcels` | Create a new parcel order | +| `GET` | `/api/v1/parcels` | Get a all parcel delivery orders | +| `GET` | `/api/v1/parcels/` | Get a single delivery order by id | +| `POST` | `/auth/v1/register` | Register a new user | +| `POST` | `/auth/v1/login` | log a user into account | +| `PUT` | `/api/v1/parcels//cancel` | Cancel a specific parcel delivery order | + + +# Development Configuration + +Ensure that you have python 3.6.5, pip and virtualenv running + +# Initial Setup + +Create a project directory in your local machine + +``` +mkdir sendIT +``` + +Move into your directory: + +``` +cd sendIT +``` + +## Initialize a virtual python Environment to House all your Dependencies + +create the virtual environment + +``` +python3 -p virtualenv venv +``` +activate the environment before cloning the project from github + +``` +source venv/bin/activate +``` + +## Clone and Configure a the sendIT flask Project + +Provided you have a github account, login before entering the command to create a local copy of the repo + +``` +git clone https://github.com/ipaullly/sendIT.git +``` + +Next, install the requirements by typing: + +``` +pip install -r requirements.txt +``` + +## Testing +To test the endpointsensure that the following tools are available the follow steps below + ### Tools: + Postman + +### Commands + The application was tested using `pytest` and coveralls. + + pytest --cov app diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..fe9c30a --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,13 @@ +from flask import Flask, Blueprint +from .api.v1 import version1 +from .auth.v1 import auth +#from db_config import create_tables, destroy_tables + +def create_app(): + app = Flask(__name__, instance_relative_config=True) + #create_tables() + app.config.from_pyfile('config.py') + app.register_blueprint(version1) + app.register_blueprint(auth) + + return app \ No newline at end of file diff --git a/app/__init__.pyc b/app/__init__.pyc new file mode 100644 index 0000000..0419f2d Binary files /dev/null and b/app/__init__.pyc differ diff --git a/app/api/__init__.py b/app/api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/api/v1/__init__.py b/app/api/v1/__init__.py new file mode 100644 index 0000000..c251c17 --- /dev/null +++ b/app/api/v1/__init__.py @@ -0,0 +1,12 @@ +from flask import Blueprint +from flask_restful import Api +from .views import ParcelList, IndividualParcel, CancelParcel, UserOrders + +version1 = Blueprint('v1', __name__, url_prefix="/api/v1") + +api = Api(version1) + +api.add_resource(ParcelList, '/parcels') +api.add_resource(IndividualParcel, '/parcels/') +api.add_resource(UserOrders, '/user//parcels') +api.add_resource(CancelParcel, '/parcels//cancel') diff --git a/app/api/v1/models.py b/app/api/v1/models.py new file mode 100644 index 0000000..fee0f79 --- /dev/null +++ b/app/api/v1/models.py @@ -0,0 +1,54 @@ + +parcels = [] + +class Parcels: + """ + Class with CRUD functionalities on the Parcels resource + """ + def __init__(self): + self.db = parcels + self.parcel_status = 'pending' + + def create_order(self, item, pickup, dest, pricing, username): + """ + instance method to generate new entry into delivery orders list + """ + payload = { + "id" : len(self.db) + 1, + "itemName" : item, + "pickupLocation" : pickup, + "destination" : dest, + "pricing" : pricing, + "authorId" : username, + "status" : self.parcel_status + } + self.db.append(payload) + + def order_list(self): + """ + retrieves entire list of delivery orders + """ + return self.db + + def retrieve_single_order(self, parcelID): + """ + retrieve a single order by id + """ + order_by_id = [parc for parc in self.db if parc['id'] == parcelID][0] + return order_by_id + + def cancel_order(self, ParcelID): + """ + update parcel status to cancel + """ + parcel_to_cancel = [parc for parc in self.db if parc['id'] == ParcelID] + parcel_to_cancel[0]['status'] = 'cancelled' + return parcel_to_cancel + + def get_orders_by_user(self, AuthorID): + """ + retrieve all orders by a specific user given her/his username + """ + user_orders = [parc for parc in self.db if parc['authorId'] == AuthorID][0] + return user_orders + diff --git a/app/api/v1/views.py b/app/api/v1/views.py new file mode 100644 index 0000000..e7eedfe --- /dev/null +++ b/app/api/v1/views.py @@ -0,0 +1,85 @@ +from flask_restful import Resource +from flask import make_response, jsonify, request +from .models import Parcels + +order = Parcels() + +class ParcelList(Resource): + """ + class for Create order and retrieve list of orders API endpoints + """ + def post(self): + """ + post method to add new order to list of orders + """ + data = request.get_json() + item = data['item'] + pickup = data['pickup'] + dest = data['dest'] + pricing = data['pricing'] + author = data['username'] + + try: + if " " in item: + raise Exception + elif type(pricing) is not int: + raise Exception + else: + order.create_order(item, pickup, dest, pricing, author) + return make_response(jsonify({ + "message" : "delivery order created successfully" + }), 201) + except Exception: + return make_response(jsonify({ + "message" : "wrong input format" + }), 400) + + def get(self): + """ + get method to retrieve list of all orders + """ + resp = order.order_list() + return make_response(jsonify({ + "message" : "ok", + "Delivery Orders" : resp + }), 200) + +class IndividualParcel(Resource): + """ + class for API endpoints for retrieving single order and cancelling particular order + """ + def get(self, id): + """ + get method to retrieve order by id + """ + single = order.retrieve_single_order(id) + return make_response(jsonify({ + "message" : "Ok", + "order" : single + }), 200) + +class UserOrders(Resource): + """ + class for endpoint that restrieves all the orders made by a specific user + """ + def get(self, id): + user_orders = order.get_orders_by_user(id) + return make_response(jsonify({ + "message" : "Ok", + "orders by single user" : user_orders + }), 200) + +class CancelParcel(Resource): + """ + class for endpoint to cancel parcel order + """ + def put(self, id): + """ + PUT request to update parcel status to 'cancelled' + """ + cancel_parcel = order.cancel_order(id) + return make_response(jsonify({ + "message" : "order is cancelled", + "cancelled order" : cancel_parcel + }), 201) + \ No newline at end of file diff --git a/app/auth/__init__.py b/app/auth/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/auth/v1/__init__.py b/app/auth/v1/__init__.py new file mode 100644 index 0000000..28921d7 --- /dev/null +++ b/app/auth/v1/__init__.py @@ -0,0 +1,10 @@ +from flask import Blueprint +from flask_restful import Api +from .views import Registration, SignIn + +auth = Blueprint('authV1', __name__, url_prefix="/auth/v1") + +api = Api(auth) + +api.add_resource(Registration, '/register') +api.add_resource(SignIn, '/login') diff --git a/app/auth/v1/models.py b/app/auth/v1/models.py new file mode 100644 index 0000000..1dc1f6b --- /dev/null +++ b/app/auth/v1/models.py @@ -0,0 +1,111 @@ +from datetime import datetime, timedelta +from flask import current_app +import jwt +from werkzeug.security import generate_password_hash, check_password_hash + +class MockDb(): + """ + class for a data structure database + """ + def __init__(self): + self.users = {} + self.orders = {} + self.user_no = 0 + self.entry_no = 0 + def drop(self): + self.__init__() + +db = MockDb() + +class Parent(): + """ + user class will inherit this class + """ + def update(self, data): + # Validate the contents before passing to mock database + for key in data: + setattr(self, key, data[key]) + setattr(self, 'last_updated', datetime.utcnow().isoformat()) + return self.lookup() + +class User(Parent): + """ + class to register user and generate tokens + """ + def __init__(self, email, password): + self.email = email + self.password = generate_password_hash(password) + self.id = None + self.created_at = datetime.utcnow().isoformat() + self.last_updated = datetime.utcnow().isoformat() + + def add_user(self): + """ + method to save a user's registration details + """ + setattr(self, 'id', db.user_no + 1) + db.users.update({self.id: self}) + db.user_no += 1 + db.orders.update({self.id: {}}) + return self.lookup() + + def validate_password(self, password): + """ + method to validate user password + """ + if check_password_hash(self.password, password): + return True + return False + + def lookup(self): + """ + method to jsonify object that represents user + """ + keys = ['email', 'id'] + return {key: getattr(self, key) for key in keys} + + def generate_token(self, userID): + """ + method that generates token during each login + """ + try: + payload = { + 'exp' : datetime.utcnow()+timedelta(minutes=5), + 'iat' : datetime.utcnow(), + 'id' : userID + } + token = jwt.encode( + payload, + current_app.config.get('SECRET_KEY'), + algorithm='HS256' + ) + return token + except Exception as err: + return str(err) + + @staticmethod + def decode_token(token): + """ + method to decode the token generated during login + """ + try: + #attempt to decode token using SECRET_KEY variable + payload = jwt.decode(token, current_app.config.get('SECRET_KEY')) + return payload['id'] + except jwt.ExpiredSignatureError: + # expired token returns an error string + return "Token expired. please login again to generate fresh token" + except jwt.InvalidTokenError: + #the token is not valid, throw error + return "Unworthy token. Please login to get fresh authorization" + + @classmethod + def get_user_by_email(cls, email): + """ + method for getting a user by email + """ + for user_id in db.users: + user = db.users.get(user_id) + if user.email == email: + return user + return None \ No newline at end of file diff --git a/app/auth/v1/views.py b/app/auth/v1/views.py new file mode 100644 index 0000000..8a7e45b --- /dev/null +++ b/app/auth/v1/views.py @@ -0,0 +1,56 @@ +from flask_restful import Resource +from flask import make_response,jsonify, request +from .models import User + +class Registration(Resource): + """ + class that handles registration of new user + """ + def post(self): + data = request.get_json() + email = data['email'] + password = data['password'] + + if not User.get_user_by_email(email): + new_user = User(email=email, password=password) + new_user.add_user() + + return make_response(jsonify({ + 'message' : 'you have successfully registered an account' + }), 201) + else: + response = { + 'message': 'Account with provided email exists. please login' + } + + return make_response(jsonify(response), 202) + +class SignIn(Resource): + """ + class that handles logging into user accounts and token generation + """ + def post(self): + data = request.get_json() + email = data['email'] + password = data['password'] + + try: + user = User.get_user_by_email(email) + user_id = user.id + if user and user.validate_password(password): + auth_token = user.generate_token(user_id) + if auth_token: + response = { + 'message' : 'Successfully logged in and token generated' + } + return make_response(jsonify(response), 200) + else: + response = { + 'message' : 'User with email already exists, please login' + } + return make_response(jsonify(response), 401) + except Exception: + response = { + 'message' : 'wrong input format, please enter details again' + } + return make_response(jsonify(response), 500) \ No newline at end of file diff --git a/app/tests/__init__.py b/app/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/tests/v1/__init__.py b/app/tests/v1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/tests/v1/test_edgecases.py b/app/tests/v1/test_edgecases.py new file mode 100644 index 0000000..eb342c2 --- /dev/null +++ b/app/tests/v1/test_edgecases.py @@ -0,0 +1,33 @@ +from ... import create_app +import unittest +import json + +class TestEdgeCases(unittest.TestCase): + """ + class for testing invalid input data and + """ + def setUp(self): + """ + Initialize app and define test variables + """ + create_app().testing = True + self.app = create_app().test_client() + self.dummy = { + "item" : " ", + "pickup" : "muranga", + "dest" : "house", + "pricing": 250, + "username" : "stanLee" + } + + def test_empty_strings_in_POST_create_order(self): + """ + Test whether API can create a new delivery order via POSt request + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.dummy), content_type='application/json') + result = json.loads(response.data) + self.assertEqual(response.status_code, 400) + self.assertIn('wrong input format', str(result)) + +if __name__ == "__main__": + unittest.main() \ No newline at end of file diff --git a/app/tests/v1/test_login.py b/app/tests/v1/test_login.py new file mode 100644 index 0000000..35de6a3 --- /dev/null +++ b/app/tests/v1/test_login.py @@ -0,0 +1,41 @@ +from ... import create_app +import unittest +import json + +class LoginTestCase(unittest.TestCase): + """ + test class for the registration endpoint + """ + def setUp(self): + create_app().testing = True + self.app = create_app().test_client() + self.mock_data = { + 'email' : 'test@chocoly.com', + 'password' : 'balerion' + } + self.not_user_data = { + 'email' : 'not_user@chocoly.com', + 'password' : 'silmarillion' + } + + def test_user_signin(self): + #test if a registered user can log in + res = self.app.post('/auth/v1/register', data=json.dumps(self.mock_data), content_type='application/json') + self.assertEqual(res.status_code, 201) + signin_res = self.app.post('/auth/v1/login', data=json.dumps(self.mock_data), content_type='application/json') + result = json.loads(signin_res.data) + self.assertIn('Successfully logged in', str(result)) + self.assertEqual(signin_res.status_code, 200) + self.assertTrue(result) + + def test_non_registered_user(self): + #test that unregistered user cannot log in + res = self.app.post('/auth/v1/login', data=json.dumps(self.mock_data), content_type='application/json') + result = json.loads(res.data) + self.assertIn("{'message': 'wrong input format, please enter details again'}", str(result)) + self.assertEqual(res.status_code, 500) + + +if __name__ == "__main__": + unittest.main() + \ No newline at end of file diff --git a/app/tests/v1/test_parcels.py b/app/tests/v1/test_parcels.py new file mode 100644 index 0000000..3b51d5b --- /dev/null +++ b/app/tests/v1/test_parcels.py @@ -0,0 +1,76 @@ +from ... import create_app +import unittest +import json + +class TestPracelCreation(unittest.TestCase): + """ + class for Parcels test case + """ + def setUp(self): + """ + Initialize app and define test variables + """ + create_app().testing = True + self.app = create_app().test_client() + self.data = { + "item" : "seven ballons", + "pickup" : "Biashara street", + "dest" : "Kikuyu town", + "pricing": 250, + "username" : "barnabas" + } + + def test_POST_create_delivery_order(self): + """ + Test whether API can create a new delivery order via POSt request + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.data), content_type='application/json') + result = json.loads(response.data) + self.assertEqual(response.status_code, 201) + self.assertIn('delivery order created', str(result)) + + def test_GET_delivery_orders_list(self): + """ + Test if API can retrieve a list of delivery orders + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.data), content_type='application/json') + self.assertEqual(response.status_code, 201) + response = self.app.get('/api/v1/parcels', content_type='application/json') + self.assertEqual(response.status_code, 200) + result = json.loads(response.data) + self.assertIn('seven ballons', str(result)) + + def test_GET_single_delivery_order(self): + """ + Test if API can retrieve a single delivery order by its id + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.data), content_type='application/json') + self.assertEqual(response.status_code, 201) + result = self.app.get('/api/v1/parcels/1') + self.assertEqual(result.status_code, 200) + self.assertIn('seven ballons', str(result.data)) + + def test_GET_orders_by_single_user(self): + """ + Test if API can retrieve orders made by a spefic user + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.data), content_type='application/json') + self.assertEqual(response.status_code, 201) + res = self.app.get('/api/v1/user/barnabas/parcels') + self.assertEqual(res.status_code, 200) + self.assertIn('orders by single user', str(res.data)) + + def test_PUT_cancel_delivery_order(self): + """ + Test if API can cancel order by changing order status + """ + response = self.app.post('/api/v1/parcels', data=json.dumps(self.data), content_type='application/json') + self.assertEqual(response.status_code, 201) + result = self.app.put('/api/v1/parcels/1/cancel') + self.assertEqual(result.status_code, 201) + self.assertIn('order is cancelled', str(result.data)) + +# make the tests you have written executable + +if __name__ == "__main__": + unittest.main() \ No newline at end of file diff --git a/app/tests/v1/test_register.py b/app/tests/v1/test_register.py new file mode 100644 index 0000000..ff1c012 --- /dev/null +++ b/app/tests/v1/test_register.py @@ -0,0 +1,37 @@ +from ... import create_app +import unittest +import json + +class AuthTestCase(unittest.TestCase): + """ + test class for the registration endpoint + """ + def setUp(self): + create_app().testing = True + self.app = create_app().test_client() + self.mock_data = { + 'email' : 'test@hotmail.com', + 'password' : 'holy_water' + } + self.mock_data2 = { + 'email' : 'qarth@hotmail.com', + 'password' : 'jade_sea' + } + + + def test_signup(self): + response2 = self.app.post('/auth/v1/register', data=json.dumps(self.mock_data), content_type='application/json') + res = json.loads(response2.data) + self.assertEqual("{'message': 'you have successfully registered an account'}", str(res)) + + + def test_if_registered(self): + response1 = self.app.post('/auth/v1/register', data=json.dumps(self.mock_data2), content_type='application/json') + self.assertEqual(response1.status_code, 201) + duplicate_signup = self.app.post('/auth/v1/register', data=json.dumps(self.mock_data2), content_type='application/json') + self.assertEqual(duplicate_signup.status_code, 202) + res = json.loads(duplicate_signup.data) + self.assertIn('Account with provided email exists. please login', str(res)) + +if __name__ == "__main__": + unittest.main() \ No newline at end of file diff --git a/instance/__init__.py b/instance/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/instance/__init__.pyc b/instance/__init__.pyc new file mode 100644 index 0000000..92fb1da Binary files /dev/null and b/instance/__init__.pyc differ diff --git a/instance/config.py b/instance/config.py new file mode 100644 index 0000000..d370e04 --- /dev/null +++ b/instance/config.py @@ -0,0 +1,7 @@ +class DevConfig: + """ + configuration class for development variables + """ + DEBUG = True + SECRET_KEY = '12asgRx-67fdfsh-bsghsdj-bdjd7678bd' + \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..57df97a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,37 @@ +aniso8601==4.0.1 +astroid==2.0.4 +atomicwrites==1.2.1 +attrs==18.2.0 +certifi==2018.10.15 +chardet==3.0.4 +Click==7.0 +coverage==4.5.1 +coveralls==1.5.1 +docopt==0.6.2 +Flask==1.0.2 +Flask-RESTful==0.3.6 +gunicorn==19.9.0 +idna==2.7 +isort==4.3.4 +itsdangerous==1.1.0 +Jinja2==2.10 +lazy-object-proxy==1.3.1 +MarkupSafe==1.0 +mccabe==0.6.1 +more-itertools==4.3.0 +pluggy==0.8.0 +psycopg2-binary==2.7.6 +py==1.7.0 +PyJWT==1.6.4 +pylint==2.1.1 +pytest==3.10.0 +pytest-cov==2.6.0 +python-coveralls==2.9.1 +pytz==2018.7 +PyYAML==3.13 +requests==2.20.1 +six==1.11.0 +typed-ast==1.1.0 +urllib3==1.24.1 +Werkzeug==0.14.1 +wrapt==1.10.11 diff --git a/run.py b/run.py new file mode 100644 index 0000000..0a23b5a --- /dev/null +++ b/run.py @@ -0,0 +1,3 @@ +from app import create_app + +app = create_app() diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..486fcce --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.6.5