Skip to content

Commit c8bbc63

Browse files
committed
Drops support for Python 3.6, upgrade requests_cache
1 parent 6c7e33b commit c8bbc63

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
python-version: ["3.6", "3.x"]
31+
python-version: ["3.7", "3.x"]
3232
name: test-v${{matrix.python-version}}
3333

3434
steps:

mnamer/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ def request_json(
280280
"like Gecko) Chrome/79.0.3945.88 Safari/537.36"
281281
)
282282

283-
initial_cache_state = session._is_cache_disabled # yes, i'm a bad person
283+
initial_cache_state = session._disabled # yes, i'm a bad person
284284
try:
285-
session._is_cache_disabled = not cache
285+
session._disabled = not cache
286286
response = session.request(
287287
url=url,
288288
params=parameters,
@@ -297,7 +297,7 @@ def request_json(
297297
content = None
298298
status = 500
299299
finally:
300-
session._is_cache_disabled = initial_cache_state
300+
session._disabled = initial_cache_state
301301
return status, content
302302

303303

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
appdirs==1.4.*
22
babelfish==0.6.*
3-
dataclasses; python_version < '3.7'
43
guessit==3.2.*
5-
requests_cache==0.5.*
4+
requests_cache==0.8.*
65
requests==2.*
76
teletype==1.1.*
87
wheel

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
long_description_content_type="text/markdown",
2323
name="mnamer",
2424
packages=["mnamer"],
25-
python_requires="~=3.6",
25+
python_requires="~=3.7",
2626
url="https://github.com/jkwill87/mnamer",
2727
version=VERSION,
2828
)

0 commit comments

Comments
 (0)