clams-python 1.2.4__tar.gz → 1.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {clams_python-1.2.4/clams_python.egg-info → clams_python-1.2.5}/PKG-INFO +2 -2
- clams_python-1.2.5/VERSION +1 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/app/__init__.py +2 -2
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/Containerfile.template +1 -1
- clams_python-1.2.5/clams/ver/__init__.py +1 -0
- {clams_python-1.2.4 → clams_python-1.2.5/clams_python.egg-info}/PKG-INFO +2 -2
- {clams_python-1.2.4 → clams_python-1.2.5}/clams_python.egg-info/requires.txt +1 -1
- {clams_python-1.2.4 → clams_python-1.2.5}/requirements.txt +1 -1
- {clams_python-1.2.4 → clams_python-1.2.5}/tests/test_clamsapp.py +5 -2
- clams_python-1.2.4/VERSION +0 -1
- clams_python-1.2.4/clams/ver/__init__.py +0 -1
- {clams_python-1.2.4 → clams_python-1.2.5}/LICENSE +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/MANIFEST.in +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/README.md +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/appmetadata/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/.dockerignore.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/.gitignore.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/LICENSE.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/README.md.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/app.py.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/cli.py.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/metadata.py.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/requirements.txt.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/for-clams-team.md.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/workflows/issue-apps-project.yml.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/workflows/issue-assign.yml.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/workflows/issue-close.yml.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/workflows/publish.yml.template +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/mmif_utils/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/mmif_utils/rewind.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/mmif_utils/source.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/restify/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams/serve/__init__.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams_python.egg-info/SOURCES.txt +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams_python.egg-info/dependency_links.txt +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams_python.egg-info/entry_points.txt +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/clams_python.egg-info/top_level.txt +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/setup.cfg +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/setup.py +0 -0
- {clams_python-1.2.4 → clams_python-1.2.5}/tests/test_clamscli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clams-python
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: A collection of APIs to develop CLAMS app for python
|
|
5
5
|
Home-page: https://clams.ai
|
|
6
6
|
Author: Brandeis Lab for Linguistics and Computation
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
14
14
|
Requires-Python: >=3.8
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: mmif-python==1.0.
|
|
17
|
+
Requires-Dist: mmif-python==1.0.17
|
|
18
18
|
Requires-Dist: Flask>=2
|
|
19
19
|
Requires-Dist: Flask-RESTful>=0.3.9
|
|
20
20
|
Requires-Dist: gunicorn>=20
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.5
|
|
@@ -142,7 +142,7 @@ class ClamsApp(ABC):
|
|
|
142
142
|
issued_warnings.extend(ws)
|
|
143
143
|
if issued_warnings:
|
|
144
144
|
warnings_view = annotated.new_view()
|
|
145
|
-
self.sign_view(warnings_view,
|
|
145
|
+
self.sign_view(warnings_view, refined)
|
|
146
146
|
warnings_view.metadata.warnings = issued_warnings
|
|
147
147
|
return annotated.serialize(pretty=pretty, sanitize=True)
|
|
148
148
|
|
|
@@ -260,7 +260,7 @@ class ClamsApp(ABC):
|
|
|
260
260
|
break
|
|
261
261
|
if error_view is None:
|
|
262
262
|
error_view = mmif.new_view()
|
|
263
|
-
self.sign_view(error_view, runtime_conf)
|
|
263
|
+
self.sign_view(error_view, self._refine_params(**runtime_conf))
|
|
264
264
|
exc_info = sys.exc_info()
|
|
265
265
|
error_view.set_error(f'{exc_info[0]}: {exc_info[1]}',
|
|
266
266
|
'\t\n'.join(traceback.format_tb(exc_info[2])))
|
{clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/Containerfile.template
RENAMED
|
@@ -25,7 +25,7 @@ ENV HF_HOME="/cache/huggingface"
|
|
|
25
25
|
# https://pytorch.org/docs/stable/hub.html#where-are-my-downloaded-models-saved
|
|
26
26
|
ENV TORCH_HOME="/cache/torch"
|
|
27
27
|
|
|
28
|
-
RUN mkdir /cache
|
|
28
|
+
RUN mkdir /cache ; rm -rf /root/.cache && ln -s /cache /root/.cache
|
|
29
29
|
################################################################################
|
|
30
30
|
|
|
31
31
|
################################################################################
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clams-python
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: A collection of APIs to develop CLAMS app for python
|
|
5
5
|
Home-page: https://clams.ai
|
|
6
6
|
Author: Brandeis Lab for Linguistics and Computation
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
14
14
|
Requires-Python: >=3.8
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: mmif-python==1.0.
|
|
17
|
+
Requires-Dist: mmif-python==1.0.17
|
|
18
18
|
Requires-Dist: Flask>=2
|
|
19
19
|
Requires-Dist: Flask-RESTful>=0.3.9
|
|
20
20
|
Requires-Dist: gunicorn>=20
|
|
@@ -10,6 +10,7 @@ from typing import Union
|
|
|
10
10
|
import jsonschema
|
|
11
11
|
import pytest
|
|
12
12
|
from mmif import Mmif, Document, DocumentTypes, AnnotationTypes, View, __specver__
|
|
13
|
+
from mmif.serialize.mmif import ViewsList
|
|
13
14
|
|
|
14
15
|
import clams.app
|
|
15
16
|
import clams.restify
|
|
@@ -352,14 +353,16 @@ class TestClamsApp(unittest.TestCase):
|
|
|
352
353
|
self.app._refine_params(param1=['p1'], param4=['4'])
|
|
353
354
|
|
|
354
355
|
def test_error_handling(self):
|
|
355
|
-
params = {'raise_error': 'true', 'pretty': 'true'}
|
|
356
|
+
params = {'raise_error': ['true'], 'pretty': ['true']}
|
|
356
357
|
in_mmif = Mmif(self.in_mmif)
|
|
357
358
|
try:
|
|
358
359
|
out_mmif = self.app.annotate(in_mmif, **params)
|
|
359
360
|
except Exception as e:
|
|
360
361
|
out_mmif_from_str = self.app.set_error_view(self.in_mmif, **params)
|
|
361
362
|
out_mmif_from_mmif = self.app.set_error_view(in_mmif, **params)
|
|
362
|
-
self.assertEqual(
|
|
363
|
+
self.assertEqual(
|
|
364
|
+
out_mmif_from_mmif.views.get_last(),
|
|
365
|
+
out_mmif_from_str.views.get_last())
|
|
363
366
|
out_mmif = out_mmif_from_str
|
|
364
367
|
self.assertIsNotNone(out_mmif)
|
|
365
368
|
last_view: View = next(reversed(out_mmif.views))
|
clams_python-1.2.4/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/.dockerignore.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/app/requirements.txt.template
RENAMED
|
File without changes
|
{clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/for-clams-team.md.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clams_python-1.2.4 → clams_python-1.2.5}/clams/develop/templates/gha/workflows/publish.yml.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|