-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* セットアップを全面的にuvへ切り替え * Apply suggestions from code review Co-authored-by: Go.YAMADA <[email protected]> --------- Co-authored-by: Go.YAMADA <[email protected]>
- Loading branch information
1 parent
d40f8a4
commit 22fe311
Showing
11 changed files
with
560 additions
and
47 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
. $HOME/.cargo/env | ||
uv self update | ||
uv sync |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.*.pyc | ||
.*.swp | ||
.*.orig | ||
_build/ | ||
build/ | ||
.*~ | ||
**/__pycache__/ | ||
.devcontainer | ||
.git | ||
.python-version |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
_build/ | ||
build/ | ||
.*~ | ||
source/_ext/__pycache__/ | ||
**/__pycache__/ |
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,28 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.12-slim | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked \ | ||
DEBIAN_FRONTEND=noninteractive apt-get update\ | ||
&& apt-get install -y --no-install-recommends gettext git graphviz make \ | ||
&& apt autoremove -y | ||
|
||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
|
||
# - Silence uv complaining about not being able to use hard links, | ||
# - tell uv to byte-compile packages for faster application startups, | ||
# - prevent uv from accidentally downloading isolated Python builds, | ||
# - pick a Python, | ||
# - and finally declare `UV_PROJECT_ENVIRONMENT` as the target for `uv sync`. | ||
ENV UV_LINK_MODE=copy \ | ||
UV_COMPILE_BYTECODE=1 \ | ||
UV_PYTHON_DOWNLOADS=never \ | ||
UV_PYTHON=python3.12 \ | ||
UV_PROJECT_ENVIRONMENT=/usr/local | ||
# Docker上では、uv sync で /usr/local へインストールし /usr/local/bin のコマンドが使えます | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y gettext git graphviz make \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN pip install -U setuptools pip | ||
RUN mkdir -p /doc | ||
WORKDIR /doc | ||
COPY ./requirements.txt /doc/requirements.txt | ||
RUN pip install -r /doc/requirements.txt | ||
COPY ./ /doc | ||
RUN --mount=type=cache,target=/root/.cache/uv uv sync --locked | ||
|
||
CMD bash |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[project] | ||
name = "sphinx-users-jp" | ||
version = "0" | ||
readme = "README.rst" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"setuptools>=75.3.0", | ||
"sphinx>=8.1.3", | ||
"pillow>=11.0.0", | ||
"sphinxext-opengraph>=0.9.1", | ||
"sphinxcontrib-gist>=0.1.0", | ||
"sphinxcontrib-trimblank>=1.0.3", | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.