refactor!: remove faker from requirements.txt

This commit is contained in:
Ankush Menat 2021-10-20 11:13:06 +05:30
parent 9f0fe09e00
commit a6c752458b
No known key found for this signature in database
GPG key ID: 8EA82E09BBD13AAF
3 changed files with 2 additions and 4 deletions

1
dev-requirements.txt Normal file
View file

@ -0,0 +1 @@
Faker~=8.1.0

View file

@ -30,9 +30,6 @@ from .utils.lazy_loader import lazy_import
from frappe.query_builder import get_query_builder, patch_query_execute
# Lazy imports
faker = lazy_import('faker')
__version__ = '14.0.0-dev'
__title__ = "Frappe Framework"
@ -1838,6 +1835,7 @@ def parse_json(val):
return parse_json(val)
def mock(type, size=1, locale='en'):
import faker
results = []
fake = faker.Faker(locale)
if type not in dir(fake):

View file

@ -12,7 +12,6 @@ croniter~=1.0.11
cryptography~=3.4.7
dropbox~=11.7.0
email-reply-parser~=0.5.12
Faker~=8.1.0
git-url-parse~=1.2.2
gitdb~=4.0.7
GitPython~=3.1.14