From 8833175bb4016fe527baa231dff06932fed581af Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 Oct 2021 14:47:28 +1000 Subject: [PATCH] strip extras from requirements.txt The extra was preventing use as a pip constraints file. --- pip/requirements.txt | 10 +++++----- pip/update.py | 8 +++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pip/requirements.txt b/pip/requirements.txt index f390f7cf2..e1e12c852 100644 --- a/pip/requirements.txt +++ b/pip/requirements.txt @@ -33,12 +33,12 @@ decorator==5.1.0 # via -r requirements.in distro==1.6.0 # via -r requirements.in -flask-cors==3.0.10 - # via -r requirements.in flask==2.0.1 # via # -r requirements.in # flask-cors +flask-cors==3.0.10 + # via -r requirements.in fluent.syntax==0.18.1 # via # -r requirements.in @@ -67,14 +67,14 @@ mccabe==0.6.1 # via pylint mock==4.0.3 # via -r requirements.in +mypy==0.910 + # via -r requirements.in mypy-extensions==0.4.3 # via # black # mypy mypy-protobuf==2.10 # via -r requirements.in -mypy==0.910 - # via -r requirements.in orjson==3.6.4 # via -r requirements.in packaging==21.0 @@ -115,7 +115,7 @@ pywin32==301 ; sys_platform == "win32" # via -r requirements.in regex==2021.9.30 # via black -requests[socks]==2.26.0 +requests==2.26.0 # via -r requirements.in send2trash==1.8.0 # via -r requirements.in diff --git a/pip/update.py b/pip/update.py index 68d862faf..493bbff8d 100644 --- a/pip/update.py +++ b/pip/update.py @@ -17,6 +17,12 @@ cli.add_command(compile.cli, "compile") print("Updating deps...") os.chdir("pip") -sys.argv[1:] = ["compile", "--allow-unsafe", "--upgrade", "--no-header"] +sys.argv[1:] = [ + "compile", + "--allow-unsafe", + "--upgrade", + "--no-header", + "--strip-extras", +] cli()