Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Rename catalog requirements files to match Renovate pattern (#3521)
Madison Swain-Bowden85f149146a40
diff --git a/catalog/Dockerfile b/catalog/Dockerfileindex c93308449..bb4288bdd 100644--- a/catalog/Dockerfile+++ b/catalog/Dockerfile@@ -10,7 +10,7 @@ FROM apache/airflow:slim-${CATALOG_AIRFLOW_VERSION}-python${CATALOG_PY_VERSION}LABEL org.opencontainers.image.source = "https://github.com/WordPress/openverse"# Build-time arguments, with sensible defaults-ARG REQUIREMENTS_FILE=requirements_prod.txt+ARG REQUIREMENTS_FILE=requirements-prod.txt# Path configurationsENV AIRFLOW_HOME=/opt/airflow@@ -59,7 +59,7 @@ USER airflowWORKDIR ${AIRFLOW_HOME}# Always add the prod req because the dev reqs depend on it for deduplication-COPY ${REQUIREMENTS_FILE} requirements_prod.txt ${AIRFLOW_HOME}/+COPY ${REQUIREMENTS_FILE} requirements-prod.txt ${AIRFLOW_HOME}/# args go out of scope when a new build stage starts so it must be redeclared hereARG CATALOG_PY_VERSIONdiff --git a/catalog/justfile b/catalog/justfileindex fd34546cd..5bf3859d9 100644--- a/catalog/justfile+++ b/catalog/justfile@@ -16,8 +16,8 @@ SERVICE := env_var_or_default("SERVICE", "scheduler")# Version ############-export CATALOG_PY_VERSION := `grep '# PYTHON' requirements_prod.txt | awk -F= '{print $2}'`-export CATALOG_AIRFLOW_VERSION := `grep '^apache-airflow' requirements_prod.txt | awk -F= '{print $3}'`+export CATALOG_PY_VERSION := `grep '# PYTHON' requirements-prod.txt | awk -F= '{print $2}'`+export CATALOG_AIRFLOW_VERSION := `grep '^apache-airflow' requirements-prod.txt | awk -F= '{print $3}'`# Print the required Python version@py-version:@@ -49,7 +49,7 @@ check-py-version:# Install dependenciesinstall *args: check-py-version- python -m pip install -r requirements_dev.txt+ python -m pip install -r requirements-dev.txt####### Up #diff --git a/catalog/requirements_dev.txt b/catalog/requirements-dev.txtsimilarity index 89%rename from catalog/requirements_dev.txtrename to catalog/requirements-dev.txtindex b656646e8..b84e71be1 100644--- a/catalog/requirements_dev.txt+++ b/catalog/requirements-dev.txt@@ -1,6 +1,6 @@# Note: Unpinned packages have their versions determined by the Airflow constraints file--r requirements_prod.txt+-r requirements-prod.txtflaky==3.7.0ipythondiff --git a/catalog/requirements_prod.txt b/catalog/requirements-prod.txtsimilarity index 100%rename from catalog/requirements_prod.txtrename to catalog/requirements-prod.txtdiff --git a/docker-compose.yml b/docker-compose.ymlindex 0053062fe..7cc269fbb 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -17,7 +17,7 @@ x-airflow-common: &airflow-commoncontext: ./catalog/target: catargs: # Automatically inferred from env vars, unless specified- - REQUIREMENTS_FILE=requirements_dev.txt+ - REQUIREMENTS_FILE=requirements-dev.txt- CATALOG_PY_VERSION- CATALOG_AIRFLOW_VERSIONvolumes: