Skip to content

Commit

Permalink
unsecure warnings for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nginsburg committed Feb 18, 2020
1 parent 77d4a90 commit 6b7c016
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include versioneer.py
include view/_version.py
include librespyte/_version.py
File renamed without changes.
4 changes: 2 additions & 2 deletions view/_version.py → librespyte/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def get_config():
cfg.VCS = "git"
cfg.style = "pep440"
cfg.tag_prefix = ""
cfg.parentdir_prefix = "view"
cfg.versionfile_source = "view/_version.py"
cfg.parentdir_prefix = "librespyte"
cfg.versionfile_source = "librespyte/_version.py"
cfg.verbose = False
return cfg

Expand Down
6 changes: 5 additions & 1 deletion view/rest.py → librespyte/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import re
import yaml
import requests
import urllib3
from asciimatics.widgets import Button, Divider, DropdownList, Frame, Layout, Text, \
TextBox, VerticalDivider, PopUpDialog
from asciimatics.exceptions import StopApplication
urllib3.disable_warnings()

def validate(test_url):
"""ensures url is valid"""
Expand Down Expand Up @@ -116,7 +118,9 @@ def _send(self):
req = requests.request(method,
self.data['url'],
data=data,
headers=headers)
headers=headers,
verify=False
)
self.resp_headers.value = yaml.dump(dict(req.headers), allow_unicode=True)
self.response.value = yaml.dump(req.json(), allow_unicode=True)
self.screen.refresh()
Expand Down
2 changes: 1 addition & 1 deletion respyte.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.exceptions import ResizeScreenError
from view.rest import RestView
from librespyte.rest import RestView

def parse():
"""adds and parses arguments"""
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ scripts =
[versioneer]
VCS = git
style = pep440
versionfile_source = view/_version.py
versionfile_build = view/_version.py
versionfile_source = librespyte/_version.py
versionfile_build = librespyte/_version.py
tag_prefix =
parentdir_prefix = view
parentdir_prefix = librespyte

0 comments on commit 6b7c016

Please sign in to comment.