mirror of
https://github.com/frappe/lms.git
synced 2026-04-24 17:39:41 +03:00
chore: removed files that are no longer used
This commit is contained in:
@@ -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)
|
||||
@@ -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,
|
||||
)
|
||||
Reference in New Issue
Block a user