Skip to content
Open
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 main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from main.sentry import init_sentry
from openapi.settings_spectacular import open_spectacular_settings

VERSION = "0.30.0"
VERSION = "2026.4.16.1"

log = logging.getLogger()

Expand Down
17 changes: 10 additions & 7 deletions main/settings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"""

import importlib
import re
import sys
import tomllib
from unittest import mock

import pytest
import semantic_version
from django.conf import settings
from django.core import mail
from django.core.exceptions import ImproperlyConfigured
Expand Down Expand Up @@ -92,12 +93,14 @@ def test_db_ssl_enable(self):
"sslmode": "require"
}

@staticmethod
def test_semantic_version():
"""
Verify that we have a semantic compatible version.
"""
semantic_version.Version(settings.VERSION)
def test_bump_my_version_format(self):
"""Verify that VERSION matches the bump-my-version calver format."""
with open("pyproject.toml", "rb") as f: # noqa: PTH123
pyproject = tomllib.load(f)
version_pattern = pyproject["tool"]["bumpversion"]["parse"]
package_version = pyproject["project"]["version"]
assert package_version == settings.VERSION
assert re.fullmatch(version_pattern, settings.VERSION)

def test_required_settings(self):
"""
Expand Down
38 changes: 35 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "learn-ai"
version = "0.71.0"
version = "2026.4.16.1"
description = "AI applications for MIT Open Learning."
authors = [{ name = "MIT ODL" }]
requires-python = ">=3.13.7,<3.14"
Expand Down Expand Up @@ -39,7 +39,7 @@ dependencies = [
"langchain-core>=1.1.0,<2",
"langchain-litellm>=0.6.1,<0.7",
"langchain-openai>=1.1.0,<2",
"langgraph==1.0.10",
"langgraph==1.0.4",
Comment on lines 39 to +42
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be reverted back to 1.0.10

"langmem>=0.0.30,<0.0.31",
"langsmith>=0.7.0,<0.8",
"litellm>=1.53.5,<2",
Expand Down Expand Up @@ -193,7 +193,6 @@ lint.ignore = [
"N806",
"N999",
"PIE804",
"PLC0415",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this led to many pre-commit errors about imports. Either the imports will need to be moved or this line will need to be added back.

"RET505",
"RET506",
"RET507",
Expand All @@ -214,3 +213,36 @@ inline-quotes = "double"
"*_test.py" = ["ARG001", "E501", "S101", "PLR2004"]
"test_*.py" = ["ARG001", "E501", "S101", "PLR2004"]
"**/migrations/**" = ["ARG001"]

[tool.bumpversion]
commit = false
tag = false
parse = "(?P<release>(?:[1-9][0-9]{3})\\.(?:1[0-2]|[1-9])\\.(?:3[0-1]|[12][0-9]|[1-9]))\\.(?P<build>\\d+)"
serialize = ["{release}.{build}"]
Comment on lines +217 to +221

Comment thread
blarghmatey marked this conversation as resolved.
[tool.bumpversion.parts.release]
calver_format = "{YYYY}.{MM}.{DD}"
Comment on lines +220 to +224

[tool.bumpversion.parts.build]
first_value = "1"

[[tool.bumpversion.files]]
filename = "main/settings.py"
search = 'VERSION = "{current_version}"'
replace = 'VERSION = "{new_version}"'

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "uv.lock"
search = """
name = "learn-ai"
version = "{current_version}"
source = {{ virtual = "." }}"""
replace = """
name = "learn-ai"
version = "{new_version}"
source = {{ virtual = "." }}"""
Loading
Loading