Skip to content

Commit

Permalink
porting scaler to niquests
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Oct 8, 2024
1 parent e7e7886 commit e9c6025
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion images/node-placeholder-scaler/requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
certifi==2024.07.04
DateTime
ical==5.0.0
requests
niquests==3.7.2
ruamel.yaml
urllib3==2.2.2
45 changes: 26 additions & 19 deletions images/node-placeholder-scaler/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,37 @@
annotated-types==0.7.0
# via pydantic
certifi==2024.7.4
# via
# -r requirements.in
# requests
# via -r requirements.in
charset-normalizer==3.3.2
# via requests
# via niquests
datetime==5.5
# via -r requirements.in
emoji==2.12.1
emoji==2.14.0
# via ical
h11==0.14.0
# via urllib3-future
ical==5.0.0
# via -r requirements.in
idna==3.7
# via requests
pydantic==2.8.2
idna==3.10
# via niquests
jh2==5.0.3
# via urllib3-future
kiss-headers==2.4.3
# via niquests
niquests==3.7.2
# via -r requirements.in
pydantic==2.9.2
# via ical
pydantic-core==2.20.1
pydantic-core==2.23.4
# via pydantic
pyparsing==3.1.2
pyparsing==3.1.4
# via ical
python-dateutil==2.9.0.post0
# via ical
pytz==2024.1
pytz==2024.2
# via datetime
requests==2.32.3
# via -r requirements.in
qh3==1.2.0
# via urllib3-future
ruamel-yaml==0.18.6
# via -r requirements.in
ruamel-yaml-clib==0.2.8
Expand All @@ -40,16 +46,17 @@ six==1.16.0
# via python-dateutil
typing-extensions==4.12.2
# via
# emoji
# pydantic
# pydantic-core
tzdata==2024.1
tzdata==2024.2
# via ical
urllib3==2.2.2
# via
# -r requirements.in
# requests
zope-interface==6.4.post2
# via -r requirements.in
urllib3-future==2.10.901
# via niquests
wassima==1.1.2
# via niquests
zope-interface==7.0.3
# via datetime

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion images/node-placeholder-scaler/scaler/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import logging
import re
import requests
import niquests as requests
import zoneinfo

from ical.calendar_stream import IcsCalendarStream
Expand Down
2 changes: 1 addition & 1 deletion images/node-placeholder-scaler/scaler/scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse
import tempfile
import subprocess
import requests
import niquests as requests
import os
from copy import deepcopy
import time
Expand Down

0 comments on commit e9c6025

Please sign in to comment.