modsmith-cli 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. modsmith_cli-0.1.1/.gitattributes +4 -0
  2. modsmith_cli-0.1.1/.github/workflows/ci.yml +91 -0
  3. modsmith_cli-0.1.1/.github/workflows/docs.yml +45 -0
  4. modsmith_cli-0.1.1/.github/workflows/release.yml +88 -0
  5. modsmith_cli-0.1.1/.gitignore +33 -0
  6. modsmith_cli-0.1.1/.pre-commit-config.yaml +22 -0
  7. modsmith_cli-0.1.1/CHANGELOG.md +58 -0
  8. modsmith_cli-0.1.1/CONTRIBUTING.md +79 -0
  9. modsmith_cli-0.1.1/LICENSE +21 -0
  10. modsmith_cli-0.1.1/PKG-INFO +255 -0
  11. modsmith_cli-0.1.1/README.md +230 -0
  12. modsmith_cli-0.1.1/README_ZH.md +230 -0
  13. modsmith_cli-0.1.1/docs/assets/banner.svg +12 -0
  14. modsmith_cli-0.1.1/docs/assets/hero-cli-small.svg +12 -0
  15. modsmith_cli-0.1.1/docs/assets/hero-cli.svg +12 -0
  16. modsmith_cli-0.1.1/docs/assets/logo.svg +1 -0
  17. modsmith_cli-0.1.1/docs/assets/pixel/LICENSE.txt +21 -0
  18. modsmith_cli-0.1.1/docs/assets/pixel/alert.svg +3 -0
  19. modsmith_cli-0.1.1/docs/assets/pixel/block.svg +4 -0
  20. modsmith_cli-0.1.1/docs/assets/pixel/download.svg +5 -0
  21. modsmith_cli-0.1.1/docs/assets/pixel/flag.svg +4 -0
  22. modsmith_cli-0.1.1/docs/assets/pixel/key.svg +1 -0
  23. modsmith_cli-0.1.1/docs/assets/pixel/layers.svg +1 -0
  24. modsmith_cli-0.1.1/docs/assets/pixel/link.svg +3 -0
  25. modsmith_cli-0.1.1/docs/assets/pixel/list.svg +3 -0
  26. modsmith_cli-0.1.1/docs/assets/pixel/package.svg +4 -0
  27. modsmith_cli-0.1.1/docs/assets/pixel/play.svg +3 -0
  28. modsmith_cli-0.1.1/docs/assets/pixel/puzzle.svg +4 -0
  29. modsmith_cli-0.1.1/docs/assets/pixel/question.svg +1 -0
  30. modsmith_cli-0.1.1/docs/assets/pixel/refresh.svg +1 -0
  31. modsmith_cli-0.1.1/docs/assets/pixel/shield.svg +3 -0
  32. modsmith_cli-0.1.1/docs/assets/pixel/wrench.svg +3 -0
  33. modsmith_cli-0.1.1/docs/concepts/files.md +35 -0
  34. modsmith_cli-0.1.1/docs/concepts/index.md +27 -0
  35. modsmith_cli-0.1.1/docs/concepts/instances.md +47 -0
  36. modsmith_cli-0.1.1/docs/concepts/updates.md +34 -0
  37. modsmith_cli-0.1.1/docs/conf.py +441 -0
  38. modsmith_cli-0.1.1/docs/get-started/index.md +22 -0
  39. modsmith_cli-0.1.1/docs/get-started/installation.md +124 -0
  40. modsmith_cli-0.1.1/docs/get-started/quickstart.md +63 -0
  41. modsmith_cli-0.1.1/docs/guides/curseforge.md +52 -0
  42. modsmith_cli-0.1.1/docs/guides/existing.md +32 -0
  43. modsmith_cli-0.1.1/docs/guides/index.md +42 -0
  44. modsmith_cli-0.1.1/docs/guides/instances.md +50 -0
  45. modsmith_cli-0.1.1/docs/guides/modpacks.md +78 -0
  46. modsmith_cli-0.1.1/docs/guides/mods.md +78 -0
  47. modsmith_cli-0.1.1/docs/guides/updates.md +57 -0
  48. modsmith_cli-0.1.1/docs/help/changelog.md +5 -0
  49. modsmith_cli-0.1.1/docs/help/faq.md +49 -0
  50. modsmith_cli-0.1.1/docs/help/index.md +30 -0
  51. modsmith_cli-0.1.1/docs/help/troubleshooting.md +61 -0
  52. modsmith_cli-0.1.1/docs/index.md +295 -0
  53. modsmith_cli-0.1.1/docs/reference/index.md +23 -0
  54. modsmith_cli-0.1.1/modsmith_cli/__init__.py +8 -0
  55. modsmith_cli-0.1.1/modsmith_cli/__main__.py +6 -0
  56. modsmith_cli-0.1.1/modsmith_cli/app.py +224 -0
  57. modsmith_cli-0.1.1/modsmith_cli/commands/__init__.py +1 -0
  58. modsmith_cli-0.1.1/modsmith_cli/commands/config.py +81 -0
  59. modsmith_cli-0.1.1/modsmith_cli/commands/contents.py +332 -0
  60. modsmith_cli-0.1.1/modsmith_cli/commands/discovery.py +152 -0
  61. modsmith_cli-0.1.1/modsmith_cli/commands/install.py +351 -0
  62. modsmith_cli-0.1.1/modsmith_cli/commands/instance.py +234 -0
  63. modsmith_cli-0.1.1/modsmith_cli/commands/list.py +48 -0
  64. modsmith_cli-0.1.1/modsmith_cli/commands/search.py +205 -0
  65. modsmith_cli-0.1.1/modsmith_cli/commands/update.py +324 -0
  66. modsmith_cli-0.1.1/modsmith_cli/context.py +117 -0
  67. modsmith_cli-0.1.1/modsmith_cli/core/__init__.py +5 -0
  68. modsmith_cli-0.1.1/modsmith_cli/core/config.py +243 -0
  69. modsmith_cli-0.1.1/modsmith_cli/core/contents.py +68 -0
  70. modsmith_cli-0.1.1/modsmith_cli/core/errors.py +19 -0
  71. modsmith_cli-0.1.1/modsmith_cli/core/install.py +244 -0
  72. modsmith_cli-0.1.1/modsmith_cli/core/names.py +30 -0
  73. modsmith_cli-0.1.1/modsmith_cli/core/paths.py +63 -0
  74. modsmith_cli-0.1.1/modsmith_cli/core/platforms.py +98 -0
  75. modsmith_cli-0.1.1/modsmith_cli/core/records.py +73 -0
  76. modsmith_cli-0.1.1/modsmith_cli/core/refs.py +96 -0
  77. modsmith_cli-0.1.1/modsmith_cli/core/registry.py +183 -0
  78. modsmith_cli-0.1.1/modsmith_cli/errors.py +180 -0
  79. modsmith_cli-0.1.1/modsmith_cli/target.py +43 -0
  80. modsmith_cli-0.1.1/modsmith_cli/ui.py +219 -0
  81. modsmith_cli-0.1.1/pyproject.toml +119 -0
  82. modsmith_cli-0.1.1/tests/__init__.py +0 -0
  83. modsmith_cli-0.1.1/tests/conftest.py +111 -0
  84. modsmith_cli-0.1.1/tests/functional/test_cli.py +232 -0
  85. modsmith_cli-0.1.1/tests/functional/test_contents.py +311 -0
  86. modsmith_cli-0.1.1/tests/functional/test_install.py +299 -0
  87. modsmith_cli-0.1.1/tests/functional/test_maintenance.py +354 -0
  88. modsmith_cli-0.1.1/tests/lib/__init__.py +0 -0
  89. modsmith_cli-0.1.1/tests/lib/builders.py +105 -0
  90. modsmith_cli-0.1.1/tests/lib/catalog.py +170 -0
  91. modsmith_cli-0.1.1/tests/lib/loaders.py +53 -0
  92. modsmith_cli-0.1.1/tests/lib/server.py +117 -0
  93. modsmith_cli-0.1.1/tests/unit/test_config.py +91 -0
  94. modsmith_cli-0.1.1/tests/unit/test_errors.py +64 -0
  95. modsmith_cli-0.1.1/tests/unit/test_labels.py +8 -0
  96. modsmith_cli-0.1.1/tests/unit/test_paths.py +18 -0
  97. modsmith_cli-0.1.1/tests/unit/test_refs.py +46 -0
  98. modsmith_cli-0.1.1/tests/unit/test_registry.py +113 -0
  99. modsmith_cli-0.1.1/tests/unit/test_streams.py +14 -0
  100. modsmith_cli-0.1.1/tests/unit/test_ui.py +88 -0
  101. modsmith_cli-0.1.1/uv.lock +1217 -0
