fix: Update versioning in INSTALL.md and bump version in pyproject.toml

This commit is contained in:
sha
2026-04-13 01:00:34 +03:00
parent a54c10928d
commit f7270e7afc
3 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- **GitHub Actions CI** (`ci.yml`): runs tests + mypy on Python 3.12 for every push to `main` and all PRs - **GitHub Actions CI** (`ci.yml`): runs tests + mypy on Python 3.12 for every push to `main` and all PRs
- **GitHub Actions Release** (`release.yml`): triggered by `v*.*.*` tags — runs tests, builds wheel + tarball, publishes packages as GitHub Release assets (`moma-X.Y.Z.whl`, `moma-latest.whl`, etc.) - **GitHub Actions Release** (`release.yml`): triggered by `v*.*.*` tags — runs tests, builds wheel + tarball, publishes packages as GitHub Release assets (`moma-X.Y.Z-py3-none-any.whl`, `moma-X.Y.Z.tar.gz`, `moma-latest.tar.gz`)
- **TMDB credentials in Settings**: `tmdb_api_key` and `tmdb_access_token` are now stored in `~/.config/moma/config.json` and editable via the Settings screen (`p`) - **TMDB credentials in Settings**: `tmdb_api_key` and `tmdb_access_token` are now stored in `~/.config/moma/config.json` and editable via the Settings screen (`p`)
### Changed ### Changed
+7 -10
View File
@@ -24,14 +24,11 @@ powershell -c "irm https://astral.sh/uv/install.sh | iex"
#### Install moma #### Install moma
```bash ```bash
# Always-latest stable URL (recommended) # Always-latest (recommended, no version to update)
uv tool install https://github.com/shadoll/moma/releases/latest/download/moma-latest.whl uv tool install https://github.com/shadoll/moma/releases/latest/download/moma-latest.tar.gz
# Specific version # Specific version
uv tool install https://github.com/shadoll/moma/releases/download/v0.8.11/moma-0.8.11.whl uv tool install https://github.com/shadoll/moma/releases/download/v0.9.0/moma-0.9.0-py3-none-any.whl
# From a locally downloaded wheel
uv tool install moma-latest.whl
# From PyPI (when published) # From PyPI (when published)
uv tool install moma uv tool install moma
@@ -46,11 +43,11 @@ moma /path/to/directory # Scan specific directory
### Method 2: pip Install from Wheel ### Method 2: pip Install from Wheel
```bash ```bash
# Always-latest stable URL # Always-latest (recommended, no version to update)
pip install https://github.com/shadoll/moma/releases/latest/download/moma-latest.whl pip install https://github.com/shadoll/moma/releases/latest/download/moma-latest.tar.gz
# From a locally downloaded wheel # Specific version
pip install moma-latest.whl pip install https://github.com/shadoll/moma/releases/download/v0.9.0/moma-0.9.0-py3-none-any.whl
``` ```
### Method 3: Development Installation ### Method 3: Development Installation
+7
View File
@@ -4,12 +4,19 @@ def main():
content = f.read() content = f.read()
match = re.search(r'version = "(\d+)\.(\d+)\.(\d+)"', content) match = re.search(r'version = "(\d+)\.(\d+)\.(\d+)"', content)
if match: if match:
old_version = match.group(1) + '.' + match.group(2) + '.' + match.group(3)
major, minor, patch = map(int, match.groups()) major, minor, patch = map(int, match.groups())
patch += 1 patch += 1
new_version = f'{major}.{minor}.{patch}' new_version = f'{major}.{minor}.{patch}'
content = content.replace(match.group(0), f'version = "{new_version}"') content = content.replace(match.group(0), f'version = "{new_version}"')
with open('pyproject.toml', 'w') as f: with open('pyproject.toml', 'w') as f:
f.write(content) f.write(content)
# Update version references in INSTALL.md
with open('INSTALL.md', 'r') as f:
install = f.read()
install = install.replace(old_version, new_version)
with open('INSTALL.md', 'w') as f:
f.write(install)
print(f'Version bumped to {new_version}') print(f'Version bumped to {new_version}')
else: else:
print('Version not found') print('Version not found')