Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.10", "3.13"]
python: ["3.11", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ There is no build step: the frontend is plain HTML/CSS/JS in `static/`.
2. Fork the repo and create a branch from `main`: `fix/modrinth-env`, `feat/server-pack-names`, `docs/wiki-typo` …
3. Keep the PR focused on one thing. Small PRs get reviewed faster.
4. Fill in the PR template checklist.
5. CI must be green (tests on Windows + Linux, Python 3.10 and 3.13).
5. CI must be green (tests on Windows + Linux, Python 3.11 and 3.13).
6. PRs are merged with **squash merge**. The PR title becomes the commit message, so please write it like one (see below).

## Commit / PR title style
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a href="https://github.com/CptGummiball/ModFerry/actions/workflows/tests.yml"><img alt="Tests" src="https://github.com/CptGummiball/ModFerry/actions/workflows/tests.yml/badge.svg"></a>
<a href="https://github.com/CptGummiball/ModFerry/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/CptGummiball/ModFerry?color=4caf3a"></a>
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
<img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10%2B-3776ab?logo=python&logoColor=white">
<img alt="Python 3.11+" src="https://img.shields.io/badge/python-3.11%2B-3776ab?logo=python&logoColor=white">
<img alt="CurseForge" src="https://img.shields.io/badge/CurseForge-upload%20API-f16436?logo=curseforge&logoColor=white">
<img alt="Modrinth" src="https://img.shields.io/badge/Modrinth-API%20v2-1bd96a?logo=modrinth&logoColor=white">
<img alt="Languages" src="https://img.shields.io/badge/UI-English%20%7C%20Deutsch-informational">
Expand Down Expand Up @@ -47,7 +47,7 @@ It runs on your own computer (`127.0.0.1`), talks only to the official CurseForg

## Quick start

You need **Python 3.10 or newer**.
You need **Python 3.11 or newer**.

| Windows | Linux / macOS |
|---|---|
Expand Down Expand Up @@ -96,7 +96,7 @@ Issues, ideas, translations and pull requests are welcome. Please read [CONTRIBU

ModFerry ist eine lokale Web-App, mit der du **viele Minecraft-Dateien auf einmal** zu **CurseForge** und/oder **Modrinth** hochlädst: Mods, Resourcepacks, Datapacks, Shaderpacks und Modpacks. Versionen, Loader und Java werden aus den Dateien gelesen (ohne zu raten), alles Weitere stellst du in einer Tabelle ein, einzeln oder per Batch. Dazu gibt es Profile, Changelog-Platzhalter, Trockenlauf, sichere Wiederholung fehlgeschlagener Uploads, einen Upload-Verlauf und verschlüsselt gespeicherte Tokens. Die Oberfläche gibt es auf Deutsch und Englisch.

**Start:** Python 3.10+ installieren, `start-windows.bat` bzw. `./start-linux.sh` ausführen, `http://127.0.0.1:8765` öffnen. Ausführliche Anleitung im [Wiki](../../wiki).
**Start:** Python 3.11+ installieren, `start-windows.bat` bzw. `./start-linux.sh` ausführen, `http://127.0.0.1:8765` öffnen. Ausführliche Anleitung im [Wiki](../../wiki).

## License

Expand Down
6 changes: 6 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"""ModFerry: local batch uploader for CurseForge and Modrinth. Run: python app.py"""
import sys

if sys.version_info < (3, 11):
sys.exit("ModFerry needs Python 3.11 or newer (found %d.%d). Download: https://www.python.org/downloads/"
% sys.version_info[:2])

import json
import os
import re
Expand Down
5 changes: 1 addition & 4 deletions jar_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import re
import zipfile
from pathlib import Path
try:
import tomllib
except ImportError:
import tomli as tomllib
import tomllib

# Minecraft 26.x uses a distinct two-part scheme; never infer MC from mod version.
MC_VERSION = re.compile(r'(?<![0-9A-Za-z])(?:1\.(?:[0-9]|[12][0-9])(?:\.[0-9]+)?|2[6-9]\.[0-9]+(?:\.[0-9]+)?)(?![0-9A-Za-z])')
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ requests>=2.34.2,<3
cryptography>=50.0.2,<51
Markdown>=3.10.3,<4
bleach>=6.4.0,<7
tomli>=2.5.0,<3; python_version < "3.11"
4 changes: 4 additions & 0 deletions start-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
set -e
cd "$(dirname "$0")"
[ -x .venv/bin/python ] || python3 -m venv .venv
if ! .venv/bin/python -c 'import sys; sys.exit(sys.version_info < (3, 11))'; then
echo "ModFerry needs Python 3.11 or newer. Install it, delete the .venv folder and start again." >&2
exit 1
fi
.venv/bin/python -m pip install --disable-pip-version-check -q -r requirements.txt
PORT="${MODFERRY_PORT:-8765}"
URL="http://127.0.0.1:${PORT}"
Expand Down
4 changes: 3 additions & 1 deletion start-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ title ModFerry
cd /d "%~dp0"
if not exist .venv\Scripts\python.exe (
py -3 -m venv .venv
if errorlevel 1 (echo Python 3.10+ is required: https://www.python.org/downloads/ & pause & exit /b 1)
if errorlevel 1 (echo Python 3.11+ is required: https://www.python.org/downloads/ & pause & exit /b 1)
)
.venv\Scripts\python.exe -c "import sys; sys.exit(sys.version_info < (3, 11))"
if errorlevel 1 (echo The .venv folder uses an older Python. Install Python 3.11+, delete the .venv folder and start again. & pause & exit /b 1)
.venv\Scripts\python.exe -m pip install --disable-pip-version-check -q -r requirements.txt
if errorlevel 1 (echo Installation failed. & pause & exit /b 1)
if "%MODFERRY_PORT%"=="" set MODFERRY_PORT=8765
Expand Down
4 changes: 2 additions & 2 deletions wiki/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python -m unittest discover -s tests -v
python app.py
```

Use `MODFERRY_DATA` with a scratch folder while developing so your real tokens and profiles stay untouched. The tests do this automatically. CI runs the tests on Windows and Ubuntu with Python 3.10 and 3.13.
Use `MODFERRY_DATA` with a scratch folder while developing so your real tokens and profiles stay untouched. The tests do this automatically. CI runs the tests on Windows and Ubuntu with Python 3.11 and 3.13.

## Layout

Expand Down Expand Up @@ -74,7 +74,7 @@ To build a ZIP locally: `python tools/make_release.py` (version from `git descri

| Workflow | When | What |
|---|---|---|
| Tests | every PR, every push to `main`, before a release | unit tests on Windows + Linux, Python 3.10 and 3.13 |
| Tests | every PR, every push to `main`, before a release | unit tests on Windows + Linux, Python 3.11 and 3.13 |
| Release | a release is published | tests, build the ZIP with the tag's version, attach it |
| PR labels | PR opened or title edited | label from the title type (`feat:`, `fix:`, …) |
| Dependabot auto-merge | Dependabot PR for minor/patch updates | enables auto-merge; GitHub merges once the tests are green |
Expand Down
2 changes: 1 addition & 1 deletion wiki/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

- **Python 3.10 or newer**: [python.org/downloads](https://www.python.org/downloads/). On Windows, keep the `py` launcher option enabled during setup.
- **Python 3.11 or newer**: [python.org/downloads](https://www.python.org/downloads/). On Windows, keep the `py` launcher option enabled during setup.
- An internet connection on the first start (to install the dependencies).
- A modern browser.

Expand Down
3 changes: 2 additions & 1 deletion wiki/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Run a **🔍 Dry run** first: most problems show up there with a clear message.

| Problem | Fix |
|---|---|
| "Python 3.10+ is required" | Install Python from python.org; on Windows make sure the `py` launcher is installed. |
| "Python 3.11+ is required" | Install Python from python.org; on Windows make sure the `py` launcher is installed. |
| "The .venv folder uses an older Python" / "ModFerry needs Python 3.11 or newer" | ModFerry was set up with an older Python before. Install Python 3.11+, delete the `.venv` folder and start again. |
| Installation of dependencies fails | Check your internet connection / proxy and start again. |
| Port already in use | Another ModFerry is running, or use a different port: [[Configuration]]. |
| "Only local access is allowed" | Open `http://127.0.0.1:8765` or `http://localhost:8765`, not your computer's network name. |
Expand Down