Awight has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391562 )
Change subject: Put all the wheel tools into the Makefile ...................................................................... Put all the wheel tools into the Makefile This lets us build wheels in prod and wmflabs as separate environments. Corresponds to https://github.com/wiki-ai/ores-wmflabs-deploy/pull/91 Bug: T180496 Change-Id: I2a003a0209b3da37d8160520df33353588fae4dc --- M Makefile 1 file changed, 26 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/ores/deploy refs/changes/62/391562/1 diff --git a/Makefile b/Makefile index ab73dab..3144b0c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,28 @@ -deployment_wheels: +REQUIREMENTS_FILES = \ + submodules/ores/requirements.txt \ + submodules/editquality/requirements.txt \ + submodules/wikiclass/requirements.txt \ + requirements.txt + +OMIT_WHEELS = \ + ores \ + editquality \ + wikiclass \ + setuptools \ + pkg-resources + +pip_install: + pip install wheel + pip install --upgrade pip + for req_txt in $(REQUIREMENTS_FILES); do \ + pip install -r $$req_txt; \ + done + +frozen-requirements.txt: pip_install + pip freeze | \ + grep -v $(addprefix -e , $(OMIT_WHEELS)) > \ + frozen-requirements.txt + +deployment_wheels: frozen-requirements.txt mkdir -p wheels && \ pip wheel -r frozen-requirements.txt -w wheels -- To view, visit https://gerrit.wikimedia.org/r/391562 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a003a0209b3da37d8160520df33353588fae4dc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/ores/deploy Gerrit-Branch: master Gerrit-Owner: Awight <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits