summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpython_client/codegen_python_client.sh33
-rw-r--r--python_client/fatcat_client/models/file_entity.py1
-rw-r--r--python_client/fatcat_client/models/fileset_entity.py1
-rw-r--r--python_client/fatcat_client/models/webcapture_entity.py1
4 files changed, 33 insertions, 3 deletions
diff --git a/python_client/codegen_python_client.sh b/python_client/codegen_python_client.sh
index 928c9e6b..4ffb4de0 100755
--- a/python_client/codegen_python_client.sh
+++ b/python_client/codegen_python_client.sh
@@ -63,6 +63,39 @@ patch -p0 << END_PATCH
Ref: https://github.com/swagger-api/swagger-codegen
END_PATCH
+# fix circular import (release/file/fileset/webcapture)
+patch -p0 << END_PATCH
+--- fatcat_client/models/file_entity.py
++++ fatcat_client/models/file_entity.py
+@@ -17,7 +17,6 @@ import re # noqa: F401
+ import six
+
+ from fatcat_client.models.file_url import FileUrl # noqa: F401,E501
+-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+
+
+ class FileEntity(object):
+--- fatcat_client/models/fileset_entity.py
++++ fatcat_client/models/fileset_entity.py
+@@ -18,7 +18,6 @@ import six
+
+ from fatcat_client.models.fileset_file import FilesetFile # noqa: F401,E501
+ from fatcat_client.models.fileset_url import FilesetUrl # noqa: F401,E501
+-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+
+
+ class FilesetEntity(object):
+--- fatcat_client/models/webcapture_entity.py
++++ fatcat_client/models/webcapture_entity.py
+@@ -16,7 +16,6 @@ import re # noqa: F401
+
+ import six
+
+-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
+ from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
+ from fatcat_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
+END_PATCH
+
# these tests are basically no-ops
mkdir -p tests/codegen
cp -r $OUTPUT/test/* tests/codegen
diff --git a/python_client/fatcat_client/models/file_entity.py b/python_client/fatcat_client/models/file_entity.py
index 424cd55b..f0d71e37 100644
--- a/python_client/fatcat_client/models/file_entity.py
+++ b/python_client/fatcat_client/models/file_entity.py
@@ -17,7 +17,6 @@ import re # noqa: F401
import six
from fatcat_client.models.file_url import FileUrl # noqa: F401,E501
-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
class FileEntity(object):
diff --git a/python_client/fatcat_client/models/fileset_entity.py b/python_client/fatcat_client/models/fileset_entity.py
index 5619edb4..939342c5 100644
--- a/python_client/fatcat_client/models/fileset_entity.py
+++ b/python_client/fatcat_client/models/fileset_entity.py
@@ -18,7 +18,6 @@ import six
from fatcat_client.models.fileset_file import FilesetFile # noqa: F401,E501
from fatcat_client.models.fileset_url import FilesetUrl # noqa: F401,E501
-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
class FilesetEntity(object):
diff --git a/python_client/fatcat_client/models/webcapture_entity.py b/python_client/fatcat_client/models/webcapture_entity.py
index 9ff8fd28..41a85432 100644
--- a/python_client/fatcat_client/models/webcapture_entity.py
+++ b/python_client/fatcat_client/models/webcapture_entity.py
@@ -16,7 +16,6 @@ import re # noqa: F401
import six
-from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
from fatcat_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501