Skip to content

Commit f243ca2

Browse files
committed
Fix conda errors and last flask method
1 parent 006f94b commit f243ca2

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

conda/meta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package:
22
name: landmarkerio
33
version: {{ environ['CONDACI_VERSION'] }}
44

5+
source:
6+
path: ../
7+
58
build:
69
number: 0
710
script: python setup.py install --single-version-externally-managed --record=record.txt && python setup.py sdist
@@ -26,6 +29,9 @@ test:
2629
- pytest
2730
- pytest-mypy
2831

32+
files:
33+
- mypy.ini
34+
2935
imports:
3036
- landmarkerio
3137

landmarkerio/landmark.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313

1414

1515
class LandmarkAdapter(abc.ABC):
16-
r"""
17-
Abstract definition of an adapter that can be passed to app_for_adapter in
18-
order to generate a legal Flask implementation of landmarker.io's REST API
19-
for Landmarks.
20-
"""
21-
2216
@abc.abstractmethod
2317
def asset_id_to_lm_id(self) -> Dict[str, Sequence[str]]:
2418
pass

landmarkerio/template.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import Any, Dict, List, NamedTuple, Optional, Sequence, Tuple
66

77
import yaml
8-
from flask import safe_join
98
from loguru import logger
109

1110
from landmarkerio import FileExt, TEMPLATE_DINAME
@@ -162,7 +161,7 @@ def template_paths(self) -> Sequence[Path]:
162161
return list(self.template_dir.glob("*" + FileExt.template))
163162

164163
def load_template(self, lm_id: str):
165-
fp = safe_join(str(self.template_dir), lm_id + FileExt.template)
164+
fp = self.template_dir / (lm_id + FileExt.template)
166165
return load_template(fp, self.n_dims)
167166

168167

0 commit comments

Comments
 (0)