File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Katib gRPC APIs
5
5
kubeflow /katib /katib_api_pb2.py
6
- kubeflow / katib / k8s
6
+ k8s
Original file line number Diff line number Diff line change 36
36
katib_grpc_api_file , "kubeflow/katib/katib_api_pb2.py" ,
37
37
)
38
38
# The k8s path should exist if the api file exists (in a <py3.8 compliant way)
39
- shutil .rmtree ("kubeflow/katib/ k8s" , ignore_errors = True )
39
+ shutil .rmtree ("k8s" , ignore_errors = True )
40
40
shutil .copytree (
41
- katib_grpc_api_k8s_dep , "kubeflow/katib/ k8s" ,
41
+ katib_grpc_api_k8s_dep , "k8s" , ignore = shutil . ignore_patterns ( "__pycache__" )
42
42
)
43
+ # Make k8s a valid setuptools package by adding __init__.py at all levels
44
+ for root , _ , _ in os .walk ("k8s" ):
45
+ with open (os .path .join (root , "__init__.py" ), "w" ):
46
+ pass
43
47
44
48
setuptools .setup (
45
49
name = "kubeflow-katib" ,
50
54
url = "https://github.com/kubeflow/katib/tree/master/sdk/python/v1beta1" ,
51
55
description = "Katib Python SDK for APIVersion v1beta1" ,
52
56
long_description = "Katib Python SDK for APIVersion v1beta1" ,
53
- packages = setuptools .find_packages (include = ("kubeflow*" )),
57
+ packages = setuptools .find_packages (include = ("kubeflow*" , "k8s*" )),
54
58
package_data = {},
55
59
include_package_data = False ,
56
60
zip_safe = False ,
You can’t perform that action at this time.
0 commit comments