From b2d6267a71d7ac642578e8afd8e9a570017caf58 Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Wed, 2 Nov 2022 13:12:30 +0100 Subject: [PATCH] Developers: add target in make file for running pypi-server --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 6b68a6603c..784095ff90 100644 --- a/Makefile +++ b/Makefile @@ -174,3 +174,10 @@ reimport-pip-patch: @sed -i -r 's:([a-b]\/)src/:\1pipenv/patched/:g' $(pip-checkout-dir)/pip*.patch @find $(pip-checkout-dir) -maxdepth 1 -regex ".*/pip[0-9]+.patch" -exec cp {} $(CURDIR)/tasks/vendoring/patches/patched/ \; @find $(pip-checkout-dir) -maxdepth 1 -regex ".*/_post-pip-[^/\.]*.patch" -exec cp {} $(CURDIR)/tasks/vendoring/patches/patched/ \; + + +.PHONY: pypi-server +pypi-server: SERVER ?= gunicorn +pypi-server: + pipenv run pypi-server run --server $(SERVER) -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures +