Skip to content

Commit 01768a3

Browse files
committed
Fix imports from hydra_python_core
1 parent 66a365b commit 01768a3

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

hydra_openapi_parser/openapi_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import yaml
66
import json
77
from typing import Any, Dict, Match, Optional, Tuple, Union, List, Set
8-
from hydrus.hydraspec.doc_writer import (HydraDoc, HydraClass,
8+
from hydra_python_core.doc_writer import (HydraDoc, HydraClass,
99
HydraClassProp, HydraClassOp)
1010
import sys
1111

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-e git+https://github.com/HTTP-APIs/hydra-python-core#egg=hydra_python_core

tests/__init__.py

Whitespace-only changes.

tests/test_parser.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import unittest
22
import os
3-
import hydrus
43

5-
from hydrus.hydraspec.doc_writer import HydraClass
6-
from hydrus.parser import openapi_parser
4+
from hydra_python_core.doc_writer import HydraClass
5+
from hydra_openapi_parser import openapi_parser
76
import yaml
87

98

109
def import_doc():
1110
print("Importing Open Api Documentation ..")
12-
abs_path = os.path.abspath("{}/samples/petstore_openapi.yaml".format(os.path.dirname(
13-
hydrus.__file__)))
11+
abs_path = os.path.abspath("{}/samples/petstore_openapi.yaml".format(
12+
os.path.dirname(__file__)))
1413
with open(abs_path, 'r') as stream:
1514
try:
1615
return yaml.load(stream)

0 commit comments

Comments
 (0)