Skip to content

Commit

Permalink
[FIX] Fix requests triggering ImportError
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Jun 28, 2019
1 parent c0a5f06 commit c5e5b00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from platform import platform
from urllib.parse import quote

import requests
from bear import NAME, VERSION

ROOT = dirname(abspath(__file__))
Expand Down Expand Up @@ -80,6 +79,8 @@ def create_executable_linux():

def create_github_release():
"""Draft a new release for a tag (application version) on GitHub."""
import requests

result = False
resp = requests.post(
f'{GITHUB_API}/repos/{GITHUB_REPO}/releases', data=json.dumps({
Expand Down Expand Up @@ -107,8 +108,9 @@ def create_github_release():

def upload_executable_linux():
"""Upload GNU/Linux executable to GitHub release page."""
result = False
import requests

result = False
resp = requests.get(
f'{GITHUB_API}/repos/{GITHUB_REPO}/releases/tags/{VERSION}',
headers={
Expand Down

0 comments on commit c5e5b00

Please sign in to comment.