@@ -0,0 +1,4 @@
1
+ * text=auto eol=lf
2
+ *.jar binary
3
+ *.zip binary
4
+ *.mrpack binary
@@ -0,0 +1,91 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, develop]
6
+ pull_request:
7
+ workflow_call:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15
+
16
+ jobs:
17
+ lint:
18
+ name: Lint and type check
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 10
21
+ steps:
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
26
+ - name: Check the lockfile
27
+ run: uv lock --check
28
+ - run: uv sync --locked
29
+ - name: Run pre-commit hooks
30
+ run: uv run --no-sync pre-commit run --all-files --show-diff-on-failure
31
+ - name: Type check
32
+ run: uv run --no-sync pyright
33
+
34
+ test:
35
+ name: Test (${{ matrix.os }}, Python ${{ matrix.python }})
36
+ runs-on: ${{ matrix.os }}
37
+ timeout-minutes: 15
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ include:
42
+ - { os: ubuntu-latest, python: "3.12" }
43
+ - { os: ubuntu-latest, python: "3.14" }
44
+ - { os: windows-latest, python: "3.12" }
45
+ - { os: macos-latest, python: "3.14" }
46
+ steps:
47
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
48
+ with:
49
+ persist-credentials: false
50
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
51
+ with:
52
+ python-version: ${{ matrix.python }}
53
+ - run: uv sync --locked --no-default-groups --group test
54
+ - name: Run tests
55
+ run: uv run --no-sync pytest --cov
56
+
57
+ build:
58
+ name: Build distributions
59
+ runs-on: ubuntu-latest
60
+ timeout-minutes: 10
61
+ steps:
62
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
63
+ with:
64
+ persist-credentials: false
65
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
66
+ - run: uv build
67
+ - name: Check package metadata
68
+ run: uvx twine check --strict dist/*
69
+ - name: Run the built command with the locked dependencies
70
+ run: |
71
+ uv sync --locked --no-default-groups --no-install-project
72
+ uv pip install --no-deps dist/*.whl
73
+ uv run --no-sync modsmith --version
74
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
75
+ with:
76
+ name: dist
77
+ path: dist/
78
+ if-no-files-found: error
79
+
80
+ docs:
81
+ name: Build the documentation
82
+ runs-on: ubuntu-latest
83
+ timeout-minutes: 10
84
+ steps:
85
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
86
+ with:
87
+ persist-credentials: false
88
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
89
+ - run: uv sync --locked --no-default-groups --group docs
90
+ - name: Build the site
91
+ run: uv run --no-sync sphinx-build -W -n -b dirhtml docs docs/_build/html
@@ -0,0 +1,45 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ concurrency:
12
+ group: pages
13
+ cancel-in-progress: false
14
+
15
+ jobs:
16
+ build:
17
+ name: Build the site
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 10
20
+ steps:
21
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
25
+ - run: uv sync --locked --no-default-groups --group docs
26
+ - name: Build the site
27
+ run: uv run --no-sync sphinx-build -W -n -b dirhtml docs docs/_build/html
28
+ - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
29
+ with:
30
+ path: docs/_build/html
31
+
32
+ deploy:
33
+ name: Deploy to GitHub Pages
34
+ needs: build
35
+ runs-on: ubuntu-latest
36
+ timeout-minutes: 10
37
+ permissions:
38
+ pages: write
39
+ id-token: write
40
+ environment:
41
+ name: github-pages
42
+ url: ${{ steps.deployment.outputs.page_url }}
43
+ steps:
44
+ - id: deployment
45
+ uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
@@ -0,0 +1,88 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ check-version:
12
+ name: Check the tag
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 5
15
+ steps:
16
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17
+ with:
18
+ persist-credentials: false
19
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
20
+ - name: Compare the tag with the project version
21
+ env:
22
+ TAG: ${{ github.ref_name }}
23
+ run: test "v$(uv version --short)" = "$TAG"
24
+ - name: Make sure the library comes from PyPI
25
+ run: |
26
+ if grep -qE '^modsmith *= *[{]' pyproject.toml; then
27
+ echo "Remove the modsmith source and relock: the library must come from PyPI." >&2
28
+ exit 1
29
+ fi
30
+ - name: Read the release notes from the changelog
31
+ env:
32
+ TAG: ${{ github.ref_name }}
33
+ run: |
34
+ awk -v heading="## [${TAG#v}]" '
35
+ index($0, heading) == 1 { found = 1; next }
36
+ found && /^## \[/ { exit }
37
+ found
38
+ ' CHANGELOG.md > notes.md
39
+ grep -q '[^[:space:]]' notes.md
40
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
41
+ with:
42
+ name: release-notes
43
+ path: notes.md
44
+ if-no-files-found: error
45
+
46
+ ci:
47
+ name: CI
48
+ needs: check-version
49
+ uses: ./.github/workflows/ci.yml
50
+
51
+ pypi:
52
+ name: Publish to PyPI
53
+ needs: ci
54
+ runs-on: ubuntu-latest
55
+ timeout-minutes: 10
56
+ environment:
57
+ name: pypi
58
+ url: https://pypi.org/project/modsmith-cli/
59
+ permissions:
60
+ id-token: write
61
+ steps:
62
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
63
+ with:
64
+ name: dist
65
+ path: dist/
66
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
67
+
68
+ github-release:
69
+ name: Create the GitHub release
70
+ needs: pypi
71
+ runs-on: ubuntu-latest
72
+ timeout-minutes: 5
73
+ permissions:
74
+ contents: write
75
+ steps:
76
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
77
+ with:
78
+ name: dist
79
+ path: dist/
80
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
81
+ with:
82
+ name: release-notes
83
+ - name: Create the release
84
+ env:
85
+ GH_TOKEN: ${{ github.token }}
86
+ GH_REPO: ${{ github.repository }}
87
+ TAG: ${{ github.ref_name }}
88
+ run: gh release create "$TAG" dist/* --verify-tag --notes-file notes.md
@@ -0,0 +1,33 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ build/
6
+ dist/
7
+ wheels/
8
+
9
+ # Environments
10
+ .venv/
11
+ .env
12
+
13
+ # Tool caches
14
+ .cache/
15
+ .coverage
16
+ .coverage.*
17
+ .pyright/
18
+ .pytest_cache/
19
+ .ruff_cache/
20
+ htmlcov/
21
+
22
+ # Editors and systems
23
+ .idea/
24
+ .vscode/
25
+ .DS_Store
26
+ Thumbs.db
27
+
28
+ # Local game files and logs
29
+ *.log
30
+ .minecraft/
31
+ docs/_build/
32
+ docs/reference/commands/
33
+ docs/reference/settings.md
@@ -0,0 +1,22 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: check-merge-conflict
6
+ - id: check-toml
7
+ - id: check-yaml
8
+ - id: end-of-file-fixer
9
+ - id: trailing-whitespace
10
+
11
+ - repo: local
12
+ hooks:
13
+ - id: ruff-check
14
+ name: ruff check
15
+ entry: uv run --no-sync ruff check --fix --force-exclude
16
+ language: system
17
+ types_or: [python, pyi]
18
+ - id: ruff-format
19
+ name: ruff format
20
+ entry: uv run --no-sync ruff format --force-exclude
21
+ language: system
22
+ types_or: [python, pyi]
@@ -0,0 +1,58 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file. The format is
4
+ based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
5
+ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.1] - 2026-11-04
10
+
11
+ ### Added
12
+
13
+ - Modsmith is on PyPI as `modsmith-cli`: `uv tool install modsmith-cli`.
14
+ - A guide at [modsmithmc.org/modsmith-cli](https://modsmithmc.org/modsmith-cli/),
15
+ with a page for every command and setting.
16
+
17
+ ### Changed
18
+
19
+ - The project moved to [ModsmithMC/modsmith-cli](https://github.com/ModsmithMC/modsmith-cli).
20
+ - The package is now called `modsmith-cli`; the command is still `modsmith`.
21
+ If you installed 0.1.0 from its wheel, remove it first with
22
+ `uv tool uninstall modsmith-app` (or `pipx uninstall modsmith-app`). Your
23
+ instances and settings stay where they are.
24
+ - The Python package is `modsmith_cli`, so `python -m modsmith_cli` runs it.
25
+
26
+ ## [0.1.0] - 2026-11-03
27
+
28
+ The first release of the `modsmith` command.
29
+
30
+ ### Added
31
+
32
+ - `list`, `search` and `config`.
33
+ - Settings in `config.toml`, overridden by environment variables and command
34
+ line options. `MODSMITH_HOME` keeps everything in one folder.
35
+ - `install` installs a modpack, from a file, Modrinth or CurseForge, as a new
36
+ instance with its own installation in the official launcher. It shows what it
37
+ will change and asks first, lets you choose optional files, and takes files
38
+ you downloaded by hand with `--from`.
39
+ - `create` starts an empty instance, with the recommended version of a mod
40
+ loader unless you name one.
41
+ - `show` lists what an instance holds and where each file came from. `add`
42
+ adds mods, resource packs and shaders with what they need, and `remove`
43
+ takes them away with the dependencies nothing else needs. `enable`,
44
+ `disable`, `pin`, `unpin` and `adopt` manage what is there.
45
+ - `update` updates an instance's pack, keeping the optional files you chose,
46
+ and the projects you added, showing what changed in each release. A pack
47
+ installed from a file updates with `--file`.
48
+ - `import` turns an installation you made in the official launcher into an
49
+ instance, reading its Minecraft and loader versions and recognising its mods.
50
+ - `move` renames an instance or moves its folder, and `delete` deletes it after
51
+ you type its name. Both keep the launcher installation in step.
52
+ - `info` shows a project's details, newest releases and changelog, and
53
+ `loaders` lists a mod loader's versions.
54
+ - `search --sort` orders results by relevance, downloads, popularity, newest or
55
+ last update.
56
+ - `--color` and `NO_COLOR` control colour. Help shows examples.
57
+ - Errors name every file that failed to download, and where to get files that
58
+ must be downloaded by hand.
@@ -0,0 +1,79 @@
1
+ # Contributing
2
+
3
+ ## Setup
4
+
5
+ You need [uv](https://docs.astral.sh/uv/).
6
+
7
+ ```bash
8
+ uv sync
9
+ ```
10
+
11
+ ```bash
12
+ uv run pre-commit install
13
+ ```
14
+
15
+ Until the next library release, the app follows the library's development
16
+ branch through `[tool.uv.sources]` in `pyproject.toml`. To work on both at once,
17
+ install your library checkout into this environment:
18
+
19
+ ```bash
20
+ uv pip install -e ../CurseCraft
21
+ ```
22
+
23
+ `uv sync` puts the pinned version back.
24
+
25
+ ## Code layout
26
+
27
+ | Folder | Holds |
28
+ | :--- | :--- |
29
+ | `modsmith_cli/core` | Settings, paths, instance records and install planning. It never prints or asks, so the desktop app can use it too. |
30
+ | `modsmith_cli/commands` | One module per group of commands, built with Typer. |
31
+ | `modsmith_cli` | `app.py` puts the commands together; `ui.py`, `context.py`, `errors.py` and `target.py` hold what they share, printed with Rich. |
32
+
33
+ The app uses only the library's public API.
34
+
35
+ ## Checks
36
+
37
+ ```bash
38
+ uv run ruff check .
39
+ ```
40
+
41
+ ```bash
42
+ uv run pyright
43
+ ```
44
+
45
+ ```bash
46
+ uv run pytest --cov
47
+ ```
48
+
49
+ ```bash
50
+ uv run sphinx-build -W -n -b dirhtml docs docs/_build/html
51
+ ```
52
+
53
+ The documentation in `docs/` is published at
54
+ <https://modsmithmc.org/modsmith-cli/> from `main`. Its command and
55
+ settings reference is generated from the code on every build, so a new option
56
+ only needs good help text.
57
+
58
+ Tests do not use mocks. Platforms are real `Platform` subclasses that serve a
59
+ catalogue from memory (`tests/lib/catalog.py`), and settings are isolated
60
+ through environment variables.
61
+
62
+ ## Branches
63
+
64
+ `main` holds released work and new versions are developed on `develop`. Build
65
+ each feature on its own branch cut from `develop`, and merge it back through a
66
+ pull request.
67
+
68
+ ## Releasing
69
+
70
+ Releases are published on GitHub, built from a tag.
71
+
72
+ 1. Make sure the `modsmith` version the app needs is on PyPI. If
73
+ `[tool.uv.sources]` names `modsmith`, remove that line and run `uv lock`, so
74
+ the app is built and tested against the published library.
75
+ 2. Set `version` in `pyproject.toml` and move the `Unreleased` notes in
76
+ `CHANGELOG.md` under the new version.
77
+ 3. Merge `develop` into `main`.
78
+ 4. Push a tag such as `v0.1.0`. The tag must match the project version, and the
79
+ release notes come from that version's section of `CHANGELOG.md`.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MeNeither
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.