Migrated build tool from pipenv to uv

This commit is contained in:
2026-08-14 14:55:44 +01:00
parent b604341e52
commit 3c4d9a613d
5 changed files with 5937 additions and 5222 deletions
+3 -6
View File
@@ -11,14 +11,11 @@
FROM registry.cern.ch/inveniosoftware/almalinux:1
ENV UV_PYTHON=3.12
ENV PIPENV_VENV_IN_PROJECT=1
COPY site ./site
COPY Pipfile Pipfile.lock ./
COPY pyproject.toml uv.lock ./
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
RUN uv python install ${UV_PYTHON} && \
pipenv install --deploy --python $(uv python find ${UV_PYTHON}) && \
pipenv run pip install "setuptools<70.0.0"
RUN uv sync --frozen
COPY ./docker/uwsgi/ ${INVENIO_INSTANCE_PATH}
COPY ./invenio.cfg ${INVENIO_INSTANCE_PATH}
@@ -34,7 +31,7 @@ ARG INSTALL_LOCAL_WHEELS=false
COPY ./local_wheels/ ./local_wheels/
RUN if [ "$INSTALL_LOCAL_WHEELS" = "true" ]; then \
if ls ./local_wheels/invenio_theme_iform*.whl ./local_wheels/invenio_config_iform*.whl 1> /dev/null 2>&1; then \
pipenv run pip install --no-deps --force-reinstall ./local_wheels/invenio_theme_iform*.whl ./local_wheels/invenio_config_iform*.whl; \
uv pip install --no-deps --reinstall ./local_wheels/invenio_theme_iform*.whl ./local_wheels/invenio_config_iform*.whl; \
fi \
fi
-24
View File
@@ -1,24 +0,0 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
check-manifest = ">=0.25"
[packages]
invenio-app-rdm = {extras = ["opensearch2", "s3"], version = ">=13.0.0"}
i-form-data-repository = {editable = true, path="./site"}
invenio-config-iform = "*"
invenio-theme-iform = "*"
uwsgi = ">=2.0"
uwsgitop = ">=0.11"
uwsgi-tools = ">=1.1.1"
nh3 = ">=0.2.24"
[requires]
python_version = "3.12"
[pipenv]
allow_prereleases = false
-5192
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
[project]
name = "i-form-data-repository-deployment"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"invenio-app-rdm[opensearch2,s3]>=13.0.0",
"i-form-data-repository",
"invenio-config-iform",
"invenio-theme-iform",
"uwsgi>=2.0",
"uwsgitop>=0.11",
"uwsgi-tools>=1.1.1",
"nh3>=0.2.24",
"setuptools<70.0.0"
]
[tool.uv.sources]
i-form-data-repository = { path = "./site", editable = true }
+5916
View File
File diff suppressed because it is too large Load Diff