summaryrefslogtreecommitdiffstats
path: root/python_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:40:33 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:40:39 -0700
commitf1187ade9e9451087281612a12f29a50b88f85e4 (patch)
treef4713bb9ac8b196da7f05e196b6dce49b613b756 /python_client
parentcc6182f6f5d9745a72b1a9e4a49310d1c99f6419 (diff)
downloadfatcat-f1187ade9e9451087281612a12f29a50b88f85e4.tar.gz
fatcat-f1187ade9e9451087281612a12f29a50b88f85e4.zip
python_client: patch out circular dep
Diffstat (limited to 'python_client')
-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