Skip to content

Commit 9bf8abe

Browse files
committed
Modernize package management with uv
1 parent 6196737 commit 9bf8abe

File tree

8 files changed

+404
-27
lines changed

8 files changed

+404
-27
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

.readthedocs.yaml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
# Read the Docs configuration file for Sphinx projects
22
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3-
4-
# Required
53
version: 2
64

75
# Set the OS, Python version and other tools you might need
86
build:
97
os: ubuntu-24.04
108
tools:
119
python: "3.14"
12-
# You can also specify other tool versions:
13-
# nodejs: "20"
14-
# rust: "1.70"
15-
# golang: "1.20"
10+
pre_create_environment:
11+
- asdf plugin add uv
12+
- asdf install uv latest
13+
- asdf global uv latest
14+
create_environment:
15+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
16+
install:
17+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
1618

1719
# Build documentation in the "source/" directory with Sphinx
1820
sphinx:
1921
configuration: source/conf.py
20-
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
2122
builder: "dirhtml"
22-
# Fail on all warnings to avoid broken references
23-
# fail_on_warning: true
23+
fail_on_warning: true
2424

2525
# Optionally build your docs in additional formats such as PDF and ePub
2626
formats:
2727
- pdf
2828
- epub
29-
30-
# Optional but recommended, declare the Python requirements required
31-
# to build your documentation
32-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33-
python:
34-
install:
35-
- requirements: source/requirements.txt

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ These are the files for WorldEdit's documentation.
55
Contributions are welcome. Please read the licensing information below.
66

77
# Dev Setup
8-
```bash
9-
pip install -r requirements.txt
10-
# Now you can run ./dev.py to auto-rebuild the docs into build/dirhtml, and browse it at the printed address.
11-
```
8+
[Install `uv`](https://docs.astral.sh/uv/getting-started/installation/).
9+
10+
Most IDEs should support `uv` out of the box, but you can run `uv sync` if you need a virtual environment with the
11+
dependencies installed.
12+
13+
Use `uv run dev.py` to auto-rebuild docs into `build/dirhtml`, then browse it at the printed address.
1214

1315
# License
1416

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[project]
2+
name = "WorldEditDocs"
3+
version = "0.0.1"
4+
description = "WorldEdit documentation"
5+
readme = "README.md"
6+
requires-python = ">=3.14"
7+
classifiers = [
8+
"Private :: Do Not Upload",
9+
]
10+
11+
[tool.uv.extra-build-dependencies]
12+
# Can be removed with https://github.com/EngineHub/sphinxcontrib.youtube/pull/1
13+
enginehub-sphinx-youtube = ["setuptools==80.10.2"]
14+
15+
[dependency-groups]
16+
# Dependencies for `dev.py`.
17+
dev = [
18+
{ include-group = "docs" },
19+
"watchdog>=6.0.0",
20+
]
21+
# Dependencies for building the documentation.
22+
docs = [
23+
"enginehub-sphinx-youtube>=0.2.3",
24+
"shibuya>=2026.1.9",
25+
"sphinx>=9.1.0",
26+
]

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

source/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Once you've set up your Bukkit-based server (instructions can be found on the re
4747
Check your server log for errors. If you encounter errors, see the :doc:`FAQ <faq>` page.
4848

4949
NeoForge Single-Player
50-
~~~~~~~~~~~~~~~~~~~
50+
~~~~~~~~~~~~~~~~~~~~~~
5151

5252
First, you'll have to install NeoForge. There are many third-party launchers designed to easily install modpacks. If you're using one of those, you can add WorldEdit as a mod through the launcher interface. Otherwise, NeoForge will install a profile available through the official Minecraft Launcher. After installing NeoForge one way or the other, `download WorldEdit from Modrinth <https://modrinth.com/plugin/worldedit/versions?l=neoforge>`_. Make sure you get the right WorldEdit download for your Minecraft version and platform.
5353

@@ -69,7 +69,7 @@ On Minecraft 1.14.x versions, you will also need to install the `Fabric API mod
6969
Add the WorldEdit .jar to the "loader mods" section of your MultiMC instance and check to enable it, or add the jar to your mods folder (see NeoForge instructions above) if you're installing in the official Mojang launcher.
7070

7171
NeoForge Server / Sponge
72-
~~~~~~~~~~~~~~~~~~~~~
72+
~~~~~~~~~~~~~~~~~~~~~~~~
7373

7474
First, you'll have to install your server software of choice. For NeoForge, you can download the installer and run ``java -jar neoforge-installer.jar --installServer`` from a terminal or command prompt (search online for more comprehensive instructions). Sponge has `documentation on setting up a server <https://docs.spongepowered.org/stable/en/server/quickstart.html>`_. After installing your server software, download WorldEdit from `Modrinth, if using NeoForge <https://modrinth.com/plugin/worldedit/versions?l=neoforge>`_ or `Ore, if using Sponge <https://ore.spongepowered.org/EngineHub/WorldEdit>`_.
7575

source/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

uv.lock

Lines changed: 360 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)