Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Intall pip and pip-tools in upgrade script #371

Merged
merged 2 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ COMMON_CONSTRAINTS_TXT=requirements/common_constraints.txt
$(COMMON_CONSTRAINTS_TXT):
wget -O "$(@)" https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt || touch "$(@)"


upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
pip install -q pip-tools
upgrade: $(COMMON_CONSTRAINTS_TXT)
## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
pip install -qr requirements/pip-tools.txt
pip-compile --rebuild --upgrade --allow-unsafe -o requirements/pip.txt requirements/pip.in
pip-compile --rebuild --upgrade -o requirements/pip-tools.txt requirements/pip-tools.in
pip install -qr requirements/pip.txt
pip install -qr requirements/pip-tools.txt
pip-compile --rebuild --upgrade -o requirements/dev.txt requirements/base.in requirements/dev.in requirements/quality.in requirements/test.in requirements/ci.in
pip-compile --rebuild --upgrade -o requirements/quality.txt requirements/base.in requirements/quality.in requirements/test.in
pip-compile --rebuild --upgrade -o requirements/test.txt requirements/base.in requirements/test.in
Expand Down
3 changes: 1 addition & 2 deletions requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

-c constraints.txt

diff-cover # Changeset diff test coverage
pip-tools # Requirements file management
diff-cover # Changeset diff test coverage
28 changes: 5 additions & 23 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ anyio==3.6.1
appdirs==1.4.4
# via fs
asgiref==3.5.2
# via
# django
# uvicorn
# via django
astroid==2.11.6
# via
# pylint
Expand Down Expand Up @@ -41,7 +39,6 @@ click==8.1.3
# edx-django-utils
# edx-lint
# pact-python
# pip-tools
# uvicorn
click-log==0.4.0
# via edx-lint
Expand All @@ -62,10 +59,9 @@ cryptography==37.0.2
# via
# djfernet
# pyjwt
# secretstorage
ddt==1.5.0
# via -r requirements/test.in
diff-cover==6.5.0
diff-cover==6.5.1
# via -r requirements/dev.in
dill==0.3.5.1
# via pylint
Expand Down Expand Up @@ -149,10 +145,6 @@ isort==5.10.1
# via
# -r requirements/quality.in
# pylint
jeepney==0.8.0
# via
# keyring
# secretstorage
jinja2==3.1.2
# via
# code-annotations
Expand All @@ -179,12 +171,8 @@ pact-python==1.5.2
# via -r requirements/test.in
pbr==5.9.0
# via stevedore
pep517==0.12.0
# via pip-tools
pillow==9.1.1
# via -r requirements/base.in
pip-tools==6.6.2
# via -r requirements/dev.in
pkginfo==1.8.3
# via twine
platformdirs==2.5.2
Expand All @@ -208,7 +196,7 @@ pycodestyle==2.8.0
# via -r requirements/quality.in
pycparser==2.21
# via cffi
pycryptodomex==3.14.1
pycryptodomex==3.15.0
# via pyjwkest
pydantic==1.9.1
# via fastapi
Expand All @@ -225,7 +213,7 @@ pyjwt[crypto]==2.4.0
# via
# drf-jwt
# edx-drf-extensions
pylint==2.14.2
pylint==2.14.3
# via
# edx-lint
# pylint-celery
Expand Down Expand Up @@ -286,8 +274,6 @@ rfc3986==2.0.0
# via twine
rich==12.4.4
# via twine
secretstorage==3.3.2
# via keyring
semantic-version==2.10.0
# via edx-drf-extensions
six==1.16.0
Expand Down Expand Up @@ -322,7 +308,6 @@ toml==0.10.2
tomli==2.0.1
# via
# coverage
# pep517
# pylint
# pytest
tomlkit==0.11.0
Expand All @@ -348,19 +333,16 @@ urllib3==1.26.9
# requests
# responses
# twine
uvicorn==0.17.6
uvicorn==0.18.1
# via pact-python
virtualenv==20.14.1
# via tox
webencodings==0.5.1
# via bleach
wheel==0.37.1
# via pip-tools
wrapt==1.14.1
# via astroid
zipp==3.8.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
3 changes: 3 additions & 0 deletions requirements/pip-tools.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-c constraints.txt

pip-tools
20 changes: 20 additions & 0 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
#
# make upgrade
#
click==8.1.3
# via pip-tools
pep517==0.12.0
# via pip-tools
pip-tools==6.6.2
# via -r requirements/pip-tools.in
tomli==2.0.1
# via pep517
wheel==0.37.1
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
17 changes: 4 additions & 13 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ anyio==3.6.1
appdirs==1.4.4
# via fs
asgiref==3.5.2
# via
# django
# uvicorn
# via django
astroid==2.11.6
# via
# pylint
Expand Down Expand Up @@ -56,7 +54,6 @@ cryptography==37.0.2
# via
# djfernet
# pyjwt
# secretstorage
ddt==1.5.0
# via -r requirements/test.in
dill==0.3.5.1
Expand Down Expand Up @@ -133,10 +130,6 @@ isort==5.10.1
# via
# -r requirements/quality.in
# pylint
jeepney==0.8.0
# via
# keyring
# secretstorage
jinja2==3.1.2
# via code-annotations
keyring==23.6.0
Expand Down Expand Up @@ -177,7 +170,7 @@ pycodestyle==2.8.0
# via -r requirements/quality.in
pycparser==2.21
# via cffi
pycryptodomex==3.14.1
pycryptodomex==3.15.0
# via pyjwkest
pydantic==1.9.1
# via fastapi
Expand All @@ -193,7 +186,7 @@ pyjwt[crypto]==2.4.0
# via
# drf-jwt
# edx-drf-extensions
pylint==2.14.2
pylint==2.14.3
# via
# edx-lint
# pylint-celery
Expand Down Expand Up @@ -253,8 +246,6 @@ rfc3986==2.0.0
# via twine
rich==12.4.4
# via twine
secretstorage==3.3.2
# via keyring
semantic-version==2.10.0
# via edx-drf-extensions
six==1.16.0
Expand Down Expand Up @@ -304,7 +295,7 @@ urllib3==1.26.9
# requests
# responses
# twine
uvicorn==0.17.6
uvicorn==0.18.1
# via pact-python
webencodings==0.5.1
# via bleach
Expand Down
8 changes: 3 additions & 5 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ anyio==3.6.1
appdirs==1.4.4
# via fs
asgiref==3.5.2
# via
# django
# uvicorn
# via django
attrs==21.4.0
# via pytest
boto==2.49.0
Expand Down Expand Up @@ -131,7 +129,7 @@ py==1.11.0
# via pytest
pycparser==2.21
# via cffi
pycryptodomex==3.14.1
pycryptodomex==3.15.0
# via pyjwkest
pydantic==1.9.1
# via fastapi
Expand Down Expand Up @@ -213,7 +211,7 @@ urllib3==1.26.9
# pact-python
# requests
# responses
uvicorn==0.17.6
uvicorn==0.18.1
# via pact-python

# The following packages are considered to be unsafe in a requirements file:
Expand Down