mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Remove pip-accel
Not sure how much benefit we are getting from this. Pip-accel has already not been supported for 3 years now either.
This commit is contained in:
10
Makefile
10
Makefile
@@ -2,7 +2,6 @@
|
|||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
DATE = $(shell date +%Y-%m-%dT%H:%M:%S)
|
DATE = $(shell date +%Y-%m-%dT%H:%M:%S)
|
||||||
|
|
||||||
PIP_ACCEL_CACHE ?= ${CURDIR}/cache/pip-accel
|
|
||||||
APP_VERSION_FILE = app/version.py
|
APP_VERSION_FILE = app/version.py
|
||||||
|
|
||||||
GIT_BRANCH ?= $(shell git symbolic-ref --short HEAD 2> /dev/null || echo "detached")
|
GIT_BRANCH ?= $(shell git symbolic-ref --short HEAD 2> /dev/null || echo "detached")
|
||||||
@@ -37,7 +36,7 @@ venv: venv/bin/activate ## Create virtualenv if it does not exist
|
|||||||
|
|
||||||
venv/bin/activate:
|
venv/bin/activate:
|
||||||
test -d venv || virtualenv venv -p python3
|
test -d venv || virtualenv venv -p python3
|
||||||
. venv/bin/activate && pip install pip-accel
|
. venv/bin/activate
|
||||||
|
|
||||||
.PHONY: check-env-vars
|
.PHONY: check-env-vars
|
||||||
check-env-vars: ## Check mandatory environment variables
|
check-env-vars: ## Check mandatory environment variables
|
||||||
@@ -73,8 +72,7 @@ dependencies: venv ## Install build dependencies
|
|||||||
npm set progress=false
|
npm set progress=false
|
||||||
npm install
|
npm install
|
||||||
npm rebuild node-sass
|
npm rebuild node-sass
|
||||||
mkdir -p ${PIP_ACCEL_CACHE}
|
. venv/bin/activate && pip install -r requirements_for_test.txt
|
||||||
. venv/bin/activate && PIP_ACCEL_CACHE=${PIP_ACCEL_CACHE} pip-accel install -r requirements_for_test.txt
|
|
||||||
|
|
||||||
.PHONY: generate-version-file
|
.PHONY: generate-version-file
|
||||||
generate-version-file: ## Generates the app version file
|
generate-version-file: ## Generates the app version file
|
||||||
@@ -83,7 +81,7 @@ generate-version-file: ## Generates the app version file
|
|||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: dependencies generate-version-file ## Build project
|
build: dependencies generate-version-file ## Build project
|
||||||
npm run build
|
npm run build
|
||||||
. venv/bin/activate && PIP_ACCEL_CACHE=${PIP_ACCEL_CACHE} pip-accel install -r requirements.txt
|
. venv/bin/activate && pip install -r requirements.txt
|
||||||
|
|
||||||
.PHONY: build-paas-artifact
|
.PHONY: build-paas-artifact
|
||||||
build-paas-artifact: ## Build the deploy artifact for PaaS
|
build-paas-artifact: ## Build the deploy artifact for PaaS
|
||||||
@@ -130,14 +128,12 @@ coverage: venv ## Create coverage report
|
|||||||
|
|
||||||
.PHONY: prepare-docker-build-image
|
.PHONY: prepare-docker-build-image
|
||||||
prepare-docker-build-image: ## Prepare the Docker builder image
|
prepare-docker-build-image: ## Prepare the Docker builder image
|
||||||
mkdir -p ${PIP_ACCEL_CACHE}
|
|
||||||
make -C docker build
|
make -C docker build
|
||||||
|
|
||||||
define run_docker_container
|
define run_docker_container
|
||||||
@docker run -i${DOCKER_TTY} --rm \
|
@docker run -i${DOCKER_TTY} --rm \
|
||||||
--name "${DOCKER_CONTAINER_PREFIX}-${1}" \
|
--name "${DOCKER_CONTAINER_PREFIX}-${1}" \
|
||||||
-v "`pwd`:/var/project" \
|
-v "`pwd`:/var/project" \
|
||||||
-v "${PIP_ACCEL_CACHE}:/var/project/cache/pip-accel" \
|
|
||||||
-e UID=$(shell id -u) \
|
-e UID=$(shell id -u) \
|
||||||
-e GID=$(shell id -g) \
|
-e GID=$(shell id -g) \
|
||||||
-e GIT_COMMIT=${GIT_COMMIT} \
|
-e GIT_COMMIT=${GIT_COMMIT} \
|
||||||
|
|||||||
Reference in New Issue
Block a user