Skip to content

Commit 5bbf504

Browse files
edx-requirements-botJawayria
authored andcommitted
fix: Install pip and pip-tools in upgrade script
1 parent a030d68 commit 5bbf504

File tree

10 files changed

+93
-38
lines changed

10 files changed

+93
-38
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ test_proxy:
1818
@echo "Running all tests with proxy process"
1919
CODEJAIL_PROXY=1 pytest --junitxml=reports/pytest-proxy.xml --log-level=DEBUG
2020

21+
COMMON_CONSTRAINTS_TXT=requirements/common_constraints.txt
22+
.PHONY: $(COMMON_CONSTRAINTS_TXT)
23+
$(COMMON_CONSTRAINTS_TXT):
24+
wget -O "$(@)" https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt || touch "$(@)"
2125

2226
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
23-
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
27+
upgrade: $(COMMON_CONSTRAINTS_TXT)
28+
## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
2429
pip install -q -r requirements/pip_tools.txt
30+
pip-compile --allow-unsafe --rebuild --annotation-style=line --upgrade -o requirements/pip.txt requirements/pip.in
2531
pip-compile --annotation-style=line --upgrade -o requirements/pip_tools.txt requirements/pip_tools.in
32+
pip install -q -r requirements/pip.txt
33+
pip install -q -r requirements/pip_tools.txt
2634
pip-compile --annotation-style=line --upgrade -o requirements/tox.txt requirements/tox.in
2735
pip-compile --annotation-style=line --upgrade -o requirements/testing.txt requirements/testing.in
2836
pip-compile --annotation-style=line --upgrade -o requirements/sandbox.txt requirements/sandbox.in

requirements/common_constraints.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# A central location for most common version constraints
2+
# (across edx repos) for pip-installation.
3+
#
4+
# Similar to other constraint files this file doesn't install any packages.
5+
# It specifies version constraints that will be applied if a package is needed.
6+
# When pinning something here, please provide an explanation of why it is a good
7+
# idea to pin this package across all edx repos, Ideally, link to other information
8+
# that will help people in the future to remove the pin when possible.
9+
# Writing an issue against the offending project and linking to it here is good.
10+
#
11+
# Note: Changes to this file will automatically be used by other repos, referencing
12+
# this file from Github directly. It does not require packaging in edx-lint.
13+
14+
15+
# using LTS django version
16+
Django<4.0
17+
18+
# elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process.
19+
# elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html
20+
elasticsearch<7.14.0
21+
22+
setuptools<60
23+
24+
# django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected
25+
django-simple-history==3.0.0

requirements/constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
-c common_constraints.txt
12
# Django LTS version
23
django>=3.2,<4.0

requirements/development.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@
44
#
55
# make upgrade
66
#
7-
astroid==2.9.0 # via -r requirements/testing.txt, pylint
8-
attrs==21.2.0 # via -r requirements/testing.txt, pytest
7+
astroid==2.11.6 # via -r requirements/testing.txt, pylint
8+
attrs==21.4.0 # via -r requirements/testing.txt, pytest
9+
dill==0.3.5.1 # via -r requirements/testing.txt, pylint
910
iniconfig==1.1.1 # via -r requirements/testing.txt, pytest
1011
isort==5.10.1 # via -r requirements/testing.txt, pylint
11-
lazy-object-proxy==1.6.0 # via -r requirements/testing.txt, astroid
12-
mccabe==0.6.1 # via -r requirements/testing.txt, pylint
12+
lazy-object-proxy==1.7.1 # via -r requirements/testing.txt, astroid
13+
mccabe==0.7.0 # via -r requirements/testing.txt, pylint
1314
packaging==21.3 # via -r requirements/testing.txt, pytest
14-
platformdirs==2.4.0 # via -r requirements/testing.txt, pylint
15+
platformdirs==2.5.2 # via -r requirements/testing.txt, pylint
1516
pluggy==1.0.0 # via -r requirements/testing.txt, pytest
1617
py==1.11.0 # via -r requirements/testing.txt, pytest
1718
pycodestyle==2.8.0 # via -r requirements/testing.txt
18-
pylint==2.12.1 # via -r requirements/testing.txt
19-
pyparsing==3.0.6 # via -r requirements/testing.txt, packaging
20-
pytest==6.2.5 # via -r requirements/testing.txt
21-
toml==0.10.2 # via -r requirements/testing.txt, pylint, pytest
22-
typing-extensions==4.0.0 # via -r requirements/testing.txt, astroid, pylint
23-
wrapt==1.13.3 # via -r requirements/testing.txt, astroid
19+
pylint==2.14.3 # via -r requirements/testing.txt
20+
pyparsing==3.0.9 # via -r requirements/testing.txt, packaging
21+
pytest==7.1.2 # via -r requirements/testing.txt
22+
tomli==2.0.1 # via -r requirements/testing.txt, pylint, pytest
23+
tomlkit==0.11.0 # via -r requirements/testing.txt, pylint
24+
typing-extensions==4.2.0 # via -r requirements/testing.txt, astroid, pylint
25+
wrapt==1.14.1 # via -r requirements/testing.txt, astroid
2426

2527
# The following packages are considered to be unsafe in a requirements file:
2628
# setuptools

requirements/pip.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-c constraints.txt
2+
# Core dependencies for installing other packages
3+
4+
pip
5+
setuptools
6+
wheel
7+

requirements/pip.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.8
3+
# To update, run:
4+
#
5+
# make upgrade
6+
#
7+
wheel==0.37.1 # via -r requirements/pip.in
8+
9+
# The following packages are considered to be unsafe in a requirements file:
10+
pip==22.1.2 # via -r requirements/pip.in
11+
setuptools==59.8.0 # via -c requirements/common_constraints.txt, -r requirements/pip.in

requirements/pip_tools.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#
55
# make upgrade
66
#
7-
click==8.0.3 # via pip-tools
7+
click==8.1.3 # via pip-tools
88
pep517==0.12.0 # via pip-tools
9-
pip-tools==6.4.0 # via -r requirements/pip_tools.in
10-
tomli==1.2.2 # via pep517
11-
wheel==0.37.0 # via pip-tools
9+
pip-tools==6.6.2 # via -r requirements/pip_tools.in
10+
tomli==2.0.1 # via pep517
11+
wheel==0.37.1 # via pip-tools
1212

1313
# The following packages are considered to be unsafe in a requirements file:
1414
# pip

requirements/sandbox.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#
55
# make upgrade
66
#
7-
asgiref==3.4.1 # via django
8-
django==3.2.9 # via -c requirements/constraints.txt, -r requirements/sandbox.in
7+
asgiref==3.5.2 # via django
8+
django==3.2.13 # via -c requirements/common_constraints.txt, -c requirements/constraints.txt, -r requirements/sandbox.in
99
future==0.18.2 # via -r requirements/sandbox.in
10-
numpy==1.21.4 # via -r requirements/sandbox.in
11-
pytz==2021.3 # via django
10+
numpy==1.22.4 # via -r requirements/sandbox.in
11+
pytz==2022.1 # via django
1212
six==1.16.0 # via -r requirements/sandbox.in
1313
sqlparse==0.4.2 # via django

requirements/testing.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@
44
#
55
# make upgrade
66
#
7-
astroid==2.9.0 # via pylint
8-
attrs==21.2.0 # via pytest
7+
astroid==2.11.6 # via pylint
8+
attrs==21.4.0 # via pytest
9+
dill==0.3.5.1 # via pylint
910
iniconfig==1.1.1 # via pytest
1011
isort==5.10.1 # via -r requirements/testing.in, pylint
11-
lazy-object-proxy==1.6.0 # via astroid
12-
mccabe==0.6.1 # via pylint
12+
lazy-object-proxy==1.7.1 # via astroid
13+
mccabe==0.7.0 # via pylint
1314
packaging==21.3 # via pytest
14-
platformdirs==2.4.0 # via pylint
15+
platformdirs==2.5.2 # via pylint
1516
pluggy==1.0.0 # via pytest
1617
py==1.11.0 # via pytest
1718
pycodestyle==2.8.0 # via -r requirements/testing.in
18-
pylint==2.12.1 # via -r requirements/testing.in
19-
pyparsing==3.0.6 # via packaging
20-
pytest==6.2.5 # via -r requirements/testing.in
21-
toml==0.10.2 # via pylint, pytest
22-
typing-extensions==4.0.0 # via astroid, pylint
23-
wrapt==1.13.3 # via astroid
19+
pylint==2.14.3 # via -r requirements/testing.in
20+
pyparsing==3.0.9 # via packaging
21+
pytest==7.1.2 # via -r requirements/testing.in
22+
tomli==2.0.1 # via pylint, pytest
23+
tomlkit==0.11.0 # via pylint
24+
typing-extensions==4.2.0 # via astroid, pylint
25+
wrapt==1.14.1 # via astroid
2426

2527
# The following packages are considered to be unsafe in a requirements file:
2628
# setuptools

requirements/tox.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
#
55
# make upgrade
66
#
7-
backports.entry-points-selectable==1.1.1 # via virtualenv
8-
distlib==0.3.3 # via virtualenv
9-
filelock==3.4.0 # via tox, virtualenv
7+
distlib==0.3.4 # via virtualenv
8+
filelock==3.7.1 # via tox, virtualenv
109
packaging==21.3 # via tox
11-
platformdirs==2.4.0 # via virtualenv
10+
platformdirs==2.5.2 # via virtualenv
1211
pluggy==1.0.0 # via tox
1312
py==1.11.0 # via tox
14-
pyparsing==3.0.6 # via packaging
13+
pyparsing==3.0.9 # via packaging
1514
six==1.16.0 # via tox, virtualenv
1615
toml==0.10.2 # via tox
17-
tox==3.24.4 # via -r requirements/tox.in
18-
virtualenv==20.10.0 # via tox
16+
tox==3.25.0 # via -r requirements/tox.in
17+
virtualenv==20.14.1 # via tox

0 commit comments

Comments
 (0)