Skip to content

Commit 57bc633

Browse files
authored
ftd-django dependency issue (#17)
1 parent 9087801 commit 57bc633

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

ftd_django/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42"]
3+
build-backend = "setuptools.build_meta"

ftd_django/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from setuptools import setup
1+
from setuptools import setup, find_packages
22

33
with open("README.md") as f:
44
long_description = f.read()
@@ -15,7 +15,8 @@
1515
"Bug Tracker": "https://github.com/FifthTry/ftd-py/issues",
1616
},
1717
python_requires=">=3.6",
18-
version="0.1.6",
18+
version="0.1.7",
1919
package_dir={"": "src"},
20+
packages=find_packages(where="src"),
2021
install_requires=["ftd>=0.1.5"],
2122
)

ftd_django/src/ftd_django/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def render(self, context=None, request=None):
3535
root=FPM_FOLDER,
3636
base_url=BASE,
3737
handle_processor=helpers.processor,
38-
**context
38+
**context,
3939
)
4040

4141

@@ -81,7 +81,7 @@ def view(_, path):
8181
root=FPM_FOLDER,
8282
base_url=BASE,
8383
handle_processor=helpers.processor,
84-
**context
84+
**context,
8585
)
8686
)
8787
return HttpResponse(bytes(content), content_type=content_type)
@@ -95,9 +95,11 @@ def view(_, path):
9595

9696
def processor(fn_or_str):
9797
if isinstance(fn_or_str, str):
98+
9899
def f(fn):
99100
fn.processor_name = fn_or_str
100101
return fn
102+
101103
return f
102104
else:
103105
fn_or_str.processor_name = fn_or_str.__name__

0 commit comments

Comments
 (0)