summarylogtreecommitdiffstats
path: root/0001-Remove_python_requests_cache_as_depends.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-Remove_python_requests_cache_as_depends.patch')
-rw-r--r--0001-Remove_python_requests_cache_as_depends.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/0001-Remove_python_requests_cache_as_depends.patch b/0001-Remove_python_requests_cache_as_depends.patch
new file mode 100644
index 000000000000..2e250e49c64e
--- /dev/null
+++ b/0001-Remove_python_requests_cache_as_depends.patch
@@ -0,0 +1,60 @@
+From e42f7f7ae526450315b6e693daa6ddc9fb1c7b53 Mon Sep 17 00:00:00 2001
+From: axionl <axionl@aosc.io>
+Date: Wed, 29 Aug 2018 21:20:47 +0800
+Subject: [PATCH 1/2] Remove_python_requests_cache_as_depends
+
+---
+ NEMbox/api.py | 7 +------
+ requirements.txt | 1 -
+ setup.py | 1 -
+ 3 files changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/NEMbox/api.py b/NEMbox/api.py
+index da4c0fb..6a4855b 100644
+--- a/NEMbox/api.py
++++ b/NEMbox/api.py
+@@ -10,19 +10,14 @@ from __future__ import (
+ )
+
+ import json
++import requests
+ from collections import OrderedDict
+ from http.cookiejar import LWPCookieJar
+-
+-import requests
+-import requests_cache
+-
+ from .config import Config
+ from .storage import Storage
+ from .encrypt import encrypted_request
+ from . import logger
+
+-requests_cache.install_cache('nemcache', expire_after=3600)
+-
+ log = logger.getLogger(__name__)
+
+ # 歌曲榜单地址
+diff --git a/requirements.txt b/requirements.txt
+index eda4cbc..fe8c209 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -1,4 +1,3 @@
+ requests
+-requests-cache
+ pycryptodomex
+ future
+diff --git a/setup.py b/setup.py
+index b457293..babf0ff 100644
+--- a/setup.py
++++ b/setup.py
+@@ -53,7 +53,6 @@ setup(
+ license=about['__license__'],
+ packages=find_packages(),
+ install_requires=[
+- 'requests-cache',
+ 'pycryptodomex',
+ 'future',
+ ],
+--
+2.18.0
+