chore: removed files that are no longer used

This commit is contained in:
Jannat Patel
2026-02-05 12:24:56 +05:30
parent 3f49cf0c9c
commit 19171a8019
2 changed files with 0 additions and 46 deletions
-27
View File
@@ -1,27 +0,0 @@
"""Utilities for making custom routing."""
from werkzeug.datastructures import ImmutableDict
from werkzeug.routing import BaseConverter, Map
class RegexConverter(BaseConverter):
"""werkzeug converter that supports custom regular expression.
The `install_regex_converter` function must be called before using
regex converter in rules.
"""
def __init__(self, map, regex):
super().__init__(map)
self.regex = regex
def install_regex_converter():
"""Installs the RegexConvetor to the default converters supported by werkzeug.
This allows specifing rules using regex. For example:
/profiles/<regex("[a-z0-9]{5,}"):username>
"""
default_converters = dict(Map.default_converters, regex=RegexConverter)
Map.default_converters = ImmutableDict(default_converters)
-19
View File
@@ -1,19 +0,0 @@
from setuptools import find_packages, setup
with open("requirements.txt") as f:
install_requires = f.read().strip().split("\n")
# get version from __version__ variable in lms/__init__.py
from lms import __version__ as version
setup(
name="lms",
version=version,
description="Learning Management System",
author="Jannat",
author_email="jannat@frappe.io",
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=install_requires,
)