Skip to content
Snippets Groups Projects
Commit 885cc94b authored by Jeremy M Fee's avatar Jeremy M Fee Committed by Claycomb, Abram Earl
Browse files

Add type to login.py method, update version to 1.0.x, breaking change to drop python2

parent 8304c1e0
No related branches found
No related tags found
No related merge requests found
language: python
python:
- 2.7
- 3.5
- 3.6
- 3.7
before_install:
## courtesy of http://conda.pydata.org/docs/travis.html
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
......
from __future__ import absolute_import, unicode_literals, print_function
from builtins import str
import flask
import flask_login
......@@ -60,7 +61,7 @@ class User(db.Model, flask_login.UserMixin):
@login_manager.user_loader
def _load_user(user_id):
def _load_user(user_id: str):
return User.query.filter_by(openid=user_id).first()
......
{
"name": "geomag-algorithms",
"version": "0.9.0",
"version": "1.0.0",
"homepage": "http://geomag.usgs.gov/",
"repository": "https://github.com/usgs/geomag-algorithms.git",
"description": "Geomagnetism algorithms.",
......
......@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name='geomag-algorithms',
version='0.9.0',
version='1.0.0',
description='USGS Geomag IO Library',
url='https://github.com/usgs/geomag-algorithms',
packages=[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment