-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
254 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# Set the base image to the minimal Python 3.12 slim image | ||
# Setting the base-image | ||
FROM python:3.12-slim | ||
|
||
# Copy only the necessary binaries from uv | ||
COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ | ||
|
||
# Set environment variable early to take advantage of layer caching | ||
ENV UV_PROJECT_ENVIRONMENT="/usr/local/" | ||
|
||
# Set the working directory to /action | ||
WORKDIR /action | ||
|
||
# importing the action | ||
# Import the action | ||
COPY . . | ||
|
||
# running the script.sh | ||
RUN if [ -f script.sh ]; then sh script.sh; fi | ||
# Run the pre-script.sh | ||
RUN [ -f pre-script.sh ] && sh pre-script.sh || true | ||
|
||
# Install action dependencies | ||
RUN uv sync --no-install-project --no-cache | ||
|
||
# Install project dependencies first for better caching | ||
RUN uv sync --frozen --no-cache | ||
# running the post-script.sh | ||
RUN [ -f post-script.sh ] && sh post-script.sh || true | ||
|
||
# Specify the command to run main.py with uv | ||
CMD [ "uv", "run", "main.py" ] | ||
CMD [ "uv", "run", "/action/main.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
[project] | ||
name = "pypi-chart-badge" | ||
version = "1.1.0" | ||
version = "1.2.0" | ||
description = "PyPI Chart Badge Generator" | ||
readme = "README.md" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"kaleido==0.2.1", | ||
"pandas==2.2.1", | ||
"plotly==5.24.1", | ||
"pyaction==0.7.2", | ||
"pyaction==0.8.1", | ||
"requests==2.32.3", | ||
] | ||
|
||
[project.optional-dependencies] | ||
cli = ["pyaction[cli]==0.8.1"] |
Oops, something went wrong.