Skip to content

Commit b952f19

Browse files
authored
Merge pull request #87 from de-sh/develop
Use 'hydra_python_core' module in place of 'hydrus.hydraspec'
2 parents 8a9102b + db7ed35 commit b952f19

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ ENV/
9999

100100
# mypy
101101
.mypy_cache/
102+
103+
# pipenv generated filespip
104+
Pipfile
105+
Pipfile.lock

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ python:
1212
- "3.6-dev" # 3.6 development branch
1313
- "3.7-dev"
1414
install:
15-
- pip install -e git+https://github.com/HTTP-APIs/hydrus#egg=hydrus
15+
- pip install -e git+https://github.com/HTTP-APIs/hydra-python-core#egg=hydra_python_core
1616
- pip install -e .
1717

1818
script: python -m unittest discover

hydra_agent/hydra_graph.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
from redisgraph import Graph, Node
33
import urllib.request
44
import json
5-
from hydrus.hydraspec import doc_maker
6-
import hydrus
5+
from hydra_python_core import doc_maker, doc_writer
76
from graphviz import Digraph
87
from hydra_agent.classes_objects import ClassEndpoints,RequestError
98
from hydra_agent.collections_endpoint import CollectionEndpoints
@@ -21,12 +20,12 @@ def get_apistructure(self,entrypoint_node, api_doc):
2120
for support_property in api_doc.entrypoint.entrypoint.supportedProperty:
2221
if isinstance(
2322
support_property,
24-
hydrus.hydraspec.doc_writer.EntryPointClass):
23+
doc_writer.EntryPointClass):
2524
self.class_endpoints[support_property.name] = support_property.id_
2625

2726
if isinstance(
2827
support_property,
29-
hydrus.hydraspec.doc_writer.EntryPointCollection):
28+
doc_writer.EntryPointCollection):
3029
self.collection_endpoints[support_property.name] = support_property.id_
3130

3231
if len(self.class_endpoints.keys())>0:

hydra_agent/querying_mechanism.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from hydra_agent.hydra_graph import InitialGraph
55
import urllib.request
66
import json
7-
from hydrus.hydraspec import doc_maker
7+
from hydra_python_core import doc_maker
88
from urllib.error import URLError, HTTPError
99
from hydra_agent.collections_endpoint import CollectionEndpoints
1010
from hydra_agent.classes_objects import ClassEndpoints,RequestError

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ httplib2
55
redis
66
redisgraph
77
graphviz
8-
-e git+https://github.com/HTTP-APIs/hydrus.git#egg=hydrus
8+
-e git+https://github.com/HTTP-APIs/hydra-python-core.git#egg=hydra_python_core

0 commit comments

Comments
 (0)