...
 
Commits (4)
......@@ -67,6 +67,13 @@ Find out more features by running:
Find us on: https://gitlab.com/qrmr/qrmr
Reminder for QRMR dev's on how to sign:
---------------------------------------
Using keybase:
``keybase pgp sign -d -i dist/qrmr-0.4.2.tar.gz -o dist/qrmr-0.4.2.tar.gz.asc``
Resources:
----------
......
__author__ = 'Alexander L. de Goeij'
__version__ = '0.4.5'
__version__ = '0.4.2'
......@@ -38,12 +38,12 @@ import sys
import os
import logging
import argparse
import configparser
from configparser import MissingSectionHeaderError
from socket import gaierror
import urllib.request
import json
import pip
import configparser
from configparser import MissingSectionHeaderError
import requests
from qrmr import __version__
import colorlog
......@@ -84,11 +84,10 @@ def check_upgrade():
currently not enabled auto upgrading as it has not been extensively tested yet
"""
url = 'https://pypi.python.org/pypi/qrmr/json'
req = urllib.request.Request(url)
req = requests.get(url)
try:
res = urllib.request.urlopen(req).read()
response = json.loads(res.decode('utf-8'))
response = req.json()
logger.debug(response)
pypi_version = response["info"]["version"]
local_version = ""
......@@ -103,7 +102,7 @@ def check_upgrade():
if pypi_version > local_version:
logger.warning(
"Newer version of QRMR available (%s), strongly suggested to run `pip install -U qrmr`!")
"Newer version of QRMR available, strongly suggested to run `pip install -U qrmr`!")
elif pypi_version == local_version:
logger.info("You are running the latest version of QRMR.")
else:
......
......@@ -42,7 +42,8 @@ setup(
keywords="aws aws-cli aws-sdk cli terminal mfa 2fa multi-factor-authentication iam-credentials login otp session token",
url="https://gitlab.com/qrmr/qrmr",
packages=find_packages(),
install_requires=['future', 'colorlog', 'boto3'],
install_requires=['future', 'colorlog',
'boto3', 'configparser', 'requests'],
long_description=open('README.rst').read(),
classifiers=[
"Development Status :: 4 - Beta",
......